Bug#704546: Segfault when starting asterisk 1:1.6.2.9-2+squeeze10

Tzafrir Cohen tzafrir.cohen at xorcom.com
Tue Apr 2 23:22:42 UTC 2013


On Tue, Apr 02, 2013 at 08:53:19PM +0200, Michael Abmayer wrote:
> Package: asterisk
> Version: 1:1.6.2.9-2+squeeze10
> Severity: Grave
> 
> Hi,
> 
> a few seconds after starting asterisk it crashes with a segfault -
> in a similar manner like with the squeeze9-packages. squeeze8 works
> well without any problems.
> 
> What info do you need else for fixing, how can I help?
> 
> Sincerly, Michael
> 
> 
> uname -a
> Linux logorrhoe 2.6.32-5-amd64 #1 SMP Mon Feb 25 00:26:11 UTC 2013 x86_64 GNU/Linux
> 
> cat /etc/debian_version
> 6.0.7
> 
> core follows:
> ____________
> 
> Core was generated by `asterisk -U asterisk -g -c'.
> Program terminated with signal 11, Segmentation fault.
> #0 0x00007fafcddebf2a in strchrnul () from /lib/libc.so.6
> (gdb) bt
> #0 0x00007fafcddebf2a in strchrnul () from /lib/libc.so.6
> #1 0x00007fafcddacd2f in vfprintf () from /lib/libc.so.6
> #2 0x00007fafcddd2732 in vsnprintf () from /lib/libc.so.6
> #3 0x0000000000461ec8 in ast_devstate_changed
> (state=AST_DEVICE_UNKNOWN, cachable=3250240028,
> fmt=0x7fff5199f990 "\030") at devicestate.c:524
> #4 0x00007fafc1b92166 in pbx_capi_register_device_state_providers ()
> at chan_capi_devstate.c:62
> #5 0x00007fafc1b7f545 in load_module () at chan_capi.c:8897
> #6 0x000000000048afd7 in start_resource (mod=0x7fafc403c350) at loader.c:747
> #7 0x000000000048b58f in load_resource_list (load_order=<value
> optimized out>, global_symbols=0,
> mod_count=<value optimized out>) at loader.c:925
> #8 0x000000000048b909 in load_modules (preload_only=0) at loader.c:1072
> #9 0x00000000004341e4 in main (argc=<value optimized out>,
> argv=<value optimized out>) at asterisk.c:3694
> (gdb) bt full
> #0 0x00007fafcddebf2a in strchrnul () from /lib/libc.so.6
> No symbol table info available.
> #1 0x00007fafcddacd2f in vfprintf () from /lib/libc.so.6
> No symbol table info available.
> #2 0x00007fafcddd2732 in vsnprintf () from /lib/libc.so.6
> No symbol table info available.
> #3 0x0000000000461ec8 in ast_devstate_changed
> (state=AST_DEVICE_UNKNOWN, cachable=3250240028,
> fmt=0x7fff5199f990 "\030") at devicestate.c:524
> buf = '\000' <repeats 40 times>, "@\000\000\000\000\000\000\000\230\216\f?\177\000\000\250\216\f?\177\000\000\000\000\000\000\000\000\000\000@\000\000\000\000\000\000"
> ap = {{gp_offset = 24, fp_offset = 48, overflow_arg_area = 0x7fff5199fa80,
> reg_save_area = 0x7fff5199f9b0}}
> #4 0x00007fafc1b92166 in pbx_capi_register_device_state_providers ()
> at chan_capi_devstate.c:62
> capiController = 0x7fff5199f9b0
> i = 1
> capi_num_controllers = <value optimized out>
> #5 0x00007fafc1b7f545 in load_module () at chan_capi.c:8897

The segfault is at loading chan_capi.so .

Can you please try disabling its load and see if Asterisk then loads
successfully?

To disable it, add the line 'noload => chan_capi.so' to the section
'[modules]' in /etc/asterisk/modules.conf .

> cfg = 0x7fafc1db4b70
> res = 0
> __PRETTY_FUNCTION__ = "load_module"
> __FUNCTION__ = "load_module"

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the Pkg-voip-maintainers mailing list