Bug 202381 - www/qupzilla-qt5 - Crash after clean install, clean profile
Summary: www/qupzilla-qt5 - Crash after clean install, clean profile
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Matthew Rezny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-17 10:13 UTC by Will B
Modified: 2015-10-15 14:19 UTC (History)
4 users (show)

See Also:
bugzilla: maintainer-feedback? (rezny)


Attachments
qupzilla-qt5 crash report (235 bytes, text/plain)
2015-08-17 10:13 UTC, Will B
no flags Details
update to current git (2.16 KB, patch)
2015-08-31 09:59 UTC, Matthew Rezny
no flags Details | Diff
update to current git (2.01 KB, patch)
2015-08-31 16:37 UTC, Matthew Rezny
no flags Details | Diff
update to current git (2.13 KB, patch)
2015-08-31 17:04 UTC, Matthew Rezny
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Will B 2015-08-17 10:13:22 UTC
Created attachment 159949 [details]
qupzilla-qt5 crash report

www/qupzilla-qt5 crashes immediately at startup with clean profile.  Please see attached crash log.
Comment 1 Will B 2015-08-17 10:16:45 UTC
gdb output
- - - -
(gdb) bt full
#0  0x0000000806d912cb in strlen () from /lib/libc.so.7
No symbol table info available.
#1  0x0000000000404f37 in std::__1::operator<< <std::__1::char_traits<char> > ()
No symbol table info available.
#2  0x0000000000403e8c in msgHandler ()
No symbol table info available.
#3  0x0000000805897f81 in qt_message_output () from /usr/local/lib/libQt5Core.so.5
No symbol table info available.
#4  0x000000080589345e in QMessageLogger::debug () from /usr/local/lib/libQt5Core.so.5
No symbol table info available.
#5  0x0000000805893a4c in QMessageLogger::warning () from /usr/local/lib/libQt5Core.so.5
No symbol table info available.
#6  0x000000080599e7f2 in QIODevice::write () from /usr/local/lib/libQt5Core.so.5
No symbol table info available.
#7  0x0000000800b814eb in ProfileManager::initConfigDir () from /usr/local/lib/libQupZilla.so.1
No symbol table info available.
#8  0x0000000800b680c7 in MainApplication::MainApplication () from /usr/local/lib/libQupZilla.so.1
No symbol table info available.
#9  0x000000000040459d in msgHandler ()
No symbol table info available.
#10 0x0000000000402a5f in ?? ()
No symbol table info available.
#11 0x0000000800626000 in ?? ()
No symbol table info available.
#12 0x0000000000000000 in ?? ()
No symbol table info available.
Comment 2 Matthew Rezny freebsd_committer freebsd_triage 2015-08-17 23:57:55 UTC
I'm aware of some issues with the Qt5 port of QupZilla. There is one issue which will be resolved by the eventual Qt 5.5 update, and there are some issues with Qt5  that have been resolved by upstream in their repo but not yet released.

I reported your particular issue to the author today. It appears there are two things going wrong. When creating the new profile there is some confusion with the current directory and files being created. Somewhere along the line it tries to throw a warning or error, probably after it fails to create a file. When it tries to output a message it refers to context info (file, function, line) which only exists in debug builds. The warning becomes fatal when it passes a couple null pointers for strings, culminating in the strlen(null) at the top of your backtrace.
Comment 3 Will B 2015-08-18 00:03:50 UTC
(In reply to matthew from comment #2)
That makes sense.  Thank you. :-)
Comment 4 Matthew Rezny freebsd_committer freebsd_triage 2015-08-31 09:59:35 UTC
Created attachment 160555 [details]
update to current git
Comment 5 Matthew Rezny freebsd_committer freebsd_triage 2015-08-31 10:03:54 UTC
This issue should be fixed in upstream git, but it'll be another month before the next release. Try with the patch I just attached.
Comment 6 Will B 2015-08-31 16:10:53 UTC
Thanks for the patch.

I applied it and tried to build, but get this:
- - -
    ===>  License GPLv3 accepted by the user
    ===>  Found saved configuration for qupzilla-qt5-1.8.6.s20150818
    ===>   qupzilla-qt5-1.8.6.s20150818 depends on file: /usr/local/sbin/pkg - found
    => QupZilla-qupzilla-1.8.6.s20150818-1f654b4_GH0.tar.xz is not in /usr/ports/www/qupzilla-qt5/distinfo.
    => Either /usr/ports/www/qupzilla-qt5/distinfo is out of date, or
    => QupZilla-qupzilla-1.8.6.s20150818-1f654b4_GH0.tar.xz is spelled  incorrectly.
    *** Error code 1

