pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: qt5 questions



Hi,

I have set up modular-xorg and NetBSD/amd64 current environment.
And libxkbcommon is fixed with PR pkg/48511.

I can reproduce this problem.

With native Xorg, editors/Sigil has no segfault.

I will investigate deeper.


From: Thomas Klausner <wiz%NetBSD.org@localhost>, Date: Sat, 4 Jan 2014 
10:47:10 +0100

> On Sat, Jan 04, 2014 at 01:26:06AM +0100, Thomas Klausner wrote:
>> * When exiting sigil with the menu entry File/Quit (the one with
>> CTRL-Q), I get:
>> 
>> zsh: segmentation fault (core dumped) sigil
>> 
>> Symbol-less backtrace is
>> (gdb) bt
>> #0  0x00007f7f92fbb0d0 in ?? ()
>> #1  0x00007f7feed06197 in __cxa_finalize (dso=0x0) at 
>> /archive/foreign/src/lib/libc/stdlib/atexit.c:202
>> #2  0x00007f7feed05f2f in exit (status=0) at 
>> /archive/foreign/src/lib/libc/stdlib/exit.c:58
>> #3  0x000000000045babf in ___start (cleanup=<optimized out>, obj=<optimized 
>> out>, ps_strings=0x7f7fffffffe0) at 
>> /archive/foreign/src/lib/csu/common/crt0-common.c:183
>> #4  0x00007f7ff7c04330 in ?? ()
>> #5  0x00007f7ff7ffa000 in ?? ()
>> #6  0x0000000000000001 in ?? ()
>> #7  0x00007f7ffffff838 in ?? ()
>> 
>> Using CTRL-C in the terminal I started it, it doesn't do that :)
> 
> I tried the same in the debugger:
> 
> (gdb) r
> Starting program: 
> /archive/foreign/pkgsrc/editors/Sigil/./work.x86_64/bin/sigil 
> [New LWP 2]
> 
> Program received signal SIGTRAP, Trace/breakpoint trap.
> [Switching to LWP 2]
> 0x00007f7feecaaeca in syscall () from /usr/lib/libc.so.12
> (gdb) c
> Continuing.
> 
> Program received signal SIGTRAP, Trace/breakpoint trap.
> 0x00007f7feec3b76a in poll () from /usr/lib/libc.so.12
> (gdb) c
> Continuing.
> xkbcommon: ERROR: failed to add default include path /usr/pkg/lib/X11/xkb
> Qt: Failed to create XKB context
> Qt Warning: Could not find a location of the system's Compose files. Consider 
> setting the QTCOMPOSE environment variable.
> 
> Program received signal SIGTRAP, Trace/breakpoint trap.
> 0x00007f7feec3b76a in poll () from /usr/lib/libc.so.12
> (gdb) c
> Continuing.
> [New LWP 12]
> -------------------- CTRL-Q here ---------------------
> Program received signal SIGTRAP, Trace/breakpoint trap.
> [Switching to LWP 12]
> 0x00007f7feecaaeca in syscall () from /usr/lib/libc.so.12
> (gdb) c
> Continuing.
> Error in re-setting breakpoint -1: Couldn't get registers: No such process.
> Error in re-setting breakpoint -10: Couldn't get registers: No such process.
> Error in re-setting breakpoint -11: Couldn't get registers: No such process.
> [Switching to LWP 1]
> Couldn't get registers: No such process.
> (gdb)
> 
> Second try, instead of the last 'c':
> (gdb) thread apply all bt
> [New LWP 11]
> [New LWP 10]
> [New LWP 9]
> [New LWP 8]
> [New LWP 7]
> [New LWP 6]
> [New LWP 5]
> [New LWP 4]
> 
> Thread 11 (LWP 4):
> #0  0x00007f7feecaaeca in syscall () from /usr/lib/libc.so.12
> #1  0x00007f7fef0096ed in pthread_cond_timedwait (cond=0x7f7ff67e5238, 
> mutex=0x7f7ff67e5208, abstime=<optimized out>) at 
> /archive/foreign/src/lib/libpthread/pthread_cond.c:187
> #2  0x00007f7fe7724828 in JSC::BlockAllocator::blockFreeingThreadMain() () 
> from /usr/pkg/qt5/lib/libJavaScriptCore.so.1
> #3  0x00007f7fe7244a83 in WTF::wtfThreadEntryPoint(void*) () from 
> /usr/pkg/qt5/lib/libWTF.so.1
> #4  0x00007f7fef00b50d in pthread__create_tramp (cookie=0x7f7ff67c5000) at 
> /archive/foreign/src/lib/libpthread/pthread.c:572
> #5  0x00007f7feec8bdd0 in __mknod50 () from /usr/lib/libc.so.12
> #6  0x00010102464c457f in ?? ()
> #7  0x0000000000000000 in ?? ()
> 
> Thread 10 (LWP 5):
> #0  0x00007f7feecaaeca in syscall () from /usr/lib/libc.so.12
> #1  0x00007f7fef0096ed in pthread_cond_timedwait (cond=0x7f7ff67edd28, 
> mutex=0x7f7ff67edcf8, abstime=<optimized out>) at 
> /archive/foreign/src/lib/libpthread/pthread_cond.c:187
> #2  0x00007f7fe7725b70 in JSC::GCThread::waitForNextPhase() () from 
> /usr/pkg/qt5/lib/libJavaScriptCore.so.1
> #3  0x00007f7fe7725cf8 in JSC::GCThread::gcThreadStartFunc(void*) () from 
> /usr/pkg/qt5/lib/libJavaScriptCore.so.1
> #4  0x00007f7fe7244a83 in WTF::wtfThreadEntryPoint(void*) () from 
> /usr/pkg/qt5/lib/libWTF.so.1
> #5  0x00007f7fef00b50d in pthread__create_tramp (cookie=0x7f7ff67df000) at 
> /archive/foreign/src/lib/libpthread/pthread.c:572
> #6  0x00007f7feec8bdd0 in __mknod50 () from /usr/lib/libc.so.12
> #7  0x0000000000000000 in ?? ()
> 
> Thread 9 (LWP 6):
> #0  0x00007f7feecaaeca in syscall () from /usr/lib/libc.so.12
> #1  0x00007f7fef0096ed in pthread_cond_timedwait (cond=0x7f7ff67edd28, 
> mutex=0x7f7ff67edcf8, abstime=<optimized out>) at 
> /archive/foreign/src/lib/libpthread/pthread_cond.c:187
> #2  0x00007f7fe7725b70 in JSC::GCThread::waitForNextPhase() () from 
> /usr/pkg/qt5/lib/libJavaScriptCore.so.1
> #3  0x00007f7fe7725cf8 in JSC::GCThread::gcThreadStartFunc(void*) () from 
> /usr/pkg/qt5/lib/libJavaScriptCore.so.1
> #4  0x00007f7fe7244a83 in WTF::wtfThreadEntryPoint(void*) () from 
> /usr/pkg/qt5/lib/libWTF.so.1
> #5  0x00007f7fef00b50d in pthread__create_tramp (cookie=0x7f7ff67e1000) at 
> /archive/foreign/src/lib/libpthread/pthread.c:572
> #6  0x00007f7feec8bdd0 in __mknod50 () from /usr/lib/libc.so.12
> #7  0x0000000000000000 in ?? ()
> 
> Thread 8 (LWP 7):
> #0  0x00007f7feecaaeca in syscall () from /usr/lib/libc.so.12
> #1  0x00007f7fef0096ed in pthread_cond_timedwait (cond=0x7f7ff67edd28, 
> mutex=0x7f7ff67edcf8, abstime=<optimized out>) at 
> /archive/foreign/src/lib/libpthread/pthread_cond.c:187
> #2  0x00007f7fe7725b70 in JSC::GCThread::waitForNextPhase() () from 
> /usr/pkg/qt5/lib/libJavaScriptCore.so.1
> #3  0x00007f7fe7725cf8 in JSC::GCThread::gcThreadStartFunc(void*) () from 
> /usr/pkg/qt5/lib/libJavaScriptCore.so.1
> #4  0x00007f7fe7244a83 in WTF::wtfThreadEntryPoint(void*) () from 
> /usr/pkg/qt5/lib/libWTF.so.1
> #5  0x00007f7fef00b50d in pthread__create_tramp (cookie=0x7f7ff67f0000) at 
> /archive/foreign/src/lib/libpthread/pthread.c:572
> #6  0x00007f7feec8bdd0 in __mknod50 () from /usr/lib/libc.so.12
> #7  0x0000000000000000 in ?? ()
> 
> Thread 7 (LWP 8):
> #0  0x00007f7feecaaeca in syscall () from /usr/lib/libc.so.12
> #1  0x00007f7fef0096ed in pthread_cond_timedwait (cond=0x7f7ff67edd28, 
> mutex=0x7f7ff67edcf8, abstime=<optimized out>) at 
> /archive/foreign/src/lib/libpthread/pthread_cond.c:187
> #2  0x00007f7fe7725b70 in JSC::GCThread::waitForNextPhase() () from 
> /usr/pkg/qt5/lib/libJavaScriptCore.so.1
> #3  0x00007f7fe7725cf8 in JSC::GCThread::gcThreadStartFunc(void*) () from 
> /usr/pkg/qt5/lib/libJavaScriptCore.so.1
> #4  0x00007f7fe7244a83 in WTF::wtfThreadEntryPoint(void*) () from 
> /usr/pkg/qt5/lib/libWTF.so.1
> #5  0x00007f7fef00b50d in pthread__create_tramp (cookie=0x7f7ff67f4000) at 
> /archive/foreign/src/lib/libpthread/pthread.c:572
> #6  0x00007f7feec8bdd0 in __mknod50 () from /usr/lib/libc.so.12
> #7  0x0000000000000000 in ?? ()
> 
> Thread 6 (LWP 9):
> #0  0x00007f7feecaaeca in syscall () from /usr/lib/libc.so.12
> #1  0x00007f7fef0096ed in pthread_cond_timedwait (cond=0x7f7ff67edd28, 
> mutex=0x7f7ff67edcf8, abstime=<optimized out>) at 
> /archive/foreign/src/lib/libpthread/pthread_cond.c:187
> #2  0x00007f7fe7725b70 in JSC::GCThread::waitForNextPhase() () from 
> /usr/pkg/qt5/lib/libJavaScriptCore.so.1
> #3  0x00007f7fe7725cf8 in JSC::GCThread::gcThreadStartFunc(void*) () from 
> /usr/pkg/qt5/lib/libJavaScriptCore.so.1
> #4  0x00007f7fe7244a83 in WTF::wtfThreadEntryPoint(void*) () from 
> /usr/pkg/qt5/lib/libWTF.so.1
> #5  0x00007f7fef00b50d in pthread__create_tramp (cookie=0x7f7ff67f6000) at 
> /archive/foreign/src/lib/libpthread/pthread.c:572
> #6  0x00007f7feec8bdd0 in __mknod50 () from /usr/lib/libc.so.12
> #7  0x0000000000000000 in ?? ()
> 
> Thread 5 (LWP 10):
> #0  0x00007f7feecaaeca in syscall () from /usr/lib/libc.so.12
> #1  0x00007f7fef0096ed in pthread_cond_timedwait (cond=0x7f7ff67edd28, 
> mutex=0x7f7ff67edcf8, abstime=<optimized out>) at 
> /archive/foreign/src/lib/libpthread/pthread_cond.c:187
> #2  0x00007f7fe7725b70 in JSC::GCThread::waitForNextPhase() () from 
> /usr/pkg/qt5/lib/libJavaScriptCore.so.1
> #3  0x00007f7fe7725cf8 in JSC::GCThread::gcThreadStartFunc(void*) () from 
> /usr/pkg/qt5/lib/libJavaScriptCore.so.1
> #4  0x00007f7fe7244a83 in WTF::wtfThreadEntryPoint(void*) () from 
> /usr/pkg/qt5/lib/libWTF.so.1
> #5  0x00007f7fef00b50d in pthread__create_tramp (cookie=0x7f7ff67fc000) at 
> /archive/foreign/src/lib/libpthread/pthread.c:572
> #6  0x00007f7feec8bdd0 in __mknod50 () from /usr/lib/libc.so.12
> #7  0x0000000000000000 in ?? ()
> 
> Thread 4 (LWP 11):
> #0  0x00007f7fed2531b8 in source_remove_from_context () from 
> /usr/pkg/lib/libglib-2.0.so.0
> #1  0x00007f7fed24fd30 in g_source_unref_internal () from 
> /usr/pkg/lib/libglib-2.0.so.0
> #2  0x00007f7fefec53cf in QEventDispatcherGlib::~QEventDispatcherGlib() () 
> from /usr/pkg/qt5/lib/libQt5Core.so.5
> #3  0x00007f7fefec52ee in QEventDispatcherGlib::~QEventDispatcherGlib() () 
> from /usr/pkg/qt5/lib/libQt5Core.so.5
> #4  0x00007f7fefcd68a1 in QThreadPrivate::finish(void*) () from 
> /usr/pkg/qt5/lib/libQt5Core.so.5
> #5  0x00007f7fefcd67b5 in QThreadPrivate::start(void*) () from 
> /usr/pkg/qt5/lib/libQt5Core.so.5
> #6  0x00007f7fef00b50d in pthread__create_tramp (cookie=0x7f7ff1345000) at 
> /archive/foreign/src/lib/libpthread/pthread.c:572
> #7  0x00007f7feec8bdd0 in __mknod50 () from /usr/lib/libc.so.12
> #8  0x00007f7ff72bffd8 in ?? ()
> #9  0x0000006f00000001 in ?? ()
> #10 0x0000000000000001 in ?? ()
> #11 0x0000000000000000 in ?? ()
> 
> Thread 3 (LWP 12):
> #0  0x00007f7feecaaeca in syscall () from /usr/lib/libc.so.12
> #1  0x00007f7fef0096ed in pthread_cond_timedwait (cond=0x7f7ff6f06c50, 
> mutex=0x7f7ff6f06c20, abstime=<optimized out>) at 
> /archive/foreign/src/lib/libpthread/pthread_cond.c:187
> #2  0x00007f7fefcd78e1 in QWaitConditionPrivate::wait(unsigned long) () from 
> /usr/pkg/qt5/lib/libQt5Core.so.5
> #3  0x00007f7fefcd7798 in QWaitCondition::wait(QMutex*, unsigned long) () 
> from /usr/pkg/qt5/lib/libQt5Core.so.5
> #4  0x00007f7fefcd380e in QThreadPoolThread::run() () from 
> /usr/pkg/qt5/lib/libQt5Core.so.5
> #5  0x00007f7fefcd67a7 in QThreadPrivate::start(void*) () from 
> /usr/pkg/qt5/lib/libQt5Core.so.5
> #6  0x00007f7fef00b50d in pthread__create_tramp (cookie=0x7f7ff1347000) at 
> /archive/foreign/src/lib/libpthread/pthread.c:572
> #7  0x00007f7feec8bdd0 in __mknod50 () from /usr/lib/libc.so.12
> #8  0x0000000000000000 in ?? ()
> 
> Thread 2 (LWP 2):
> #0  0x00007f7feec3b76a in poll () from /usr/lib/libc.so.12
> #1  0x00007f7fef00712c in poll (fds=0x7f7fd8fffe50, nfds=1, timeout=-1) at 
> /archive/foreign/src/lib/libpthread/pthread_cancelstub.c:412
> #2  0x00007f7fe4c09752 in _xcb_conn_wait () from /usr/pkg/lib/libxcb.so.1
> #3  0x00007f7fe4c0ace9 in xcb_wait_for_event () from /usr/pkg/lib/libxcb.so.1
> #4  0x00007f7fde42c686 in QXcbEventReader::run() () from 
> /usr/pkg/qt5/plugins/platforms/libqxcb.so
> #5  0x00007f7fefcd67a7 in QThreadPrivate::start(void*) () from 
> /usr/pkg/qt5/lib/libQt5Core.so.5
> #6  0x00007f7fef00b50d in pthread__create_tramp (cookie=0x7f7ff7bbd000) at 
> /archive/foreign/src/lib/libpthread/pthread.c:572
> #7  0x00007f7feec8bdd0 in __mknod50 () from /usr/lib/libc.so.12
> #8  0x00010102464c457f in ?? ()
> #9  0x0000000000000000 in ?? ()
>
> Thread 1 (LWP 1):
> #0  0x00007f7feecaaeca in syscall () from /usr/lib/libc.so.12
> #1  0x00007f7fef0096ed in pthread_cond_timedwait (cond=0x7f7ff1f7af10, 
> mutex=0x7f7ff1f7aee0, abstime=<optimized out>) at 
> /archive/foreign/src/lib/libpthread/pthread_cond.c:187
> #2  0x00007f7fefcd78e1 in QWaitConditionPrivate::wait(unsigned long) () from 
> /usr/pkg/qt5/lib/libQt5Core.so.5
> #3  0x00007f7fefcd7798 in QWaitCondition::wait(QMutex*, unsigned long) () 
> from /usr/pkg/qt5/lib/libQt5Core.so.5
> #4  0x00007f7fefcd70de in QThread::wait(unsigned long) () from 
> /usr/pkg/qt5/lib/libQt5Core.so.5
> #5  0x00007f7fefcd40e8 in QThreadPoolPrivate::reset() () from 
> /usr/pkg/qt5/lib/libQt5Core.so.5
> #6  0x00007f7fefcd4811 in QThreadPool::waitForDone(int) () from 
> /usr/pkg/qt5/lib/libQt5Core.so.5
> #7  0x00007f7fefe77266 in QCoreApplication::~QCoreApplication() () from 
> /usr/pkg/qt5/lib/libQt5Core.so.5
> #8  0x00007f7ff0915524 in QGuiApplication::~QGuiApplication() () from 
> /usr/pkg/qt5/lib/libQt5Gui.so.5
> #9  0x00007f7ff51bc75e in QApplication::~QApplication() () from 
> /usr/pkg/qt5/lib/libQt5Widgets.so.5
> #10 0x000000000045f2f5 in MainApplication::~MainApplication 
> (this=0x7f7fffffd398) at 
> /usr/obj/editors/Sigil/work.x86_64/src/Sigil/MainUI/MainApplication.h:31
> #11 0x000000000045d78a in main (argc=1, argv=0x7f7fffffd548) at 
> /disk/3/archive/obj/editors/Sigil/work.x86_64/src/Sigil/main.cpp:302
> (gdb)

--
Ryo ONODERA // ryo_on%yk.rim.or.jp@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


Home | Main Index | Thread Index | Old Index