[lldb-dev] [Bug 17802] New: segfault hitting breakpoint on a VMware VM

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Nov 4 11:26:06 PST 2013


            Bug ID: 17802
           Summary: segfault hitting breakpoint on a VMware VM
           Product: lldb
           Version: unspecified
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at cs.uiuc.edu
          Reporter: xdegaye at gmail.com
    Classification: Unclassified

Archlinux i686 running on a hardware version 7 VMware VM.
lldb (svnversion 193157) built with gcc 4.8.2 and cmake.

The following gdb session is run with lldb built in 'Debug' built type
and '-O2' removed from CMAKE_CXX_FLAGS in CMakeCache.txt:

$ gdb /usr/bin/lldb
GNU gdb (GDB) 7.6.1
Copyright (C) 2013 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 "i686-pc-linux-gnu".
For bug reporting instructions, please see:
Reading symbols from /usr/bin/lldb...(no debugging symbols found)...done.
(gdb) set args foobar
(gdb) run
Starting program: /usr/bin/lldb foobar
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0xb293eb40 (LWP 7612)]
[New Thread 0xb213db40 (LWP 7613)]
[New Thread 0xb15ffb40 (LWP 7614)]
[New Thread 0xb0dfeb40 (LWP 7615)]
Current executable set to 'foobar' (i386).
(lldb) beakpoint set --name main
Breakpoint 1: where = foobar`main + 26 at foobar.c:10, address = 0x080484da
(lldb) run
[New Thread 0xb05fdb40 (LWP 7616)]
[New Thread 0xafdfcb40 (LWP 7618)]
[New Thread 0xaf5fbb40 (LWP 7619)]
warning: failed to set breakpoint site at 0x80483c0 for breakpoint -1.1: Unable
to read memory at breakpoint address.
warning: failed to set breakpoint site at 0x80484da for breakpoint 1.1: Unable
to read memory at breakpoint address.
void POSIXThread::WatchNotify(const ProcessMessage&): Assertion `wp_sp.get() &&
"No watchpoint found"' failed.

Program received signal SIGABRT, Aborted.
0xb7fdd424 in __kernel_vsyscall ()
(gdb) bt
#0  0xb7fdd424 in __kernel_vsyscall ()
#1  0xb2be04c6 in raise () from /usr/lib/libc.so.6
#2  0xb2be1c53 in abort () from /usr/lib/libc.so.6
#3  0xb2bd9767 in __assert_fail_base () from /usr/lib/libc.so.6
#4  0xb2bd9817 in __assert_fail () from /usr/lib/libc.so.6
#5  0xb420825d in POSIXThread::WatchNotify (this=0xb18004e0, message=...)
#6  0xb4206b33 in LinuxThread::TraceNotify (this=0xb18004e0, message=...)
#7  0xb4207ae7 in POSIXThread::Notify (this=0xb18004e0, message=...)
#8  0xb420bc03 in ProcessPOSIX::RefreshStateAfterStop (this=0x80d9738)
#9  0xb4091016 in lldb_private::Process::ShouldBroadcastEvent (this=0x80d9738, 
#10 0xb4091928 in lldb_private::Process::HandlePrivateEvent (this=0x80d9738,
    std::shared_ptr (count 1, weak 0) 0xb18008a8)
#11 0xb408f00a in lldb_private::Process::Launch (this=0x80d9738,
#12 0xb4247317 in CommandObjectProcessLaunch::DoExecute (this=0x8077900,
#13 0xb3fcab9b in lldb_private::CommandObjectParsed::Execute (this=0x8077900, 
    args_string=0x80d550c "-c/bin/sh --", result=...)
#14 0xb3fbf76a in lldb_private::CommandInterpreter::HandleCommand
    command_line=0xb1600c04 "run",
lazy_add_to_history=lldb_private::eLazyBoolYes, result=..., 
    override_context=0x0, repeat_on_empty_command=true,
<return> to continue, or q <return> to quit---q
(gdb) frame 5
#5  0xb420825d in POSIXThread::WatchNotify (this=0xb18004e0, message=...)
503            assert(wp_sp.get() && "No watchpoint found");
(gdb) p wp_list
Python Exception <type 'exceptions.ValueError'> Cannot find type
$1 = (const lldb_private::WatchpointList &) @0x80b5e4c: {m_watchpoints = empty
  m_mutex = {m_mutex = {__data = {__lock = 0, __count = 0, __owner = 0, __kind
= 1, __nusers = 0, {
          d = {__espins = 0, __elision = 0}, __list = {__next = 0x0}}}, 
      __size = '\000' <repeats 12 times>,
      __align = 0}}, m_next_wp_id = 0}
(gdb) p wp_sp
$2 = std::shared_ptr (empty) 0x0
(gdb) p wp_sp.get()
$3 = (lldb_private::Watchpoint *) 0x0
(gdb) p wp_sp->GetID()

Program received signal SIGSEGV, Segmentation fault.
0xb3ddb24e in lldb_private::StoppointLocation::GetID (this=0x0)
113            return m_loc_id;
The program being debugged was signaled while in a function called from GDB.
GDB remains in the frame where the signal was received.
To change this behavior use "set unwindonsignal on".
Evaluation of the expression containing the function
(lldb_private::StoppointLocation::GetID() const) will be abandoned.
When the function is done executing, GDB will silently stop.
(gdb) continue
[Thread 0xaf5fbb40 (LWP 7619) exited]
[Thread 0xafdfcb40 (LWP 7618) exited]
[Thread 0xb05fdb40 (LWP 7616) exited]
[Thread 0xb0dfeb40 (LWP 7615) exited]
[Thread 0xb213db40 (LWP 7613) exited]
[Thread 0xb293eb40 (LWP 7612) exited]
[Thread 0xb294d700 (LWP 7608) exited]

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
(gdb) quit

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20131104/fa39311a/attachment.html>

More information about the lldb-dev mailing list