[Bug 23221] New: Problem loading plugin via Python API when LLDB is compiled with clang, but the plugin with GCC

Bug ID 23221
Summary Problem loading plugin via Python API when LLDB is compiled with clang, but the plugin with GCC
Product lldb
Version unspecified
Hardware PC
OS Linux
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@cs.uiuc.edu
Reporter sivachandra@gmail.com
Classification Unclassified

Loading a plugin fails if all of:

1. LLDB is compiled with clang
2. Plugin is compiled with GCC
3. Load the plugin via Python API

This can seen with TestPluginCommands. If we build LLDB with clang and run the
test with:

./dotest.py -C gcc -executable=<path_to_llvm_build>/bin/lldb -t -p
TestPluginCommands

it fails with this error:

python: symbol lookup error:
<path_to_lldb_src>/test/functionalities/plugins/commands/libplugin.so:
undefined symbol: _ZN4lldb10SBDebugger21GetCommandInterpreterEv

If we replace #3 with "plugin load" command, it works. In other words, if we
manually run all the steps in TestPluginCommands, everything works.

Chaoren Lin changed bug 23221

What | Removed | Added |

Comment # 1 on bug 23221 from Chaoren Lin

[http://reviews.llvm.org/D9045](http://reviews.llvm.org/D9045)