[Lldb-commits] [PATCH] Refactor Socket into a first class Host-object
Todd Fiala
tfiala at google.com
Mon Jul 28 12:24:05 PDT 2014
lldb-gdbserver is seg faulting. It looks like Socket::GetBoundPort is being called on something that appears to have a null pointer.
```
#0 __GI___pthread_mutex_lock (mutex=0x7fffdf3cae28) at ../nptl/pthread_mutex_lock.c:66
66 ../nptl/pthread_mutex_lock.c: No such file or directory.
(gdb) bt
#0 __GI___pthread_mutex_lock (mutex=0x7fffdf3cae28) at ../nptl/pthread_mutex_lock.c:66
#1 0x00007f2fc323c645 in lldb_private::Mutex::Lock (this=0xa0)
at /mnt/ssd/work/macosx.sync/mp-svn/llvm/tools/lldb/source/Host/common/Mutex.cpp:278
#2 0x00007f2fc323c536 in lldb_private::Mutex::Locker::Lock (this=0x7fffdf3cae28, mutex=...)
at /mnt/ssd/work/macosx.sync/mp-svn/llvm/tools/lldb/source/Host/common/Mutex.cpp:154
#3 0x00007f2fc323c4df in lldb_private::Mutex::Locker::Locker (this=0x7fffdf3cae28, m=...)
at /mnt/ssd/work/macosx.sync/mp-svn/llvm/tools/lldb/source/Host/common/Mutex.cpp:114
#4 0x00007f2fc37c4fe3 in lldb_private::Predicate<unsigned short>::WaitForValueNotEqualTo (this=0x98, value=0,
new_value=@0x7fffdf3cae92: 0, abstime=0x7fffdf3cae88)
at /mnt/ssd/work/macosx.sync/mp-svn/llvm/tools/lldb/include/lldb/Host/Predicate.h:448
#5 0x00007f2fc37c4f7b in lldb_private::Socket::GetBoundPort (this=0x0, timeout_sec=10)
at /mnt/ssd/work/macosx.sync/mp-svn/llvm/tools/lldb/source/Host/common/Socket.cpp:655
#6 0x000000000040a3f4 in ConnectToRemote (gdb_server=..., reverse_connect=false,
host_and_port=0x7fffdf3ce0bb "localhost:0",
progname=0x7fffdf3ce078 "/mnt/ssd/work/macosx.sync/mp-svn/build-debug/bin/lldb-gdbserver",
named_pipe_path=0x11064a8 "/tmp/tmp8DotCl/stub_port_number")
at /mnt/ssd/work/macosx.sync/mp-svn/llvm/tools/lldb/tools/lldb-gdbserver/lldb-gdbserver.cpp:408
#7 0x000000000040b5ae in main (argc=0, argv=0x7fffdf3cbe30)
at /mnt/ssd/work/macosx.sync/mp-svn/llvm/tools/lldb/tools/lldb-gdbserver/lldb-gdbserver.cpp:681
```
Tracking that down.
http://reviews.llvm.org/D4641
More information about the lldb-commits
mailing list