[OpenSIPS-Devel] opensips on FreeBSD 8.1 GENERIC Amd64

Bogdan-Andrei Iancu bogdan at opensips.org
Fri Feb 18 14:11:11 CET 2011


Hi all,

Just for the sake closing the report: this crash happened because of a 
symbol name collision between glibc and b2b_logic module - stat() seams 
to be a function in glibc and also a variable in glibc. For unknown 
reason, on freeBSD, the glibc symbol was overwritten by the symbol from 
b2b_logic....Also, the linker was completely silent on this conflict :(...

Anyhow, we will rename the b2b_logic variable to get read of the problem.

Regards,
Bogdan

PS: many thanks to Anton for his support on debugging this.

Anton Zagorskiy wrote:
> Hi.
>
> This is more right gdb backtrace:
>
> (gdb) bt full
> #0  0x0000000800d2d500 in stat () from
> /usr/local/lib64/opensips/modules/b2b_logic.so
> No symbol table info available.
> #1  0x0000000800861a1d in nsdispatch () from /lib/libc.so.7
> No symbol table info available.
> #2  0x00000008008613f3 in gethostbyaddr_r () from /lib/libc.so.7
> No symbol table info available.
> #3  0x000000080086154c in gethostbyaddr () from /lib/libc.so.7
> No symbol table info available.
> #4  0x000000000047aefa in fix_socket_list (list=0x661328) at
> socket_info.c:635
>         si = (struct socket_info *) 0x6a2030
>         l = Variable "l" is not available.
>
>
> As I see gethostbyaddrs() fails. When I changed it to gethostbyname then
> openSIPS starts without segfault.
>
>
>
>
>
>
> WBR, Anton Zagorskiy
> VoIP Developer, Oyster Telecom
> Phone.: +7 812 601-0666
> Fax: +7 812 601-0593
> a.zagorskiy at oyster-telecom.ru
> www.oyster-telecom.ru
>
>
>   
>> -----Original Message-----
>> From: devel-bounces at lists.opensips.org [mailto:devel-
>> bounces at lists.opensips.org] On Behalf Of Anton Zagorskiy
>> Sent: Wednesday, February 16, 2011 1:30 PM
>> To: 'OpenSIPS devel mailling list'
>> Subject: [OpenSIPS-Devel] opensips on FreeBSD 8.1 GENERIC Amd64
>>
>> Hi.
>>
>> Does openSIPS support FreeBSD amd64?
>> I'm trying to run it, but openSIPS is getting segfault 11.
>> It seems that it can't initialize b2b_logic module.
>>
>> Gdb on core dump:
>>
>> (gdb) bt full
>> #0  0x0000000803380560 in stat () from
>> /usr/local/lib64/opensips/modules/b2b_logic.so
>> No symbol table info available.
>> #1  0x000000080085ca1d in nsdispatch () from /lib/libc.so.7 No symbol
>> table info available.
>> #2  0x000000080085bed3 in sethostent () from /lib/libc.so.7 No symbol
>> table info available.
>> #3  0x000000080085c0ef in gethostbyname_r () from /lib/libc.so.7 No
>> symbol table info available.
>> #4  0x000000080085c17c in gethostbyname () from /lib/libc.so.7 No
>> symbol table info available.
>> #5  0x000000000047616c in fix_socket_list (list=0x65da08) at
>> resolve.h:349
>>         si = (struct socket_info *) 0x69e770
>>         l = Variable "l" is not available.
>>
>>
>>
>>
>>
>>
>> WBR, Anton Zagorskiy
>> VoIP Developer, Oyster Telecom
>> Phone.: +7 812 601-0666
>> Fax: +7 812 601-0593
>> a.zagorskiy at oyster-telecom.ru
>> www.oyster-telecom.ru
>>
>>
>>     
>
>
>
> _______________________________________________
> Devel mailing list
> Devel at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
>
>   


-- 
Bogdan-Andrei Iancu
OpenSIPS eBootcamp - 28th February 2011
OpenSIPS solutions and "know-how"




More information about the Devel mailing list