Did I miss something?
Comment 7 Matthew Rezny freebsd_committer freebsd_triage 2015-08-31 16:37:11 UTC
Created attachment 160563 [details]
update to current git

I added the version suffix in the Makefile after having already generated the distinfo so they mismatch. Oops, sorry. I revised the patch to correct that.
Comment 8 Will B 2015-08-31 16:53:15 UTC
Thanks for fixing that.  Another error, this time during make install
- - - 
    make install
    ===>  Installing for qupzilla-qt5-1.8.6.s20150818
    ===>   qupzilla-qt5-1.8.6.s20150818 depends on executable: update-desktop-database - found
    ===>   qupzilla-qt5-1.8.6.s20150818 depends on file: /usr/local/libdata/pkgconfig/x11.pc - found
    ===>   qupzilla-qt5-1.8.6.s20150818 depends on file: /usr/local/lib/libQt5Concurrent.so - found
    ===>   qupzilla-qt5-1.8.6.s20150818 depends on file: /usr/local/lib/libQt5Core.so - found
    ===>   qupzilla-qt5-1.8.6.s20150818 depends on file: /usr/local/lib/libQt5Gui.so - found
    ===>   qupzilla-qt5-1.8.6.s20150818 depends on file: /usr/local/lib/qt5/plugins/imageformats/libqtiff.so - found
    ===>   qupzilla-qt5-1.8.6.s20150818 depends on file: /usr/local/lib/libQt5Network.so - found
    ===>   qupzilla-qt5-1.8.6.s20150818 depends on file: /usr/local/lib/libQt5Script.so - found
    ===>   qupzilla-qt5-1.8.6.s20150818 depends on file: /usr/local/lib/qt5/plugins/sqldrivers/libqsqlite.so - found
    ===>   qupzilla-qt5-1.8.6.s20150818 depends on file: /usr/local/lib/libQt5WebKit.so - found
    ===>   qupzilla-qt5-1.8.6.s20150818 depends on file: /usr/local/lib/libQt5Xml.so - found
    ===>   qupzilla-qt5-1.8.6.s20150818 depends on executable: gtk-update-icon-cache - found
    ===>   qupzilla-qt5-1.8.6.s20150818 depends on shared library: libhunspell-1.3.so - found (/usr/local/lib/libhunspell-1.3.so)
    ===>   qupzilla-qt5-1.8.6.s20150818 depends on shared library: libatk-1.0.so - found (/usr/local/lib/libatk-1.0.so)
    ===>   qupzilla-qt5-1.8.6.s20150818 depends on shared library: libgdk_pixbuf-2.0.so - found (/usr/local/lib/libgdk_pixbuf-2.0.so)
    ===>   qupzilla-qt5-1.8.6.s20150818 depends on shared library: libglib-2.0.so - found (/usr/local/lib/libglib-2.0.so)
    ===>   qupzilla-qt5-1.8.6.s20150818 depends on shared library: libpango-1.0.so - found (/usr/local/lib/libpango-1.0.so)
    ===>  Checking if qupzilla-qt5 already installed
    ===>   Registering installation for qupzilla-qt5-1.8.6.s20150818
    pkg-static: Unable to access file /usr/ports/www/qupzilla-qt5/work/stage/usr/local/lib/libQupZilla.so.1.8.6.s20150818: No such file or directory
    *** Error code 74
Comment 9 Matthew Rezny freebsd_committer freebsd_triage 2015-08-31 17:04:19 UTC
Created attachment 160564 [details]
update to current git

*sigh* Of course I did all my testing and then added that version suffix thinking it's harmlss... No, can't be easy. The version is used in a library name. So, yet another patch, cross your fingers and hope the third time's a charm.
Comment 10 Will B 2015-08-31 17:20:24 UTC
Success!  Thank you very much Matthew! :-)
Comment 11 Kubilay Kocak freebsd_committer freebsd_triage 2015-10-14 13:07:25 UTC
Assign to maintainer (who is not a committer), as a test/experiment for assigning non-committer maintainers so they can get stuff done.
Comment 12 Matthew Rezny freebsd_committer freebsd_triage 2015-10-15 14:19:33 UTC
Superseded by: 203651