[ecasound] SEGFAULT in v2.4.7pre3_2.5.0 on x86_64 and i686 linux playing MikMod

From: Zed A. Shaw <zedshaw@email-addr-hidden>
Date: Fri Jul 11 2008 - 01:06:58 EEST

Hi folks,

First off, I just wanna say Ecasound is kicking some serious ass on my
latest project. Very cool stuff, especially the ability to attach to
the daemon off a socket and issue commands. This turned what would
have been a long project into a single day thing.

But, sad news, I have a bug to report:

1) I'm writing a simple multitrack recorder and I tried to play a .mod
file and .xm file through libmikmod.

2) Either file causes a segfault here:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x4084a950 (LWP 10212)]
0x00007fa296b65a39 in fread () from /lib/libc.so.6
(gdb) backtrace
#0 0x00007fa296b65a39 in fread () from /lib/libc.so.6
#1 0x00000000004d8d89 in MIKMOD_INTERFACE::read_samples (
    this=0x25814b0, target_buffer=0x256f7a0, samples=1024)
    at audioio-mikmod.cpp:100
#2 0x00000000004d6d63 in AUDIO_IO_BUFFERED::read_buffer (
    this=0x25814b0, sbuf=0x256a510) at audioio-buffered.cpp:76
#3 0x00000000004e1add in AUDIO_IO_DB_SERVER::io_thread (
    this=0x25649d0) at audioio-db-server.cpp:525
#4 0x00000000004e1e5d in start_db_server_io_thread (ptr=0x25649d0)
    at audioio-db-server.cpp:87
#5 0x00007fa297600fe7 in start_thread () from /lib/libpthread.so.0
#6 0x00007fa296bcf2bd in clone () from /lib/libc.so.6
#7 0x0000000000000000 in ?? ()

3) Version of ecasound is:

ecasound v2.4.7pre3_2.5.0
Copyright (C) 1997-2008 Kai Vehmanen and others.
Ecasound comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of ecasound under the terms of the GNU
General Public License. For more information about these matters, see
the file named COPYING.

4) Sequence of actions that lead to segfault:

* ecasound v2.4.7pre3_2.5.0 (C) 1997-2008 Kai Vehmanen and
- [ Session created ]
- [ Chainsetup created (cmdline) ]
--------------------------------------------- (eca-session) Note!
Unable to create a valid chainsetup from the command-line ... arguments.
[New Thread 0x424bf950 (LWP 10164)]
(eca-chainsetup) Unable to connect: No inputs in the current
chainsetup. ... (1.1-NO-INPUTS)
(eca-neteci-server) New connection from TCP/IP:
(eca-control-objects) Chainsetup "main" doesn't exist!
- [ Chainsetup created (empty) ]
----------------------------------------------- (eca-control-objects)
Added a new chainsetup with name "main". (eca-control-objects) Removing
chainsetup: "main".
- [ Chainsetup created (empty) ]
----------------------------------------------- (eca-control-objects)
Added a new chainsetup with name "main". (eca-control-objects) Added
chains: 1. (eca-control-objects) Added audio input "protrack4.mod".
(eca-control-objects) Added chains: 1.
(eca-control-objects) Added audio output "alsahw,0".
- [ Connecting chainsetup ]
---------------------------------------------------- (eca-chainsetup)
'rt' buffering mode selected. (eca-chainsetup) Audio object
"protrack4.mod", mode "read". (audio-io) Format: s16_le, channels 2,
srate 44100, interleaved. (eca-chainsetup) Audio object "alsahw", mode
"write". (audio-io) Format: s16_le, channels 2, srate 44100,
- [ Chainsetup connected ]
(eca-control-objects) Connected chainsetup: "main".
- [ Controller/Processing started ]
-------------------------------------------- [New Thread 0x41ca3950
(LWP 10210)]
- [ Engine init - Driver start ]
----------------------------------------------- [New Thread 0x4084a950
(LWP 10212)]

5) Version of libmikmod:

extra/libmikmod 3.1.12-1

6) And finally, version of GCC:

gcc (GCC) 4.3.1
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is

Let me know if you need more. I may try to hunt down the bug and fix
it. If I do, what's the patch process?


Zed A. Shaw

Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
Ecasound-list mailing list
Received on Fri Jul 11 04:15:03 2008

This archive was generated by hypermail 2.1.8 : Fri Jul 11 2008 - 04:15:03 EEST