[lldb-dev] [Bug 27806] New: thread step-over dlopen fails while running test_step_over_load (TestLoadUnload.py)

via lldb-dev lldb-dev at lists.llvm.org
Wed May 18 15:10:06 PDT 2016


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

            Bug ID: 27806
           Summary: thread step-over dlopen fails while running
                    test_step_over_load (TestLoadUnload.py)
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: omair.javaid at linaro.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Inferior does not stop as expected and continues to run and exits.

Log given below:


(lldb) settings set target.env-vars LD_LIBRARY_PATH=/home/omair/lldb/tmp
(lldb) file
/home/omair/work/lldb-dev/llvm/tools/lldb/packages/Python/lldbsuite/test/functionalities/load_unload/a.out
Current executable set to
'/home/omair/work/lldb-dev/llvm/tools/lldb/packages/Python/lldbsuite/test/functionalities/load_unload/a.out'
(arm).
(lldb) breakpoint set -f "main.cpp" -l 31
Breakpoint 1: where = a.out`main + 38 at main.cpp:31, address = 0x00008802
(lldb) run
Process 25796 launched:
'/home/omair/work/lldb-dev/llvm/tools/lldb/packages/Python/lldbsuite/test/functionalities/load_unload/a.out'
(arm)
Process 25796 stopped
* thread #1: tid = 25796, 0x00008802 a.out`main(argc=1, argv=0x7efffee4) + 38
at main.cpp:31, name = 'a.out', stop reason = breakpoint 1.1
    frame #0: 0x00008802 a.out`main(argc=1, argv=0x7efffee4) + 38 at
main.cpp:31
   28          void *c_dylib_handle = NULL;
   29          int (*a_function) (void);
   30      
-> 31          a_dylib_handle = dlopen (a_name, RTLD_NOW); // Set break point
at this line for test_lldb_process_load_and_unload_commands().
   32          if (a_dylib_handle == NULL)
   33          {
   34              fprintf (stderr, "%s\n", dlerror());
(lldb) image lookup -n a_function
(lldb) process load libloadunload_a.so --install
error: failed to load 'libloadunload_a.so': platform install doesn't handle non
file or directory items
(lldb) kill
Process 25796 exited with status = 9 (0x00000009) 
(lldb) run
Process 25801 launched:
'/home/omair/work/lldb-dev/llvm/tools/lldb/packages/Python/lldbsuite/test/functionalities/load_unload/a.out'
(arm)
Process 25801 stopped
* thread #1: tid = 25801, 0x00008802 a.out`main(argc=1, argv=0x7efffee4) + 38
at main.cpp:31, name = 'a.out', stop reason = breakpoint 1.1
    frame #0: 0x00008802 a.out`main(argc=1, argv=0x7efffee4) + 38 at
main.cpp:31
   28          void *c_dylib_handle = NULL;
   29          int (*a_function) (void);
   30      
-> 31          a_dylib_handle = dlopen (a_name, RTLD_NOW); // Set break point
at this line for test_lldb_process_load_and_unload_commands().
   32          if (a_dylib_handle == NULL)
   33          {
   34              fprintf (stderr, "%s\n", dlerror());
(lldb) thread list
Process 25801 stopped
* thread #1: tid = 25801, 0x00008802 a.out`main(argc=1, argv=0x7efffee4) + 38
at main.cpp:31, name = 'a.out', stop reason = breakpoint 1.1
(lldb) thread step-over 
First time around, got: 500
Second time around, got: 500
d_function returns: 700
Process 25801 exited with status = 0 (0x00000000)

-- 
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/20160518/9a2cc671/attachment.html>


More information about the lldb-dev mailing list