<html>
<head>
<base href="https://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 --- - thread step-over dlopen fails while running test_step_over_load (TestLoadUnload.py)"
href="https://llvm.org/bugs/show_bug.cgi?id=27806">27806</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>thread step-over dlopen fails while running test_step_over_load (TestLoadUnload.py)
</td>
</tr>
<tr>
<th>Product</th>
<td>lldb
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</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@lists.llvm.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>omair.javaid@linaro.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>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)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>