Whenever I issue the reload command, asterisk crashes. Below is the
output I get from
(gdb) bt
Any help is appreciated.
***************************************************************
*CLI> reload
== Parsing '/etc/asterisk/manager.conf': Found
== Parsing '/etc/asterisk/enum.conf': Found
== Parsing '/etc/asterisk/rtp.conf': Not found (No such file or
directory) == RTP Allocating from port range 5000 -> 31000
-- Reloading module 'app_voicemail2.so' (Comedian Mail (Voicemail
System))
== Parsing '/etc/asterisk/voicemail.conf': Found
-- Reloading module 'chan_local.so' (Local Proxy Channel)
-- Reloading module 'chan_iax2.so' (Inter Asterisk eXchange (Ver 2))
== Parsing '/etc/asterisk/iax.conf': Found
WARNING[16384]: File chan_iax2.c, Line 4980 (set_config): Ignoring port
for now
-- Reloading module 'cdr_csv.so' (Comma Separated Values CDR
Backend)
-- Reloading module 'app_queue.so' (True Call Queueing)
== Parsing '/etc/asterisk/queues.conf': Found
-- Reloading module 'pbx_config.so' (Text Extension Configuration)
== Parsing '/etc/asterisk/extensions.conf': Found
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 2159)]
0x4015b9fc in mallopt () from /lib/i686/libc.so.6
(gdb) bt
#0 0x4015b9fc in mallopt () from /lib/i686/libc.so.6
#1 0x4015ac61 in malloc () from /lib/i686/libc.so.6
#2 0x40161dd0 in strdup () from /lib/i686/libc.so.6
#3 0x08055a2f in cfg_process (tmp=0x80e5950, _tmpc=0xbffff360,
_last=0xbffff364, buf=0x6c636e69 <Address 0x6c636e69 out of bounds>,
lineno=118, configfile=0x44ceb41d "extensions.conf",
includelevel=0)
at config.c:57
#4 0x08055472 in __ast_load (configfile=0x44ceb41d "extensions.conf",
tmp=0x80e5950, _tmpc=0xbffff360, _last=0xbffff364, includelevel=0)
at config.c:731
#5 0x0805588d in ast_load (configfile=0x8 <Address 0x8 out of bounds>)
at config.c:766
#6 0x44ceabd2 in pbx_load_module () at pbx_config.c:1520
#7 0x44ce7c8f in reload () at pbx_config.c:1648
#8 0x08054d22 in ast_module_reload () at loader.c:159
#9 0x08069d6a in handle_reload (fd=1, argc=1, argv=0xbffff4c0) at
cli.c:105
#10 0x08069b5a in ast_cli_command (fd=1, s=0x8 <Address 0x8 out of
bounds>) at cli.c:1006
#11 0x0807b36e in main (argc=135033816, argv=0x80b2d08) at
asterisk.c:496
#12 0x400fd7f7 in __libc_start_main () from /lib/i686/libc.so.6
(gdb)
************************************************************************
************************************************************************
***
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20030612/83b6b745/attachment.htm
Check the line 118 of extensions.conf ??? Martin On Thu, 12 Jun 2003, Derek Beaumont wrote:> Whenever I issue the reload command, asterisk crashes. Below is the > output I get from > (gdb) bt > > Any help is appreciated. > > *************************************************************** > *CLI> reload > == Parsing '/etc/asterisk/manager.conf': Found > == Parsing '/etc/asterisk/enum.conf': Found > == Parsing '/etc/asterisk/rtp.conf': Not found (No such file or > directory) == RTP Allocating from port range 5000 -> 31000 > -- Reloading module 'app_voicemail2.so' (Comedian Mail (Voicemail > System)) > == Parsing '/etc/asterisk/voicemail.conf': Found > -- Reloading module 'chan_local.so' (Local Proxy Channel) > -- Reloading module 'chan_iax2.so' (Inter Asterisk eXchange (Ver 2)) > == Parsing '/etc/asterisk/iax.conf': Found > WARNING[16384]: File chan_iax2.c, Line 4980 (set_config): Ignoring port > for now > -- Reloading module 'cdr_csv.so' (Comma Separated Values CDR > Backend) > -- Reloading module 'app_queue.so' (True Call Queueing) > == Parsing '/etc/asterisk/queues.conf': Found > -- Reloading module 'pbx_config.so' (Text Extension Configuration) > == Parsing '/etc/asterisk/extensions.conf': Found > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 16384 (LWP 2159)] > 0x4015b9fc in mallopt () from /lib/i686/libc.so.6 > (gdb) bt > #0 0x4015b9fc in mallopt () from /lib/i686/libc.so.6 > #1 0x4015ac61 in malloc () from /lib/i686/libc.so.6 > #2 0x40161dd0 in strdup () from /lib/i686/libc.so.6 > #3 0x08055a2f in cfg_process (tmp=0x80e5950, _tmpc=0xbffff360, > _last=0xbffff364, buf=0x6c636e69 <Address 0x6c636e69 out of bounds>, > lineno=118, configfile=0x44ceb41d "extensions.conf", includelevel=0) > at config.c:57 > #4 0x08055472 in __ast_load (configfile=0x44ceb41d "extensions.conf", > tmp=0x80e5950, _tmpc=0xbffff360, _last=0xbffff364, includelevel=0) > at config.c:731 > #5 0x0805588d in ast_load (configfile=0x8 <Address 0x8 out of bounds>) > at config.c:766 > #6 0x44ceabd2 in pbx_load_module () at pbx_config.c:1520 > #7 0x44ce7c8f in reload () at pbx_config.c:1648 > #8 0x08054d22 in ast_module_reload () at loader.c:159 > #9 0x08069d6a in handle_reload (fd=1, argc=1, argv=0xbffff4c0) at > cli.c:105 > #10 0x08069b5a in ast_cli_command (fd=1, s=0x8 <Address 0x8 out of > bounds>) at cli.c:1006 > #11 0x0807b36e in main (argc=135033816, argv=0x80b2d08) at > asterisk.c:496 > #12 0x400fd7f7 in __libc_start_main () from /lib/i686/libc.so.6 > (gdb) > > ************************************************************************ > ************************************************************************ > *** >
Can you run with valgrind instead so we can find the true source? install asterisk with "make valgrind" and then run: valgrind --attach-gdb=yes ./asterisk -vvvg and then "asterisk -rx reload" and see where it tries to make you attach. Talk to Martin for more info (martinp@digium.com) next week if you need it, or find assistance on IRC (irc.freenode.net in #asterisk) Mark On Thu, 12 Jun 2003, Derek Beaumont wrote:> Whenever I issue the reload command, asterisk crashes. Below is the > output I get from > (gdb) bt > > Any help is appreciated. > > *************************************************************** > *CLI> reload > == Parsing '/etc/asterisk/manager.conf': Found > == Parsing '/etc/asterisk/enum.conf': Found > == Parsing '/etc/asterisk/rtp.conf': Not found (No such file or > directory) == RTP Allocating from port range 5000 -> 31000 > -- Reloading module 'app_voicemail2.so' (Comedian Mail (Voicemail > System)) > == Parsing '/etc/asterisk/voicemail.conf': Found > -- Reloading module 'chan_local.so' (Local Proxy Channel) > -- Reloading module 'chan_iax2.so' (Inter Asterisk eXchange (Ver 2)) > == Parsing '/etc/asterisk/iax.conf': Found > WARNING[16384]: File chan_iax2.c, Line 4980 (set_config): Ignoring port > for now > -- Reloading module 'cdr_csv.so' (Comma Separated Values CDR > Backend) > -- Reloading module 'app_queue.so' (True Call Queueing) > == Parsing '/etc/asterisk/queues.conf': Found > -- Reloading module 'pbx_config.so' (Text Extension Configuration) > == Parsing '/etc/asterisk/extensions.conf': Found > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 16384 (LWP 2159)] > 0x4015b9fc in mallopt () from /lib/i686/libc.so.6 > (gdb) bt > #0 0x4015b9fc in mallopt () from /lib/i686/libc.so.6 > #1 0x4015ac61 in malloc () from /lib/i686/libc.so.6 > #2 0x40161dd0 in strdup () from /lib/i686/libc.so.6 > #3 0x08055a2f in cfg_process (tmp=0x80e5950, _tmpc=0xbffff360, > _last=0xbffff364, buf=0x6c636e69 <Address 0x6c636e69 out of bounds>, > lineno=118, configfile=0x44ceb41d "extensions.conf", includelevel=0) > at config.c:57 > #4 0x08055472 in __ast_load (configfile=0x44ceb41d "extensions.conf", > tmp=0x80e5950, _tmpc=0xbffff360, _last=0xbffff364, includelevel=0) > at config.c:731 > #5 0x0805588d in ast_load (configfile=0x8 <Address 0x8 out of bounds>) > at config.c:766 > #6 0x44ceabd2 in pbx_load_module () at pbx_config.c:1520 > #7 0x44ce7c8f in reload () at pbx_config.c:1648 > #8 0x08054d22 in ast_module_reload () at loader.c:159 > #9 0x08069d6a in handle_reload (fd=1, argc=1, argv=0xbffff4c0) at > cli.c:105 > #10 0x08069b5a in ast_cli_command (fd=1, s=0x8 <Address 0x8 out of > bounds>) at cli.c:1006 > #11 0x0807b36e in main (argc=135033816, argv=0x80b2d08) at > asterisk.c:496 > #12 0x400fd7f7 in __libc_start_main () from /lib/i686/libc.so.6 > (gdb) > > ************************************************************************ > ************************************************************************ > *** >