Opened 20 years ago

Closed 20 years ago

Last modified 20 years ago

#2014 closed defect (fixed)

BS1 Unexpected segmentation fault

Reported by: SF/jellby Owned by: eriktorbjorn
Priority: normal Component: Engine: Sword1
Version: Keywords:
Cc: Game: Broken Sword 1

Description

I'm getting somewhat random but frequent segmentation faults in Broken Sword 1. I attach a savegame in the Irish bar. Whenever I try to talk to the guy with glasses I get a segfault. Sometimes it's right after he says "What's the problem?", sometimes it's as soon as I press the green arrow (to quit the conversation), sometimes it's when I try to talk to him the second time.

My system: Mandrake 10.1 ScummVM 0.8.0CVS (May 1 2005 10:56:29) Features compiled in: Vorbis FLAC MP3 ALSA zLib MPEG2

PS This doesn't appear to be a sound issue, it happens even with sound, music and video files out of sight.

Ticket imported from: #1193344. Ticket imported from: bugs/2014.

Attachments (1)

SAVEGAME.005 (732 bytes ) - added by SF/jellby 20 years ago.
Irish bar. English version, talk to the guy with glases.

Download all attachments as: .zip

Change History (7)

by SF/jellby, 20 years ago

Attachment: SAVEGAME.005 added

Irish bar. English version, talk to the guy with glases.

comment:1 by SF/jellby, 20 years ago

Summary: Unexpected segmentation faultBS1 Unexpected segmentation fault

comment:2 by eriktorbjorn, 20 years ago

This one I can reproduce. I have no idea what's causing it, though.

comment:3 by eriktorbjorn, 20 years ago

Owner: set to lavosspawn

comment:4 by eriktorbjorn, 20 years ago

Resolution: fixed
Status: newclosed

comment:5 by eriktorbjorn, 20 years ago

Aha! I see the problem. It's actually not a Broken Sword 1 bug at all, it's a buffer overflow in the SDL backend's "dirty rectangle" handling. The Broken Sword games are probably the ones most likely to trigger it since they tend to mark a lot of smaller rectangles as dirty, rather than a few larger ones.

Fixed in CVS.

comment:6 by eriktorbjorn, 20 years ago

Owner: changed from lavosspawn to eriktorbjorn
Note: See TracTickets for help on using tickets.