<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/55385>55385</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            lldb crashes when printing a variable
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          andreasbuykx
      </td>
    </tr>
</table>

<pre>
    # start lldb with my application
% /path/to/lldb bin/myapplication

# set pending breakpoint 
(lldb) set break -n class::method

Breakpoint 1: no locations (pending).
WARNING:  Unable to resolve breakpoint to any actual locations.
(lldb) r

Process 2964381 launched: '/usr1/user/bxa/projects/jack/debug/bin/DianaIE' (x86_64)
2 locations added to breakpoint 1
[ ... lots of messages 'No LZMA support found for reading .gnu_debugdata section'  for system libraries ... ]

# do stuff in my gui application to hit the breakpoint

# step over some instructions 

Process 2964381 stopped
* thread #1, name = 'DianaIE', stop reason = step over
    frame #0: 0x00007ffff3478bdb libPpfModel.so`ppf::SelectionManager::setMode(this=0x0000000009907320, id=b'u"shape"') at PpfSelectionModel.cpp:167
   164      return;
   165  
   166    auto previousSelectionType = m_mode.partType();
-> 167         m_mode = SelectionMode::predefined( id );
   168  
   169    qCDebug( logPpfSM() ) << "SelectionManager::setMode() " << id << "clearing current selection";
   170    m_selected.clear();
(lldb) p previousSelectionType
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0.      Program arguments: /opt/clion-2022.1/bin/lldb/linux/bin/lldb bin/DianaIE
 #0 0x0000000000425a3f _init (/opt/clion-2022.1/bin/lldb/linux/bin/lldb+0x425a3f)
 #1 0x0000000000423d1d _init (/opt/clion-2022.1/bin/lldb/linux/bin/lldb+0x423d1d)
 #2 0x00007ff9b1fdfce0 __restore_rt (/lib64/libpthread.so.0+0x12ce0)
 #3 0x00007ff9addb1b46 (/opt/clion-2022.1/bin/lldb/linux/bin/../lib/liblldb.so+0x1336b46)
 #4 0x00007ff9adde2042 (/opt/clion-2022.1/bin/lldb/linux/bin/../lib/liblldb.so+0x1367042)
 #5 0x00007ff9adde38eb (/opt/clion-2022.1/bin/lldb/linux/bin/../lib/liblldb.so+0x13688eb)
 #6 0x00007ff9adde8154 (/opt/clion-2022.1/bin/lldb/linux/bin/../lib/liblldb.so+0x136d154)
 #7 0x00007ff9addb7523 (/opt/clion-2022.1/bin/lldb/linux/bin/../lib/liblldb.so+0x133c523)
 #8 0x00007ff9addb8115 (/opt/clion-2022.1/bin/lldb/linux/bin/../lib/liblldb.so+0x133d115)
 #9 0x00007ff9addb83ce (/opt/clion-2022.1/bin/lldb/linux/bin/../lib/liblldb.so+0x133d3ce)
#10 0x00007ff9adde104a (/opt/clion-2022.1/bin/lldb/linux/bin/../lib/liblldb.so+0x136604a)
#11 0x00007ff9adde1173 (/opt/clion-2022.1/bin/lldb/linux/bin/../lib/liblldb.so+0x1366173)
#12 0x00007ff9addb1f0f (/opt/clion-2022.1/bin/lldb/linux/bin/../lib/liblldb.so+0x1336f0f)
#13 0x00007ff9ad986119 (/opt/clion-2022.1/bin/lldb/linux/bin/../lib/liblldb.so+0xf0b119)
#14 0x00007ff9ae729990 (/opt/clion-2022.1/bin/lldb/linux/bin/../lib/liblldb.so+0x1cae990)
#15 0x00007ff9ae72af1d (/opt/clion-2022.1/bin/lldb/linux/bin/../lib/liblldb.so+0x1caff1d)
#16 0x00007ff9ae72b736 (/opt/clion-2022.1/bin/lldb/linux/bin/../lib/liblldb.so+0x1cb0736)
#17 0x00007ff9ad918fdc (/opt/clion-2022.1/bin/lldb/linux/bin/../lib/liblldb.so+0xe9dfdc)
#18 0x00007ff9ada502c0 (/opt/clion-2022.1/bin/lldb/linux/bin/../lib/liblldb.so+0xfd52c0)
#19 0x00007ff9ae603c86 (/opt/clion-2022.1/bin/lldb/linux/bin/../lib/liblldb.so+0x1b88c86)
#20 0x00007ff9ae604f4d (/opt/clion-2022.1/bin/lldb/linux/bin/../lib/liblldb.so+0x1b89f4d)
#21 0x00007ff9ad9527bd (/opt/clion-2022.1/bin/lldb/linux/bin/../lib/liblldb.so+0xed77bd)
#22 0x00007ff9ad94dede (/opt/clion-2022.1/bin/lldb/linux/bin/../lib/liblldb.so+0xed2ede)
#23 0x00007ff9ad94e51d (/opt/clion-2022.1/bin/lldb/linux/bin/../lib/liblldb.so+0xed351d)
#24 0x00007ff9ad87bae9 (/opt/clion-2022.1/bin/lldb/linux/bin/../lib/liblldb.so+0xe00ae9)
#25 0x00007ff9ad853cf2 (/opt/clion-2022.1/bin/lldb/linux/bin/../lib/liblldb.so+0xdd8cf2)
#26 0x00007ff9ad942353 (/opt/clion-2022.1/bin/lldb/linux/bin/../lib/liblldb.so+0xec7353)
#27 0x00007ff9ad4bc527 lldb::SBDebugger::RunCommandInterpreter(bool, bool) (/opt/clion-2022.1/bin/lldb/linux/bin/../lib/liblldb.so+0xa41527)
#28 0x000000000040772f _init (/opt/clion-2022.1/bin/lldb/linux/bin/lldb+0x40772f)
#29 0x00000000004064d7 _init (/opt/clion-2022.1/bin/lldb/linux/bin/lldb+0x4064d7)
#30 0x00007ff9abdc1ca3 __libc_start_main (/lib64/libc.so.6+0x3aca3)
#31 0x00000000004066b1 _init (/opt/clion-2022.1/bin/lldb/linux/bin/lldb+0x4066b1)

Segmentation fault (core dumped)

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy1WNmO2zYU_Rr5hRhBovYHP8xaBEiCIGlRoC8GN9lKtFWiJjN_30NqbIuaogUC2_BIHok85-7kJe_k69ajERk1GzSpa8nJz0ofSPNKWN_XlWC66lovePCCW48mxKNPPdMH3HSHi53AqxY_m9f3E96mAV5p0qtWVu2e8EGxH31XtZocB-QGx6OFHWffk5uWiJqNoxfd4tsofejkEvXujBJiAGk7Uncz-Qgp8zc2gPrzhD9vv37-8Pk3M5b80TJeK6I7Mqixq5_VUig8ZS3UF3pi9RnUfyfssJTny9AJNY6E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