[llvm-bugs] [Bug 36534] New: SIGSEGV on 'image dump symfile'

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Feb 27 03:43:53 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=36534

            Bug ID: 36534
           Summary: SIGSEGV on 'image dump symfile'
           Product: lldb
           Version: 6.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: dantipov at nvidia.com
                CC: llvm-bugs at lists.llvm.org

Configured on X86/Linux with:

cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS_DEBUG='-O0 -g'
-DCMAKE_CXX_FLAGS_DEBUG='-O0 -g'
-DCMAKE_INSTALL_PREFIX=/home/dantipov/.local/llvm-6.0.0
-DLLVM_TARGETS_TO_BUILD="ARM;AArch64;X86"

LLDB is unable to 'image dump symfile' of itself:

$ pidof lldb
6177
$ /home/dantipov/.local/llvm-6.0.0/bin/lldb
(lldb) version
lldb version 6.0.0 (http://llvm.org/svn/llvm-project/lldb/tags/RELEASE_600/rc3
revision 326179)
  clang revision 326179
  llvm revision 326179
(lldb) attach 6177
Process 6177 stopped
* thread #1, name = 'lldb', stop reason = signal SIGSTOP
    frame #0: 0x00007f5518b6b313 libc.so.6`__GI___select(nfds=4,
readfds=0x00007ffda6c07ec0, writefds=0x0000000000000000,
exceptfds=0x0000000000000000, timeout=0x0000000000000000) at select.c:41
   38             struct timeval *timeout)
   39   {
   40   #ifdef __NR_select
-> 41     return SYSCALL_CANCEL (select, nfds, readfds, writefds, exceptfds,
   42                            timeout);
   43   #else
   44     int result;
  thread #2, name = 'lldb', stop reason = signal SIGSTOP
    frame #0: 0x00007f5521fa5cbb libpthread.so.0`__pthread_cond_wait at
futex-internal.h:88
   85   {
   86     int oldtype;
   87     oldtype = __pthread_enable_asynccancel ();
-> 88     int err = lll_futex_timed_wait (futex_word, expected, NULL, private);
   89     __pthread_disable_asynccancel (oldtype);
   90     switch (err)
   91       {

Executable module set to "/home/dantipov/.local/llvm-6.0.0/bin/lldb".
Architecture set to: x86_64--linux.
(lldb) image dump symfile
Stack dump:
0.      HandleCommand(command = "image dump symfile")
Segmentation fault (core dumped)

$ gdb -q /home/dantipov/.local/llvm-6.0.0/bin/lldb core.6182 
Reading symbols from /home/dantipov/.local/llvm-6.0.0/bin/lldb...done.
[New LWP 6182]
[New LWP 6189]
[New LWP 6183]
[New LWP 6188]
[New LWP 6187]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/home/dantipov/.local/llvm-6.0.0/bin/lldb'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007fdf4b3f19f0 in lldb_private::UserID::GetID (this=0x10) at
/home/dantipov/llvm/6.0.0/source/tools/lldb/include/lldb/Utility/UserID.h:60
60        lldb::user_id_t GetID() const { return m_uid; }
[Current thread is 1 (Thread 0x7fdf532c0580 (LWP 6182))]
(gdb) bt
#0  0x00007fdf4b3f19f0 in lldb_private::UserID::GetID (this=0x10) at
/home/dantipov/llvm/6.0.0/source/tools/lldb/include/lldb/Utility/UserID.h:60
#1  0x00007fdf4b984cc8 in lldb_private::operator<< (strm=..., uid=...) at
/home/dantipov/llvm/6.0.0/source/tools/lldb/source/Utility/UserID.cpp:19
#2  0x00007fdf4b83cd57 in lldb_private::Type::Dump (this=0x0, s=0x7ffe85641720,
show_context=false) at
/home/dantipov/llvm/6.0.0/source/tools/lldb/source/Symbol/Type.cpp:217
#3  0x00007fdf4b842e6e in lldb_private::TypeList::Dump (this=0x7fde472b8598,
s=0x7ffe85641720, show_context=false)
    at
/home/dantipov/llvm/6.0.0/source/tools/lldb/source/Symbol/TypeList.cpp:105
#4  0x00007fdf4b824f62 in lldb_private::SymbolVendor::Dump
(this=0x7fde472b8580, s=0x7ffe85641720)
    at
/home/dantipov/llvm/6.0.0/source/tools/lldb/source/Symbol/SymbolVendor.cpp:396
#5  0x00007fdf4caec6cd in DumpModuleSymbolVendor (strm=...,
module=0x7fde4460be70) at
/home/dantipov/llvm/6.0.0/source/tools/lldb/source/Commands/CommandObjectTarget.cpp:1431
#6  0x00007fdf4caf459a in CommandObjectTargetModulesDumpSymfile::DoExecute
(this=0x17de9e0, command=..., result=...)
    at
