On Wednesday 01 April 2009, Abe Waranowitz wrote:
> Thanks for checking this out... :)

> Hope this is what you wanted...

Yes, it looks good

>
> abe ~ # gdb wimaxd /core
> GNU gdb 6.8
> Copyright (C) 2008 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> <http://gnu.org/licenses/gpl.html> This is free software: you are free to
> change and redistribute it. There is NO WARRANTY, to the extent permitted
> by law.  Type "show copying" and "show warranty" for details.
> This GDB was configured as "x86_64-pc-linux-gnu"...
>
> warning: Can't read pathname for load map: Input/output error.
> Reading symbols from /usr/lib64/libwimaxll.so.1...done.
> Loaded symbols for /usr/lib/libwimaxll.so.1
> Reading symbols from /usr/lib64/libnl.so.1...done.
...
> Core was generated by `wimaxd'.
> Program terminated with signal 11, Segmentation fault.
> [New process 12600]
> [New process 12601]
> #0  0x00007fd1361354fa in pthread_mutex_lock () from /lib/libpthread.so.0
>
> (gdb) info stack
> #0  0x00007fd1361354fa in pthread_mutex_lock () from /lib/libpthread.so.0
> #1  0x000000000045f5d6 in l5_dispatcher_FindAllocConnectionByTargetID
> (nTargetID=L5_TARGET_L4_PROXY) at ./L5Dispatcher.c:503 #2 
> 0x000000000045fcf7 in L5_DISPATCHER_ConnectInternal (szHostName=<value
> optimized out>, nPort=<value optimized out>, nTargetID=L5_TARGET_L4_PROXY,
> pfnMessagesHandler=0x45bc30 <L4_Msg_Proxy_MessagesHandler>,
> pfnEventHandler=0, pvUserContext=0x0, pConn=0x6d0ab0) at
> ./L5Dispatcher.c:267 #3  0x000000000045fddc in L5_DISPATCHER_ConnectEx
> (nTargetID=<value optimized out>, pfnMessagesHandler=<value optimized out>,
> pfnEventHandler=<value optimized out>, pvUserContext=<value optimized out>,
> threadId=<value optimized out>, Conn=<value optimized out>) at
> ./L5Dispatcher.c:193

Sigh, I don't see anything really obvious. Here goes another request (sorry)

can you switch to frame 1 (command 'f 1') and print the value of the following 
variables?

(gdb) p AllocList

and if that is not zero

(gdb) p AllocList.pLock

This is one of those "should not be happening things". Another thing I'd like 
to ask is if you can compile without optimization (-O0) and with debug info 
(-g) and repeat the gdb stuff -- that way we could see more values from the 
stack trace.

Thanks!

-- 
Inaky

_______________________________________________
wimax mailing list
[email protected]
http://www.linuxwimax.org/mailman/listinfo/wimax

Reply via email to