Opened 21 years ago

Closed 21 years ago

Last modified 6 years ago

#1286 closed defect (fixed)

Segmentation Fault

Reported by: SF/inguin Owned by: eriktorbjorn
Priority: normal Component: Port: Linux
Version: Keywords:
Cc: Game:

Description

This may or may not be related to bug #827560: After not following ScummVM's development for a few weeks I finally checked out the current version from CVS and compiled it. Unfortunately I'm not able to start any game, they all raise a Segmentation Fault on startup:

inva@marvin:~>scummvm tentacle Looking for tentacle Trying to start game 'Day Of The Tentacle' Fatal signal: Segmentation Fault (SDL Parachute Deployed)

According to gdb it happens when creating the debugger object at startup, I have attached a complete backtrace.

My system: Linux 2.4.21, gcc 2.95.3, SDL 1.2.6 and ScummVM 0.5.4cvs (Oct 27 2003 03:56:49)

Ticket imported from: #830772. Ticket imported from: bugs/1286.

Attachments (1)

backtrace.txt (1.4 KB ) - added by SF/inguin 21 years ago.
gdb backtrace

Download all attachments as: .zip

Change History (5)

by SF/inguin, 21 years ago

Attachment: backtrace.txt added

gdb backtrace

comment:1 by SF/inguin, 21 years ago

I found something: In scumm/scummvm.cpp:592 a new ScummDebugger object is created before _newgui is initialized. Moving "_newgui = g_gui;" from line 631 a few lines up seems to fix the issue.

comment:2 by eriktorbjorn, 21 years ago

The general idea seems right to me, but apparently the debugger has to be created after the backend is initialised, or ScummVM will crash when the debug console is opened, so it's the creation of _debugger that needs to be moved.

This bug was introduced very recently by the way, so I guess you just picked a bad time to check out a new copy. It should be fixed in CVS now. Welcome to the bleeding edge. ;-)

comment:3 by eriktorbjorn, 21 years ago

Owner: set to eriktorbjorn
Resolution: fixed
Status: newclosed

comment:4 by digitall, 6 years ago

Component: --Unset--Port: Linux
Note: See TracTickets for help on using tickets.