Skip to content

Segfault since copyCopyrightFile #184

Description

@tresf

I believe a bug is introduced in c5ba2e7.

Using linuxdeployqt with the following options:

linuxdeployqt lmms.desktop -bundle-non-qt-libs -verbose=3 -qmake=/opt/qt58/bin/qmake

This bug does NOT occur if the -bundle-non-qt-libs is omitted.

linuxdeployqt succeeds if I move dpkg out of the way to force-skip the copyCopyrightFile logic.

Here's the backtrace, which I was able to gather by doing run and then bt full after running the following commmand:

gdb --args squashfs-root/usr/bin/linuxdeployqt [path-to]/lmms.desktop -bundle-non-qt-libs -verbose=3 -qmake=/opt/qt58/bin/qmake
(gdb) backtrace
#0  QtPrivate::RefCount::ref (this=0x100000000)
    at /opt/qt59/include/QtCore/qrefcount.h:55
#1  0x000000000040e3a5 in QString (other=..., this=0x7fffffffc170)
    at /opt/qt59/include/QtCore/qstring.h:907
#2  copyCopyrightFile (libPath=...) at shared.cpp:328
#3  0x000000000040f4fc in copyDylib (library=..., path=...) at shared.cpp:751
#4  0x0000000000416c1e in deployQtLibraries (libraries=..., bundlePath=..., 
    binaryPaths=..., useLoaderPath=<optimized out>) at shared.cpp:1010
#5  0x00000000004194de in deployQtLibraries (appDirPath=..., 
    additionalExecutables=..., qmake=...) at shared.cpp:1178
#6  0x0000000000407a1f in main (argc=4, argv=0x7fffffffde38) at main.cpp:398
(gdb) 

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions