[Asterisk-Users] Pthread issue

Johnathan Bunn darksage at gmail.com
Sat Aug 14 20:25:36 MST 2004


I hope its okay to post such a long question, but thanks in advance
for reading it

I have been trying to get asterisk to run, I have played with it. and
searched on the wiki and list to no avail

asterisk compiles succesfully ( yes I installed all dependenys )
I am running gentoo 2004.2 with a 2.4 kernel 

but when I try to run asterisk I get ( last 5 lines of output from -vvvc )

  == Registered channel type 'vpb' (Standard VoiceTronix API Driver)
 [chan_mgcp.so] => (Media Gateway Control Protocol (MGCP))
  == Parsing '/etc/asterisk/mgcp.conf': Found
  == Starting vpb monitor thread[81925]
Segmentation fault
VoIP root # 

output with -vvvgc 
[chan_mgcp.so] => (Media Gateway Control Protocol (MGCP))
  == Parsing '/etc/asterisk/mgcp.conf': Found
Aug 14 13:12:49 266 WARNING[16384]: chan_mgcp.c:4032 reload_config:
Unable to get our IP address, MGCP disabled
  == Registered channel type 'MGCP' (Media Gateway Control Protocol (MGCP))
Segmentation fault
VoIP root # 

so I decided to use gdb

>> gd(gdb) set args -vvvgc
>> (gdb) run
Starting program: /usr/sbin/asterisk -vvvgc
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.

Program received signal SIG32, Real-time event 32.
0x400239a4 in pthread_getconcurrency () from /lib/libpthread.so.0
>> (gdb) bt
#0  0x400239a4 in pthread_getconcurrency () from /lib/libpthread.so.0
#1  0x400237e8 in pthread_getconcurrency () from /lib/libpthread.so.0
#2  0x40022ea2 in pthread_create () from /lib/libpthread.so.0
#3  0x080aab97 in test_for_thread_safety () at utils.c:200
#4  0x08098bbc in main (argc=0, argv=0x1) at asterisk.c:1670
>> (gdb) quit 
>> The program is running.  Exit anyway? (y or n) y
VoIP root #

so I figure something wrong with pthreads but thats where I run into a wall..

any ideas are most apreciated
thanks in advance

John



More information about the asterisk-users mailing list