<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - segfault hitting breakpoint on a VMware VM"
   href="http://llvm.org/bugs/show_bug.cgi?id=17802">17802</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>segfault hitting breakpoint on a VMware VM
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>xdegaye@gmail.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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 <<a href="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</a>>
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:
<<a href="http://www.gnu.org/software/gdb/bugs/">http://www.gnu.org/software/gdb/bugs/</a>>...
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.
lldb:
/home/xavier/builds/lldb-svn/src/llvm/tools/lldb/source/Plugins/Process/POSIX/POSIXThread.cpp:503:
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=...)
    at
/home/xavier/builds/lldb-svn/src/llvm/tools/lldb/source/Plugins/Process/POSIX/POSIXThread.cpp:503
#6  0xb4206b33 in LinuxThread::TraceNotify (this=0xb18004e0, message=...)
    at
/home/xavier/builds/lldb-svn/src/llvm/tools/lldb/source/Plugins/Process/Linux/LinuxThread.cpp:56
#7  0xb4207ae7 in POSIXThread::Notify (this=0xb18004e0, message=...)
    at
/home/xavier/builds/lldb-svn/src/llvm/tools/lldb/source/Plugins/Process/POSIX/POSIXThread.cpp:345
#8  0xb420bc03 in ProcessPOSIX::RefreshStateAfterStop (this=0x80d9738)
    at
/home/xavier/builds/lldb-svn/src/llvm/tools/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp:550
#9  0xb4091016 in lldb_private::Process::ShouldBroadcastEvent (this=0x80d9738, 
    event_ptr=0xb18008a8)
    at
/home/xavier/builds/lldb-svn/src/llvm/tools/lldb/source/Target/Process.cpp:3720
#10 0xb4091928 in lldb_private::Process::HandlePrivateEvent (this=0x80d9738,
event_sp=
    std::shared_ptr (count 1, weak 0) 0xb18008a8)
    at
/home/xavier/builds/lldb-svn/src/llvm/tools/lldb/source/Target/Process.cpp:3968
#11 0xb408f00a in lldb_private::Process::Launch (this=0x80d9738,
launch_info=...)
    at
/home/xavier/builds/lldb-svn/src/llvm/tools/lldb/source/Target/Process.cpp:2951
#12 0xb4247317 in CommandObjectProcessLaunch::DoExecute (this=0x8077900,
launch_args=..., 
    result=...)
    at
/home/xavier/builds/lldb-svn/src/llvm/tools/lldb/source/Commands/CommandObjectProcess.cpp:286
#13 0xb3fcab9b in lldb_private::CommandObjectParsed::Execute (this=0x8077900, 
    args_string=0x80d550c "-c/bin/sh --", result=...)
    at
/home/xavier/builds/lldb-svn/src/llvm/tools/lldb/source/Interpreter/CommandObject.cpp:1037
#14 0xb3fbf76a in lldb_private::CommandInterpreter::HandleCommand
(this=0x806caf0, 
    command_line=0xb1600c04 "run",
lazy_add_to_history=lldb_private::eLazyBoolYes, result=..., 
    override_context=0x0, repeat_on_empty_command=true,
no_context_switching=false)
    at
/home/xavier/builds/lldb-svn/src/llvm/tools/lldb/source/Interpreter/CommandInterpreter.cpp:18---Type
<return> to continue, or q <return> to quit---q
Quit
(gdb) frame 5
#5  0xb420825d in POSIXThread::WatchNotify (this=0xb18004e0, message=...)
    at
/home/xavier/builds/lldb-svn/src/llvm/tools/lldb/source/Plugins/Process/POSIX/POSIXThread.cpp:503
503            assert(wp_sp.get() && "No watchpoint found");
(gdb) p wp_list
Python Exception <type 'exceptions.ValueError'> Cannot find type
lldb_private::WatchpointList::wp_collection::_Node: 
$1 = (const lldb_private::WatchpointList &) @0x80b5e4c: {m_watchpoints = empty
std::list, 
  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>,
"\001\000\000\000\000\000\000\000\000\000\000", 
      __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)
    at
/home/xavier/builds/lldb-svn/src/llvm/tools/lldb/include/lldb/Breakpoint/StoppointLocation.h:113
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
Continuing.
[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</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>