[Freeswitch-users] segmentation fault with mod_spandsp

Chris Cureau cmcureau at gmail.com
Mon Jul 11 01:54:02 MSD 2011


I don't claim to be an expert at gdb at all, but after compiling with
debugging symbols here's what I got:

GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from
/usr/local/src/freeswitch/libs/spandsp/src/make_modem_filter...done.
(gdb) set args -m V.17 -i -r
(gdb) break 470
Breakpoint 1 at 0x4016cc: file ../src/make_modem_filter.c, line 470.
(gdb) run
Starting program:
/usr/local/src/freeswitch/libs/spandsp/src/make_modem_filter -m V.17 -i -r

Breakpoint 1, main (argc=5, argv=0x7fffffffebf8) at
../src/make_modem_filter.c:470
470        make_rx_filter(rx_coeff_sets,
(gdb) print rx_coeff_sets
$1 = 192
(gdb) print rx_coeffs_per_filter
$2 = 27
(gdb) print carrier
$3 = 1800
(gdb) print baud_rate
$4 = 2400
(gdb) print rx_excess_bandwidth
$5 = 0.5
(gdb) print fixed_point
$6 = 1
(gdb) print rx_tag
$7 = 0x4026bf ""
(gdb) step

Program received signal SIGSEGV, Segmentation fault.
0x0000000000400d1e in make_rx_filter (coeff_sets=Cannot access memory at
address 0x7ffffff9e62c
) at ../src/make_modem_filter.c:163
163 {
(gdb)

Also attached a core file for your viewing pleasure :)


On Sun, Jul 10, 2011 at 3:27 PM, Chris Cureau <cmcureau at gmail.com> wrote:

> Hi, Steve...thanks for replying!
>
> No core dump...but I did pass it through gdb (without compiling with
> debugging symbols)...
>
> GNU gdb (GDB) 7.0.1-debian
> Copyright (C) 2009 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <
> http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "x86_64-linux-gnu".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>...
> Reading symbols from
> /usr/local/src/freeswitch/libs/spandsp/src/make_modem_filter...(no debugging
> symbols found)...done.
> (gdb) set args -m V.17
> (gdb) run
> Starting program:
> /usr/local/src/freeswitch/libs/spandsp/src/make_modem_filter -m V.17
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x0000000000400d1e in make_rx_filter ()
>
>
> On Sun, Jul 10, 2011 at 2:58 PM, Steven Ayre <steveayre at gmail.com> wrote:
>
>> Did you get a coredump generated?
>>
>> -Steve
>>
>>
>> On 10 July 2011 19:04, Chris Cureau <cmcureau at gmail.com> wrote:
>>
>>> Hi there!
>>>
>>> This morning, I did a fresh git checkout and attempted to build
>>> freeswitch with mod_freetdm and mod_flite defined in the modules.conf.  I am
>>> now getting a segfault when compiling:
>>>
>>> making all mod_spandsp
>>> Making all in src
>>> /bin/bash: line 1: 22453 Segmentation fault      ./make_modem_filter -m
>>> V.17 -r > v17_v32bis_rx_floating_rrc.h
>>> make[7]: *** [v17_v32bis_rx_floating_rrc.h] Error 139
>>> make[6]: *** [all] Error 2
>>> make[5]: *** [all-recursive] Error 1
>>> make[4]: *** [/usr/local/src/freeswitch/libs/spandsp/src/libspandsp.la]
>>> Error 2
>>> make[3]: *** [mod_spandsp-all] Error 1
>>> make[2]: *** [all-recursive] Error 1
>>> make[1]: *** [all-recursive] Error 1
>>> make: *** [all] Error 2
>>>
>>> running make_modem_filter manually gets the same result.  Twiddling with
>>> the commandline options doesn't help either.
>>>
>>> OS: Debian 6.0.1a amd64, also a fresh install from last night.
>>>
>>> Any idea what is happening?
>>>
>>> Thanks in advance!
>>>
>>>
>>> _______________________________________________
>>> Join us at ClueCon 2011, Aug 9-11, Chicago
>>> http://www.cluecon.com 877-7-4ACLUE
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>>
>>>
>>
>> _______________________________________________
>> Join us at ClueCon 2011, Aug 9-11, Chicago
>> http://www.cluecon.com 877-7-4ACLUE
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110710/ab2ff1db/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: core.5357
Type: application/octet-stream
Size: 225168 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110710/ab2ff1db/attachment-0001.obj 


More information about the FreeSWITCH-users mailing list