<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 --- - lldb segfault when debugging mysql in certain functions"
href="https://llvm.org/bugs/show_bug.cgi?id=28178">28178</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>lldb segfault when debugging mysql in certain functions
</td>
</tr>
<tr>
<th>Product</th>
<td>lldb
</td>
</tr>
<tr>
<th>Version</th>
<td>3.8
</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>pgsql@j-davis.com
</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>LLDB/clang 3.8.0.
I compiled mysql 5.6 from source (
<a href="https://github.com/mysql/mysql-server.git">https://github.com/mysql/mysql-server.git</a>
6594835303da437105bb3841df976620b716e088 ), using:
cmake . -DWITH_DEBUG=1 -DCMAKE_C_COMPILER=clang
-DCMAKE_CXX_COMPILER=clang++ -DCMAKE_INSTALL_PREFIX=/some/path
-DCMAKE_VERBOSE_MAKEFILE=1
I run mysqld, attach to it, and do:
...
Architecture set to: x86_64--linux.
(lldb) p 1
(int) $0 = 1
(lldb) break set -n JOIN::optimize
Breakpoint 1: where = mysqld`JOIN::optimize() + 42 at
sql_optimizer.cc:120, address = 0x0000000000a6b96a
(lldb) c
Process 20415 resuming
[ in mysql client, issue "select 1" ]
Process 20415 stopped
* thread #22: tid = 20477, 0x0000000000a6b96a
mysqld`JOIN::optimize(this=0x00007f07740052b0) + 42 at
sql_optimizer.cc:120, name = 'mysqld', stop reason = breakpoint 1.1
frame #0: 0x0000000000a6b96a
mysqld`JOIN::optimize(this=0x00007f07740052b0) + 42 at
sql_optimizer.cc:120
117 JOIN::optimize()
118 {
119 ulonglong select_opts_for_readinfo;
-> 120 uint no_jbuf_after= UINT_MAX;
121
122 DBUG_ENTER("JOIN::optimize");
123 DBUG_ASSERT(!tables || thd->lex->is_query_tables_locked());
(lldb) p 1
zsh: segmentation fault lldb -p 20415
I reproduced this based on someone else's more complicated report (and
I don't have the full details there) but if there are more details I
can provide about this simple case, please let me know.
Regards,
Jeff Davis</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>