[asterisk-dev] FreeBSD Asterisk Segmentation Faults

J. Oquendo joquendo at hushmail.com
Tue Jul 4 17:28:52 MST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It even crashed GDB and gave inconsistent information... First it
gave:

[sil at bordello ~]$ sudo gdb asterisk asterisk.core
....
Core was generated by `asterisk'.
Program terminated with signal 11, Segmentation fault.
#0  0x282a74ab in ?? ()
(gdb) bt
.....
#1424 0x08135480 in ?? ()
#1425 0x080b2454 in ast_utils_init () at utils.c:504

....

Second time after retrying asterisk to get a new asterisk.core, I
did another bt... It scrolled past #8800 with the majority if lines
coming in at 0x00000000 and kept going on and on and on...

While in gdb

(gdb) file /usr/local/sbin/asterisk
Load new symbol table from "/usr/local/sbin/asterisk"? (y or n) y
Reading symbols from /usr/local/sbin/asterisk...done.
(gdb) bt
#0  0x282a74ab in pthread_testcancel () from
/usr/lib/libpthread.so.2
#1  0x282a0539 in pthread_mutexattr_init () from
/usr/lib/libpthread.so.2
#2  0x282a061a in pthread_mutexattr_init () from
/usr/lib/libpthread.so.2
#3  0x08135400 in ?? ()


(gdb) r -vvvvv
Starting program: /usr/local/sbin/asterisk -vvvvv
  == Parsing '/usr/local/etc/asterisk/asterisk.conf': Found
  == Parsing '/usr/local/etc/asterisk/extconfig.conf': Found
Asterisk SVN-trunk-r35555, Copyright (C) 1999 - 2006 Digium, Inc.
and others.
Created by Mark Spencer <markster at digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'show warranty'
for details.
This is free software, with components licensed under the GNU
General Public
License version 2 and other licenses; you are welcome to
redistribute it under
certain conditions. Type 'show license' for details.
====================================================================
=====
 [res_agi.so]gdb in realloc(): error: pointer to wrong page
Abort trap: 6 (core dumped)

Crashed gdb...

[sil at bordello ~]$ sudo gdb gdb gdb.core
GNU gdb 6.1.1 [FreeBSD]
Core was generated by `gdb'.
Program terminated with signal 6, Aborted.
Reading symbols from /lib/libm.so.4...(no debugging symbols
found)...done.
Loaded symbols for /lib/libm.so.4
Reading symbols from /lib/libreadline.so.6...(no debugging symbols
found)...done.
Loaded symbols for /lib/libreadline.so.6
Reading symbols from /lib/libncurses.so.6...(no debugging symbols
found)...done.
Loaded symbols for /lib/libncurses.so.6
Reading symbols from /usr/lib/libgnuregex.so.3...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib/libgnuregex.so.3
Reading symbols from /lib/libc.so.6...(no debugging symbols
found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /usr/lib/libthread_db.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib/libthread_db.so
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols
found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x2838c363 in kill () from /lib/libc.so.6
(gdb) file /usr/local/sbin/asterisk
Reading symbols from /usr/local/sbin/asterisk...done.
(gdb) r
Starting program: /usr/local/sbin/asterisk
warning: Unable to get location for thread creation breakpoint:
generic error
[New LWP 100177]

Program exited normally.


On Tue, 04 Jul 2006 18:02:15 -0400 Mike Fedyk
<mfedyk at mikefedyk.com> wrote:
>J. Oquendo wrote:
>> [New Thread 0x813dc00 (runnable)]
>> [New Thread 0x813d800 (LWP 100104)]
>> [New Thread 0x813d000 (runnable)]
>> [New LWP 100128]
>>
>How about if you run the "bt" gdb command...
>_______________________________________________
>--Bandwidth and Colocation provided by Easynews.com --
>
>asterisk-dev mailing list
>To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-dev
perl -e 'print $i=pack(c5,(40*2),sqrt(7600),(unpack(c,Q)-3+1+3+3-
7),oct(104),10,oct(101));'
-----BEGIN PGP SIGNATURE-----
Note: This signature can be verified at https://www.hushtools.com/verify
Version: Hush 2.5

wpwEAQECAAYFAkSrB8QACgkQVnroYexO+HLfDAP9H2QM/tGuH4cuIVvAHKMRmi3vpvjy
5F+EEKKBz5A5+GGJ3f7jisTRgIIe4P86WLm2NEo9MQztX5NJOIwTOaVsVbVrYagY2QHv
oqLLJewrUJZk629ZbnTwV6Foa8N+vF82nUzNyew/JvEtqgi0y++sXDYjBGhBfu6rXql5
KIhCiEQ=
=dLnq
-----END PGP SIGNATURE-----




Concerned about your privacy? Instantly send FREE secure email, no account required
http://www.hushmail.com/send?l=480

Get the best prices on SSL certificates from Hushmail
https://www.hushssl.com?l=485




More information about the asterisk-dev mailing list