This was originally a PySide2 bug, but after a bit of debugging following this SO answer, I think it might be a general c++ problem, regardless what the application and the undefined symbol really is.
When I run /home/me/.local/lib/python3.8/site-packages/PySide2/designer
and close it, it crashes with
/home/me/.local/lib/python3.8/site-packages/PySide2/designer:
symbol lookup error: /home/me/.local/lib/python3.8/site-packages/PySide2/designer:
undefined symbol: _ZdlPvm, version Qt_5
But this should not have happened. First, the system libstdc++ is indeed loaded:
$ LD_DEBUG=libs pyside2-designer 2>&1 |grep libstdc++
1926528: find library=libstdc++.so.6 [0]; searching
1926528: trying file=/home/me/.local/lib/python3.8/site-packages/shiboken2/libstdc++.so.6
1926528: trying file=/usr/lib/libstdc++.so.6
1926528: calling init: /usr/lib/libstdc++.so.6
1926533: find library=libstdc++.so.6 [0]; searching
1926533: trying file=/usr/lib/libstdc++.so.6
1926533: calling init: /usr/lib/libstdc++.so.6
1926528: calling fini: /usr/lib/libstdc++.so.6 [0]
Second, the symbol "_ZdlPvm" is indeed defined in /usr/lib/libstdc++.so.6
:
$ nm -D /usr/lib/libstdc++.so.6 |grep _ZdlPvm
00000000000a1ca0 T _ZdlPvm
00000000000a3c30 T _ZdlPvmSt11align_val_t
unless these two facts do not guarantee that the symbol _ZdlPvm
is found and used, then I wonder how it can be guaranteed and how dynamic loading really works.
Thanks in advance.
operator delete(void*, unsigned long)
which is a standard C++ function. No one has any idea whatdesigner
is doing and how it loads libraries or searches for symbols, but let me assure you that lots of C++ applications use this function without any problem. It isn't quite clear what kind of "general C++ problem" you have in mind. – n. 'pronouns' m. Apr 23 '20 at 10:24