Bug 197079 - devel/qtcreator: segfault in pthread_attr_get_np () from /lib/libthr.so.3
Summary: devel/qtcreator: segfault in pthread_attr_get_np () from /lib/libthr.so.3
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-kde (group)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-26 00:30 UTC by vono
Modified: 2015-02-14 21:46 UTC (History)
1 user (show)

See Also:


Attachments
dmesg (18.26 KB, text/plain)
2015-01-26 00:30 UTC, vono
no flags Details
Xorg.0.log (28.65 KB, text/x-log)
2015-01-26 00:31 UTC, vono
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description vono 2015-01-26 00:30:46 UTC
Created attachment 152140 [details]
dmesg

qtcreator 3.3.0 (following https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196167) crash at start-up.
using the core dump & gdb, I have:

#0  0x00000008035a5873 in pthread_attr_get_np () from /lib/libthr.so.3
[New Thread 860a57800 (LWP 100190/qtcreator)]
[New Thread 860a56800 (LWP 100189/qtcreator)]
[New Thread 80980f400 (LWP 100188/qtcreator)]
[New Thread 81f8e7000 (LWP 100187/qtcreator)]
[New Thread 81f8e2000 (LWP 100186/qtcreator)]
[New Thread 809807c00 (LWP 100185/qtcreator)]
[New Thread 809806c00 (LWP 100184/qtcreator)]
[New Thread 809806400 (LWP 100131/qtcreator)]
(gdb) backtrace 
#0  0x00000008035a5873 in pthread_attr_get_np () from /lib/libthr.so.3
#1  0x000000080fee4745 in QV4::ExecutionEngine::ExecutionEngine ()
   from /usr/local/lib/libQt5Qml.so.5
#2  0x000000080fffbf93 in QV8Engine::QV8Engine ()
   from /usr/local/lib/libQt5Qml.so.5
#3  0x000000080fea24c5 in QJSEngine::QJSEngine ()
   from /usr/local/lib/libQt5Qml.so.5
#4  0x000000080ff711a5 in QQmlEngine::QQmlEngine ()
   from /usr/local/lib/libQt5Qml.so.5
#5  0x000000080fa1c36f in QQuickDefaultClipNode::updateGeometry ()
   from /usr/local/lib/libQt5Quick.so.5
#6  0x000000081ebce481 in ?? ()
   from /usr/local/lib/qtcreator/plugins/libWelcome.so
#7  0x000000081ebd089f in ?? ()
   from /usr/local/lib/qtcreator/plugins/libWelcome.so
#8  0x000000080085f878 in ExtensionSystem::Internal::PluginSpecPrivate::initializePlugin () from /usr/local/lib/qtcreator/libExtensionSystem.so.1
#9  0x000000080085077d in ExtensionSystem::Internal::PluginManagerPrivate::loadPlugin () from /usr/local/lib/qtcreator/libExtensionSystem.so.1
#10 0x000000080084bb99 in ExtensionSystem::Internal::PluginManagerPrivate::loadPlugins () from /usr/local/lib/qtcreator/libExtensionSystem.so.1
#11 0x000000000040f6d3 in ?? ()
#12 0x000000000040758f in ?? ()
---Type <return> to continue, or q <return> to quit--- 
#13 0x0000000800634000 in ?? ()
#14 0x0000000000000000 in ?? ()
(gdb) 

Note: I am using a fresh FreeBSD 10.1 RELEASE (amd64) installation (install a few hours ago!).
QtCreator 3.2? on GNU/Linux work fine on the same hardware (Xubuntu 14.10 x86_64).
Comment 1 vono 2015-01-26 00:31:27 UTC
Created attachment 152141 [details]
Xorg.0.log
Comment 2 vono 2015-01-26 01:12:26 UTC
You can download the core file here:
https://www.dropbox.com/s/2t5hkrtze1o1npt/FreeBSD-amd64-10.1_qtcreator-3.3.0.core.xz?dl=0

Download size: 2 786,0 KiB
Uncompress size: 1 088,3 MiB
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2015-01-26 03:06:15 UTC
Fix Summary and assign.
Comment 4 Alex Richardson 2015-01-26 05:46:35 UTC
I fixed this in https://codereview.qt-project.org/#/c/104122/, but it will probably only be included in Qt 5.4.2.

This patch should be applied to the current qt5-qml port.
Comment 5 Raphael Kubo da Costa freebsd_committer freebsd_triage 2015-01-28 00:52:11 UTC
Thanks; I've staged the patch in Qt's Gerrit and will backport it once it lands.
Comment 6 commit-hook freebsd_committer freebsd_triage 2015-01-29 02:11:51 UTC
A commit references this bug:

Author: rakuco
Date: Thu Jan 29 02:11:01 UTC 2015
New revision: 378099
URL: https://svnweb.freebsd.org/changeset/ports/378099

Log:
  Add upstream commit to fix a crash in devel/qtcreator.

  PR:		197079
  Submitted by:	Alex Richardson <arichardson.kde@gmail.com>

Changes:
  head/lang/qt5-qml/Makefile
  head/lang/qt5-qml/files/patch-git_cf6e9711
Comment 7 vono 2015-02-08 13:20:11 UTC
Hi

I got the qt5-qml update, and now QtCreator don't crash anymore on start-up.
Should we mark this bug as closed ?
Sorry I'm not familiar with the bug management in FreeBSD.

Anyway, thank you for the fix.
Comment 8 commit-hook freebsd_committer freebsd_triage 2015-02-14 21:45:44 UTC
A commit references this bug:

Author: rakuco
Date: Sat Feb 14 21:44:43 UTC 2015
New revision: 379023
URL: https://svnweb.freebsd.org/changeset/ports/379023

Log:
  MFH: r378099

  Add upstream commit to fix a crash in devel/qtcreator.

  PR:		197079
  Submitted by:	Alex Richardson <arichardson.kde@gmail.com>

  Approved by:	portmgr (erwin)

Changes:
_U  branches/2015Q1/
  branches/2015Q1/lang/qt5-qml/Makefile
  branches/2015Q1/lang/qt5-qml/files/patch-git_cf6e9711
Comment 9 Raphael Kubo da Costa freebsd_committer freebsd_triage 2015-02-14 21:46:55 UTC
(In reply to vono from comment #7)
> I got the qt5-qml update, and now QtCreator don't crash anymore on start-up.
> Should we mark this bug as closed ?

Yes, we should. Sorry, I should have done that when the fix was committed. Thanks!