Does running it under valgrind produce more useful output? Mark
On Wed, 2 Apr 2003, Alex Zarubin wrote: > OK, here it is. On a flow of shorter calls it lasted about an hour. > > [EMAIL PROTECTED] asterisk]# gdb asterisk core.12348 > GNU gdb Red Hat Linux 7.x (5.0rh-15) (MI_OUT) > Copyright 2001 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i386-redhat-linux"... > Core was generated by `asterisk -dgvvvc'. > Program terminated with signal 11, Segmentation fault. > Reading symbols from /lib/libdl.so.2...done. > Loaded symbols for /lib/libdl.so.2 > Reading symbols from /lib/i686/libpthread.so.0...done. > > warning: Unable to set global thread event mask: generic error > [New Thread 1024 (LWP 12342)] > Error while reading shared library symbols: > Can't attach LWP 12342: No such process > Reading symbols from /usr/lib/libncurses.so.5...done. > Loaded symbols for /usr/lib/libncurses.so.5 > Reading symbols from /lib/i686/libm.so.6...done. > Loaded symbols for /lib/i686/libm.so.6 > Reading symbols from /lib/i686/libc.so.6...done. > Loaded symbols for /lib/i686/libc.so.6 > Reading symbols from /lib/ld-linux.so.2...done. > Loaded symbols for /lib/ld-linux.so.2 > Reading symbols from /usr/lib/asterisk/modules/chan_modem.so...done. > . > . > . > . > Loaded symbols for /lib/libcrypt.so.1 > Reading symbols from /lib/libnsl.so.1...done. > Loaded symbols for /lib/libnsl.so.1 > Reading symbols from /usr/lib/asterisk/modules/format_pcm_alaw.so...done. > Loaded symbols for /usr/lib/asterisk/modules/format_pcm_alaw.so > #0 0x08055d86 in ast_queue_frame (chan=0x81cd398, fin=0x42c1991c, lock=1) > at channel.c:354 > 354 cur = chan->pvt->readq; > (gdb) bt > #0 0x08055d86 in ast_queue_frame (chan=0x81cd398, fin=0x42c1991c, lock=1) > at channel.c:354 > #1 0x0805a9a0 in ast_queue_hangup (chan=0x81cd398, lock=1) at channel.c:391 > #2 0x42412855 in handle_request (p=0x82b6350, req=0x42c1b25c, > sin=0x42c1b24c) > at chan_sip.c:3762 > #3 0x42412e6d in sipsock_read (id=0x80d7850, fd=10, events=1, ignore=0x0) > at chan_sip.c:3840 > #4 0x08050d9e in ast_io_wait (ioc=0x80d9018, howlong=1000) at io.c:268 > #5 0x424131f5 in do_monitor (data=0x0) at chan_sip.c:3928 > #6 0x4003ec6f in pthread_start_thread (arg=0x42c1bbe0) at manager.c:284 > (gdb) > > > > > > -----Original Message----- > From: Martin Pycko [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 02, 2003 11:38 AM > To: '[EMAIL PROTECTED]' > Subject: Re: [Asterisk-Users] segmentation fault > > > asterisk -vvvcg (use g option to generate the coredump file) > than gdb asterisk core.pid > bt > > Also you might send a log of "pri intense debug span <number>" > > regards > Martin > > On Wed, 2 Apr 2003, Alex Zarubin wrote: > > > Configuration: > > Linux wpbx 2.4.9-13 #1 Tue Oct 30 20:11:04 EST 2001 i686 unknown > > P4 2.5 GHz, 1 GB RAM > > T400P with 3 T1s plugged in. A flow of 46 calls (spread out over 3 T1s). > > Each call gets transferred (Dial) to the SIP platform and stays for 5 min. > > > > Case 1. Asterisk built out of CVS Mar. 19. Test was running for 3 days. > > Segmentation fault. > > Case 2. Asterisk built out of CVS Apr. 1. Test was running for 12 hours. > > Segmentation fault. > > > > No coredump found. In case 1 there was a significant memory growth: > > Top at the startup: > > 15986 root 9 0 6440 6436 2144 S 0.0 0.6 0:00 asterisk > > 15987 root 8 0 6440 6436 2144 S 0.0 0.6 0:00 asterisk > > Top in several hours: > > 15986 root 9 0 9192 9188 2148 S 0.0 0.9 0:00 asterisk > > 15987 root 9 0 9192 9188 2148 S 0.0 0.9 0:00 asterisk > > Top after a day: > > 27441 root 9 0 45980 44M 2156 S 0.0 4.5 0:00 asterisk > > 27442 root 8 0 45980 44M 2156 S 0.0 4.5 0:16 asterisk > > Actually, I saw it over 50. > > > > There were some warning messages on the way. For example: > > > > Apr 1 23:22:33 WARNING[10251]: File chan_zap.c, Line 5248 (zt_pri_error): > > PRI: > > Read on 86 failed: Unknown error 500 > > Apr 1 23:24:54 WARNING[11276]: File chan_zap.c, Line 5248 (zt_pri_error): > > PRI: > > !! Got reject for frame 102, retransmitting frame 102 now, updating n_r! > > Apr 1 23:24:54 WARNING[11276]: File chan_zap.c, Line 5248 (zt_pri_error): > > PRI: > > !! Got reject for frame 103, but we have nothing -- resetting! > > Apr 1 23:28:49 WARNING[10251]: File chan_zap.c, Line 5248 (zt_pri_error): > > PRI: > > !! Got reject for frame 29, retransmitting frame 29 now, updating n_r! > > Apr 1 23:28:49 WARNING[10251]: File chan_zap.c, Line 5248 (zt_pri_error): > > PRI: > > !! Got reject for frame 30, but we have nothing -- resetting! > > Apr 1 23:30:00 WARNING[11276]: File chan_zap.c, Line 5248 (zt_pri_error): > > PRI: > > Read on 87 failed: Unknown error 500 > > Apr 1 23:30:24 WARNING[10251]: File chan_zap.c, Line 5248 (zt_pri_error): > > PRI: > > Read on 86 failed: Unknown error 500 > > > > Question: > > What do I do to give you more info? Should I issue 'ulimit -c unlimited' > to > > get a coredump? > > Are there any flags/modes to set? > > > > Thank you. > > Alex Zarubin > > > > > > > > _______________________________________________ > Asterisk-Users mailing list > [EMAIL PROTECTED] > http://lists.digium.com/mailman/listinfo/asterisk-users > _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