/home/dantipov/llvm/6.0.0/source/tools/lldb/source/Commands/CommandObjectTarget.cpp:2234
#7  0x00007fdf4b7582a2 in lldb_private::CommandObjectParsed::Execute
(this=0x17de9e0, args_string=0x7ffe85641350 "", result=...)
    at
/home/dantipov/llvm/6.0.0/source/tools/lldb/source/Interpreter/CommandObject.cpp:991
#8  0x00007fdf4b745c65 in lldb_private::CommandInterpreter::HandleCommand
(this=0x17b6cc0, command_line=0x1908ae0 "image dump symfile", 
    lazy_add_to_history=lldb_private::eLazyBoolCalculate, result=...,
override_context=0x0, repeat_on_empty_command=true, no_context_switching=false)
    at
/home/dantipov/llvm/6.0.0/source/tools/lldb/source/Interpreter/CommandInterpreter.cpp:1683
#9  0x00007fdf4b74a8b3 in
lldb_private::CommandInterpreter::IOHandlerInputComplete (this=0x17b6cc0,
io_handler=..., line="image dump symfile")
    at
/home/dantipov/llvm/6.0.0/source/tools/lldb/source/Interpreter/CommandInterpreter.cpp:2771
#10 0x00007fdf4b610c8b in lldb_private::IOHandlerEditline::Run (this=0x18c0bf0)
at /home/dantipov/llvm/6.0.0/source/tools/lldb/source/Core/IOHandler.cpp:573
#11 0x00007fdf4b5d3c3f in lldb_private::Debugger::ExecuteIOHandlers
(this=0x17b54b0) at
/home/dantipov/llvm/6.0.0/source/tools/lldb/source/Core/Debugger.cpp:961
#12 0x00007fdf4b74b48f in
lldb_private::CommandInterpreter::RunCommandInterpreter (this=0x17b6cc0,
auto_handle_events=true, spawn_thread=false, options=...)
    at
/home/dantipov/llvm/6.0.0/source/tools/lldb/source/Interpreter/CommandInterpreter.cpp:2971
#13 0x00007fdf4b41f0e8 in lldb::SBDebugger::RunCommandInterpreter
(this=0x7ffe85641cc0, auto_handle_events=true, spawn_thread=false)
    at
/home/dantipov/llvm/6.0.0/source/tools/lldb/source/API/SBDebugger.cpp:891
#14 0x0000000000406d86 in Driver::MainLoop (this=0x7ffe85641ca0) at
/home/dantipov/llvm/6.0.0/source/tools/lldb/tools/driver/Driver.cpp:1156
#15 0x0000000000407110 in main (argc=1, argv=0x7ffe85641f08) at
/home/dantipov/llvm/6.0.0/source/tools/lldb/tools/driver/Driver.cpp:1253

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180227/4dc38c73/attachment.html>


More information about the llvm-bugs mailing list