malbolge crashed with IndexError in main()

Bug #344918 reported by Toni Ruottu
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Malbolge Survival Kit
Invalid
Low
Toni Ruottu
malbolge (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: malbolge

Giving the interpreter a zero byte source code file (created with command "touch empty.mb") makes the interpreter crash.

ProblemType: Crash
Architecture: i386
DistroRelease: Ubuntu 9.04
ExecutablePath: /usr/bin/malbolge
InterpreterPath: /usr/bin/python2.6
NonfreeKernelModules: nvidia
Package: malbolge 0.2-0ubuntu1
PackageArchitecture: all
ProcCmdline: python /usr/bin/malbolge empty.mb
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_US.UTF-8
PythonArgs: ['/usr/bin/malbolge', 'empty.mb']
SourcePackage: malbolge
Title: malbolge crashed with IndexError in main()
Uname: Linux 2.6.28-10-generic i686
UserGroups: adm admin audio cdrom dialout dip floppy lpadmin netdev plugdev powerdev scanner vboxusers video

Related branches

Revision history for this message
Toni Ruottu (toni-ruottu) wrote :
Changed in msk:
assignee: nobody → toni-ruottu
importance: Undecided → Low
status: New → In Progress
Revision history for this message
Toni Ruottu (toni-ruottu) wrote :

The interpreter itself seems to work ok. It is mbs (Malbolge Script) autodetection that fails.

Revision history for this message
Toni Ruottu (toni-ruottu) wrote :

Actually it is a bit unclear what should be done with an empty source file. My current python implementation does nothing, while the reference implementation seems to loop forever (or atleast for a long time). The original specification implies that you need atleast two registers long source code in order to initialize main memory of the virtual machine. I'm going to take this as my guiding principle and use an exception that says the source code is too short.

Changed in msk:
status: In Progress → Fix Committed
Revision history for this message
dino99 (9d9) wrote :

This version has died long ago; no more supported

dino99 (9d9)
Changed in malbolge (Ubuntu):
status: New → Invalid
Changed in msk:
status: Fix Committed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.