[Nice] libnice always crashes under FreeBSD AMD64

Youness Alaoui youness.alaoui at collabora.co.uk
Wed Jul 14 13:31:12 PDT 2010


Hi Igor! :)

It looks to me like the error comes from the way the freebsd linker works or
something.. or maybe the application you're using with libnice.
The problem is that libnice uses a function 'crc32' which apparently also exists
in libz.so, and your application links against libz.so, and the freebsd linker
takes the crc32 function from libz.so instead of from libnice.so
I don't really know why it would do that, maybe somehow I'm not compiling it
right.. either way I'll fix it by simply renaming the function to stun_crc32,
this way we can avoid any problems.

Thanks,
Youness.

On 07/14/2010 03:43 PM, Igor Serikov wrote:
>  Fellow developers,
> 
> libnice always crashes under FreeBSD AMD64. Two machines are on the same
> local net that uses NAT.
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x802003500 (LWP 100145)]
> 0x00000008013c000a in crc32 () from /lib/libz.so.4
> (gdb) bt
> #0  0x00000008013c000a in crc32 () from /lib/libz.so.4
> #1  0x0000000806fe85e0 in stun_message_has_cookie () from
> /usr/local/lib/libnice.so.0
> #2  0x0000000806fe77eb in stun_agent_validate () from
> /usr/local/lib/libnice.so.0
> #3  0x0000000806fdbf05 in nice_agent_new () from
> /usr/local/lib/libnice.so.0
> #4  0x0000000806fd6995 in nice_agent_set_selected_pair () from
> /usr/local/lib/libnice.so.0
> #5  0x0000000805bb58d3 in g_main_context_dispatch () from
> /usr/local/lib/libglib-2.0.so.0
> #6  0x0000000805bb90d2 in g_main_context_check () from
> /usr/local/lib/libglib-2.0.so.0
> #7  0x0000000805bb94c5 in g_main_loop_run () from
> /usr/local/lib/libglib-2.0.so.0
> #8  0x0000000807402838 in gst_nice_src_create () from
> /usr/local/lib/gstreamer-0.10/libgstnice.so
> #9  0x0000000805f8a63c in gst_base_src_get_range (src=0x80722a6d0,
> offset=18446744073709551615, length=4096, buf=0x7ffffedf7ea0) at
> gstbasesrc.c:2116
> #10 0x0000000805f8bd0f in gst_base_src_loop (pad=0x80722dd80) at
> gstbasesrc.c:2369
> #11 0x0000000805493b2a in gst_task_func (task=0x8065c6440) at gsttask.c:271
> #12 0x0000000805bde409 in g_thread_pool_push () from
> /usr/local/lib/libglib-2.0.so.0
> #13 0x0000000805bdc714 in g_thread_create_full () from
> /usr/local/lib/libglib-2.0.so.0
> #14 0x00000008015ea521 in pthread_getprio () from /lib/libthr.so.3
> #15 0x0000000000000000 in ?? ()
> Error accessing memory address 0x7ffffedf8000: Bad address.
> (gdb) in gstbasesrc.c
> (gdb)
> 
>  Thanks,
>    Igor.
> _______________________________________________
> Nice mailing list
> Nice at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/nice


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/nice/attachments/20100714/1dd2af72/attachment.pgp>


More information about the Nice mailing list