Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Application crashes with "symbol _ZdlPvm, version Qt_5 not defined in file libQt5Core.so.5 with link time reference"

Tags:

c++

qt

I have the following situation: I need to have program running in an AWS EC2 Server.

The program is made using Qt. Recently, I updated the program AND the Qt Version provided by Amazon to 5.9.2.

I develop the program in one of my computers and when it is done, I copy it to the server.

I use a second computer to connect to the servers (I can switch between connected to the computer next to me or the AWS server).

Now the problem is that when I'm doing one of the transactions, the program on the AWS server crashes with this error:

symbol _ZdlPvm, version Qt_5 not defined in file libQt5Core.so.5 with link time reference

If I do the same transaction against the program in my own local computer, it works just fine.

This does not seem to me like a bug caused by my code but rather by the link and/or compile process.

Can anyone tell me what it means o how I can diagnose the problem?

like image 299
aarelovich Avatar asked Oct 27 '18 13:10

aarelovich


1 Answers

I had the same issue with Qt 5.11.2 from KDE Neon. But no problem with the official Qt 5.11.2 SDK.

If I add this flag to the project: QMAKE_CXXFLAGS += "-fno-sized-deallocation", eveything works again.

I believe that if you compile your program as c++14 or above, the code will try to do a sized deallocation. Because compiling with -std=c++11 doesn't cause this issue.

Probably, Qt from KDE Neon was compiled as C++11.

like image 171
Marcos Zolnowski Avatar answered Oct 17 '22 20:10

Marcos Zolnowski