Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#172 segfault in ALSA driver with qg3demo

0.61
closed
sound (27)
5
2012-09-07
2004-02-06
Jonathan Gray
No

I get the following segfault in the ALSA driver using a
cvs tarball snapshot when playing the quest for glory 3
demo.

It also seems to happen with 0.61

Using Debian sid on x86 with ALSA 1.0.1 libraries.

0 0x4037dfbf in memcpy () from /lib/tls/libc.so.6

1 0x09cc3128 in Midi_alsa ()

2 0x09d07f90 in ?? ()

3 0x400ade3b in snd_seq_event_output_buffer () from

/usr/lib/libasound.so.2

4 0x400add3c in snd_seq_event_output () from

/usr/lib/libasound.so.2

5 0x080a1024 in MidiHandler_alsa::PlayMsg(unsigned

long) (this=0x400d2dc0,
msg=164659188) at midi_alsa.h:48

6 0x080a09fe in MIDI_RawOutByte(unsigned char)

(data=255 '˙') at midi.cpp:139

7 0x0808ebe1 in IO_WriteB(unsigned, unsigned char)

(port=164659188,
val=255 '˙') at iohandler.cpp:37

8 0x080691cb in CPU_Core_Normal_Run() () at

prefix_none.h:944

9 0x0804bec7 in Normal_Loop () at dosbox.cpp:111

10 0x0804bf26 in DOSBOX_RunMachine() () at dosbox.cpp:157

11 0x0804cea6 in CALLBACK_RunRealInt(unsigned char)

(intnum=33 '!')
at callback.cpp:103

Discussion

  • Peter Veenstra
    Peter Veenstra
    2004-06-25

    Logged In: YES
    user_id=535630

    does this still happen ?
    and how about if you enable intelligent mode ?

     
  • Jonathan Gray
    Jonathan Gray
    2004-06-25

    Logged In: YES
    user_id=59347

    yes this still happens both with and without intelligent mode

     
  • Jonathan Gray
    Jonathan Gray
    2004-07-05

    Logged In: YES
    user_id=59347

    With some of the recent changes maybe an updated backtrace
    is in order.

    0 0x410957af in memcpy () from /lib/tls/libc.so.6

    1 0x09acc7a8 in Midi_alsa ()

    2 0x09ba5d38 in ?? ()

    3 0x4009ddeb in snd_seq_event_output_buffer () from

    /usr/lib/libasound.so.2

    4 0x4009dcec in snd_seq_event_output () from

    /usr/lib/libasound.so.2

    5 0x080b65d9 in MidiHandler_alsa::PlayMsg (this=0x400c42b8,

    msg=0x3f <Address 0x3f out of bounds>) at midi_alsa.h:48
    

    6 0x080b5d34 in MIDI_RawOutByte (data=1 '\001') at

    midi.cpp:212

    7 0x080a06cd in MPU401_WriteData (port=816, val=255, iolen=1)

    at mpu401.cpp:429
    

    8 0x08068e4f in CPU_Core_Normal_Run () at inout.h:39

    9 0x0804bfa7 in Normal_Loop () at dosbox.cpp:112

    10 0x0804c006 in DOSBOX_RunMachine () at dosbox.cpp:158

    11 0x0804cf16 in CALLBACK_RunRealInt (intnum=33 '!') at

    callback.cpp:103

    12 0x080cd3f2 in DOS_Shell::Execute (this=0x9bc1690,

    name=0xbfffc481 "\rC
    

    \".\"\reeonn\200\210\225\t\225\t\210\225\t\210\225\t\225\t\210\225\t",
    args=0x9ba5d9c "A\020\026\022\005")
    at shell_misc.cpp:400

    13 0x080ca405 in DOS_Shell::DoCommand (this=0x9bc1690,

    line=0xbfffe72a "")
    at shell_cmds.cpp:93

    14 0x080c860f in DOS_Shell::ParseLine (this=0x9bc1690,

    line=0xbfffe720 "SIERRA.EXE") at shell.cpp:140
    
     
  • Peter Veenstra
    Peter Veenstra
    2005-01-19

    Logged In: YES
    user_id=535630

    Seems to work with the current cvs in both midi mode and
    mt32 mode.