You are not logged in.

#1 2017-10-24 18:41:55

nickmcummins
Member
Registered: 2016-06-27
Posts: 11
Website

[SOLVED] Error in/invalid pointer with numerous Qt applications

I re-installed the qt5 group from the official repositories prior to re-producing this issue.

Recently, I've noticed several Qt applications crashing, some when starting up, whereas others only after clicking on certain elements within their UI. The error will look something like the following

*** Error in `/usr/lib/sigil/sigil': free(): invalid pointer: 0x00007f8d403323c0 ***.
*** Error in `/opt/mendeleydesktop/bin/..//lib/mendeleydesktop/libexec/mendeleydesktop.x86_64': free(): invalid pointer: 0x00007f2be6aad3c0 ***
*** Error in `qgis': free(): invalid pointer: 0x00007f24484493c0 ***

I'm stuck as to how to better pinpoint the source of the issue here. I've tried running with strace but didn't get much more information from that. Any suggestions? Thanks.

Last edited by nickmcummins (2017-10-24 22:03:41)

Offline

#2 2017-10-24 18:59:07

seth
Member
Registered: 2012-09-03
Posts: 58,673

Re: [SOLVED] Error in/invalid pointer with numerous Qt applications

gdb will get you more information - (at least which library is responsible)

Offline

#3 2017-10-24 20:19:03

nickmcummins
Member
Registered: 2016-06-27
Posts: 11
Website

Re: [SOLVED] Error in/invalid pointer with numerous Qt applications

As I had suspected, it looks like it's from libQt5WebKit.so.5, though I'm not sure what to make of it.

gdb /usr/local/bin/qgis 
GNU gdb (GDB) 8.0.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/bin/qgis...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/local/bin/qgis 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffd6a15700 (LWP 8248)]
[New Thread 0x7fffd306f700 (LWP 8249)]
using qt5ct plugin
/usr/share/themes/macOS-Sierra/gtk-2.0/gtkrc:877: error: invalid string constant "panel", expected valid string constant
[New Thread 0x7fffc8a3c700 (LWP 8250)]
[New Thread 0x7fffc3fff700 (LWP 8251)]
[New Thread 0x7fffc37fe700 (LWP 8252)]
[New Thread 0x7fffc0d81700 (LWP 8253)]
D-Bus global menu: no
D-Bus system tray: no
[New Thread 0x7fffaf15c700 (LWP 8254)]
[New Thread 0x7fffadee6700 (LWP 8255)]
Warning: libpng warning: iCCP: known incorrect sRGB profile
Warning: libpng warning: iCCP: known incorrect sRGB profile
[New Thread 0x7fffa6fff700 (LWP 8257)]
Warning: libpng warning: iCCP: known incorrect sRGB profile
Warning: libpng warning: iCCP: known incorrect sRGB profile
Warning: libpng warning: iCCP: known incorrect sRGB profile
Warning: libpng warning: iCCP: known incorrect sRGB profile
Warning: libpng warning: iCCP: known incorrect sRGB profile
[New Thread 0x7fff4cdaa700 (LWP 8268)]
[New Thread 0x7fff47686700 (LWP 8269)]
Warning: libpng warning: iCCP: known incorrect sRGB profile
[Thread 0x7fffc37fe700 (LWP 8252) exited]
[New Thread 0x7fffc37fe700 (LWP 8271)]
[New Thread 0x7fff46e85700 (LWP 8272)]
[New Thread 0x7fff46684700 (LWP 8273)]
[New Thread 0x7fff45e83700 (LWP 8274)]
[New Thread 0x7fff45682700 (LWP 8275)]
[New Thread 0x7fff44e81700 (LWP 8276)]
*** Error in `/usr/local/bin/qgis': free(): invalid pointer: 0x00007fff444543c0 ***

Thread 1 "qgis" received signal SIGABRT, Aborted.
0x00007fffea5c08a0 in raise () from /usr/lib/libc.so.6
(gdb) thread apply all bt 

Thread 18 (Thread 0x7fff44e81700 (LWP 8276)):
#0  0x00007fffe8b5238d in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007fffeaf5948d in __gthread_cond_wait (__mutex=<optimized out>, __cond=<optimized out>) at /build/gcc-multilib/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu/bits/gthr-default.h:864
#2  0x00007fffeaf5948d in std::condition_variable::wait(std::unique_lock<std::mutex>&) (this=<optimized out>, __lock=...) at /build/gcc-multilib/src/gcc/libstdc++-v3/src/c++11/condition_variable.cc:53
#3  0x00007ffff245ca11 in WTF::ParkingLot::parkConditionally(void const*, std::function<bool ()>, std::function<void ()>, std::chrono::time_point<std::chrono::_V2::steady_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l> > >) ()
    at /usr/lib/libQt5WebKit.so.5
#4  0x00007ffff245b6b2 in  () at /usr/lib/libQt5WebKit.so.5
#5  0x00007ffff245fa9d in  () at /usr/lib/libQt5WebKit.so.5
#6  0x00007ffff24925ca in  () at /usr/lib/libQt5WebKit.so.5
#7  0x00007fffe8b4c08a in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007fffea68224f in clone () at /usr/lib/libc.so.6

Thread 17 (Thread 0x7fff45682700 (LWP 8275)):
#0  0x00007fffe8b5238d in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0

pacman -Qo /usr/lib/libQt5WebKit.so

/usr/lib/libQt5WebKit.so is owned by qt5-webkit 5.212.0alpha2-5

Offline

#4 2017-10-24 20:35:42

seth
Member
Registered: 2012-09-03
Posts: 58,673

Re: [SOLVED] Error in/invalid pointer with numerous Qt applications

Hard to say - there's an abort from thread 1, but you only posted (waiting) #18 and top of #17 tongue

Offline

#5 2017-10-24 20:52:53

nickmcummins
Member
Registered: 2016-06-27
Posts: 11
Website

Re: [SOLVED] Error in/invalid pointer with numerous Qt applications

Oops, I see what you're saying. tongue  Is this better?

gdb /usr/local/bin/qgis 
GNU gdb (GDB) 8.0.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
---Type <return> to continue, or q <return> to quit---run
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/bin/qgis...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/local/bin/qgis 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffd6a15700 (LWP 16548)]
[New Thread 0x7fffd306f700 (LWP 16549)]
using qt5ct plugin
/usr/share/themes/macOS-Sierra/gtk-2.0/gtkrc:877: error: invalid string constant "panel", expected valid string constant
[New Thread 0x7fffc8a3c700 (LWP 16550)]
[New Thread 0x7fffc3fff700 (LWP 16551)]
[New Thread 0x7fffc37fe700 (LWP 16552)]
[New Thread 0x7fffc0d81700 (LWP 16553)]
D-Bus global menu: no
D-Bus system tray: no
[New Thread 0x7fffaf15c700 (LWP 16554)]
[New Thread 0x7fffadee6700 (LWP 16555)]
Warning: libpng warning: iCCP: known incorrect sRGB profile
Warning: libpng warning: iCCP: known incorrect sRGB profile
[New Thread 0x7fffa6fff700 (LWP 16557)]
Warning: libpng warning: iCCP: known incorrect sRGB profile
Warning: libpng warning: iCCP: known incorrect sRGB profile
Warning: libpng warning: iCCP: known incorrect sRGB profile
Warning: libpng warning: iCCP: known incorrect sRGB profile
Warning: libpng warning: iCCP: known incorrect sRGB profile
[New Thread 0x7fff4cdaa700 (LWP 16563)]
[New Thread 0x7fff47686700 (LWP 16564)]
Warning: libpng warning: iCCP: known incorrect sRGB profile
*** Error in `/usr/local/bin/qgis': free(): invalid pointer: 0x00007fff46a8b3c0 ***

Thread 1 "qgis" received signal SIGABRT, Aborted.
0x00007fffea5c08a0 in raise () from /usr/lib/libc.so.6
(gdb) quit
A debugging session is active.

	Inferior 1 [process 16544] will be killed.

Quit anyway? (y or n) y
➜  ~ gdb /usr/local/bin/qgis 
GNU gdb (GDB) 8.0.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
---Type <return> to continue, or q <return> to quit---
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/bin/qgis...(no debugging symbols found)...done.
(gdb) set logging file gdb-qgis.log 
(gdb) set logging on
Copying output to gdb-qgis.log.
(gdb) thread apply all bt full
(gdb) run --no-daemon --verbose
Starting program: /usr/local/bin/qgis --no-daemon --verbose
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffd6a15700 (LWP 16598)]
[New Thread 0x7fffd306f700 (LWP 16599)]
using qt5ct plugin
/usr/share/themes/macOS-Sierra/gtk-2.0/gtkrc:877: error: invalid string constant "panel", expected valid string constant
[New Thread 0x7fffc8a3c700 (LWP 16600)]
[New Thread 0x7fffc3fff700 (LWP 16601)]
[New Thread 0x7fffc37fe700 (LWP 16602)]
[New Thread 0x7fffc0d81700 (LWP 16603)]
D-Bus global menu: no
D-Bus system tray: no
[New Thread 0x7fffaf15c700 (LWP 16604)]
[New Thread 0x7fffadee6700 (LWP 16605)]
Warning: libpng warning: iCCP: known incorrect sRGB profile
Warning: libpng warning: iCCP: known incorrect sRGB profile
[New Thread 0x7fffa6fff700 (LWP 16607)]
Warning: libpng warning: iCCP: known incorrect sRGB profile
Warning: libpng warning: iCCP: known incorrect sRGB profile
Warning: libpng warning: iCCP: known incorrect sRGB profile
Warning: libpng warning: iCCP: known incorrect sRGB profile
Warning: libpng warning: iCCP: known incorrect sRGB profile
[New Thread 0x7fff4cdaa700 (LWP 16613)]
Warning: libpng warning: iCCP: known incorrect sRGB profile
*** Error in `/usr/local/bin/qgis': free(): invalid pointer: 0x00007fff4728c3c0 ***

Thread 1 "qgis" received signal SIGABRT, Aborted.
0x00007fffea5c08a0 in raise () from /usr/lib/libc.so.6
(gdb) thread apply all bt

Thread 11 (Thread 0x7fff4cdaa700 (LWP 16613)):
#0  0x00007fffe8b526cd in pthread_cond_timedwait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007fffeb50a311 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/libQt5Core.so.5
#2  0x00007fffeb5053f6 in  () at /usr/lib/libQt5Core.so.5
---Type <return> to continue, or q <return> to quit---
#3  0x00007fffeb508fcb in  () at /usr/lib/libQt5Core.so.5
#4  0x00007fffe8b4c08a in start_thread () at /usr/lib/libpthread.so.0
#5  0x00007fffea68224f in clone () at /usr/lib/libc.so.6

Thread 10 (Thread 0x7fffa6fff700 (LWP 16607)):
#0  0x00007fffea677d4b in poll () at /usr/lib/libc.so.6
#1  0x00007fffe5c5eed3 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007fffe5c5efae in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007fffeb747cd1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007fffeb6eb48b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007fffeb50427e in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x00007fffeb508fcb in  () at /usr/lib/libQt5Core.so.5
#7  0x00007fffe8b4c08a in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007fffea68224f in clone () at /usr/lib/libc.so.6

Thread 9 (Thread 0x7fffadee6700 (LWP 16605)):
---Type <return> to continue, or q <return> to quit---
#0  0x00007fffea677d4b in poll () at /usr/lib/libc.so.6
#1  0x00007fffe5c5eed3 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007fffe5c5efae in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007fffeb747cd1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007fffeb6eb48b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007fffeb50427e in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x00007fffeb508fcb in  () at /usr/lib/libQt5Core.so.5
#7  0x00007fffe8b4c08a in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007fffea68224f in clone () at /usr/lib/libc.so.6

Thread 8 (Thread 0x7fffaf15c700 (LWP 16604)):
#0  0x00007fffea677d4b in poll () at /usr/lib/libc.so.6
#1  0x00007fffe5c5eed3 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007fffe5c5efae in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007fffeb747cd1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007fffeb6eb48b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
---Type <return> to continue, or q <return> to quit---
#5  0x00007ffff01bdf35 in QCA::SyncThread::run() () at /usr/lib/libqca-qt5.so.2
#6  0x00007fffeb508fcb in  () at /usr/lib/libQt5Core.so.5
#7  0x00007fffe8b4c08a in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007fffea68224f in clone () at /usr/lib/libc.so.6

Thread 7 (Thread 0x7fffc0d81700 (LWP 16603)):
#0  0x00007fffea677d4b in poll () at /usr/lib/libc.so.6
#1  0x00007fffe5c5eed3 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007fffe5c5efae in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007fffeb747cd1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007fffeb6eb48b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007fffeb50427e in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x00007fffe5179376 in  () at /usr/lib/libQt5DBus.so.5
#7  0x00007fffeb508fcb in  () at /usr/lib/libQt5Core.so.5
#8  0x00007fffe8b4c08a in start_thread () at /usr/lib/libpthread.so.0
#9  0x00007fffea68224f in clone () at /usr/lib/libc.so.6

Thread 6 (Thread 0x7fffc37fe700 (LWP 16602)):
#0  0x00007fffea67cc49 in syscall () at /usr/lib/libc.so.6
#1  0x00007fffe5c86f2f in g_cond_wait_until () at /usr/lib/libglib-2.0.so.0
#2  0x00007fffe5c79393 in  () at /usr/lib/libglib-2.0.so.0
#3  0x00007fffe5c7955e in g_async_queue_timeout_pop () at /usr/lib/libglib-2.0.so.0
#4  0x00007fffe5c4e041 in  () at /usr/lib/libglib-2.0.so.0
#5  0x00007fffe5c531eb in  () at /usr/lib/libglib-2.0.so.0
#6  0x00007fffe8b4c08a in start_thread () at /usr/lib/libpthread.so.0
#7  0x00007fffea68224f in clone () at /usr/lib/libc.so.6

Thread 5 (Thread 0x7fffc3fff700 (LWP 16601)):
#0  0x00007fffea677d4b in poll () at /usr/lib/libc.so.6
#1  0x00007fffe5c5eed3 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007fffe5c5ff42 in g_main_loop_run () at /usr/lib/libglib-2.0.so.0
#3  0x00007fffe74f2e28 in  () at /usr/lib/libgio-2.0.so.0
#4  0x00007fffe5c531eb in  () at /usr/lib/libglib-2.0.so.0
#5  0x00007fffe8b4c08a in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007fffea68224f in clone () at /usr/lib/libc.so.6

Thread 4 (Thread 0x7fffc8a3c700 (LWP 16600)):
#0  0x00007fffea677d4b in poll () at /usr/lib/libc.so.6
#1  0x00007fffe5c5eed3 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007fffe5c5efae in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007fffe5c5f002 in  () at /usr/lib/libglib-2.0.so.0
#4  0x00007fffe5c531eb in  () at /usr/lib/libglib-2.0.so.0
#5  0x00007fffe8b4c08a in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007fffea68224f in clone () at /usr/lib/libc.so.6

Thread 3 (Thread 0x7fffd306f700 (LWP 16599)):
#0  0x00007fffea677d4b in poll () at /usr/lib/libc.so.6
#1  0x00007fffdbd4c8e0 in  () at /usr/lib/libxcb.so.1
#2  0x00007fffdbd4e679 in xcb_wait_for_event () at /usr/lib/libxcb.so.1
#3  0x00007fffd599685a in  () at /usr/lib/libQt5XcbQpa.so.5
#4  0x00007fffeb508fcb in  () at /usr/lib/libQt5Core.so.5
#5  0x00007fffe8b4c08a in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007fffea68224f in clone () at /usr/lib/libc.so.6

Thread 2 (Thread 0x7fffd6a15700 (LWP 16598)):
#0  0x00007fffea6501e0 in nanosleep () at /usr/lib/libc.so.6
#1  0x00007ffff3a9c97f in  () at /usr/lib/libQt5WebKit.so.5
---Type <return> to continue, or q <return> to quit---
#2  0x00007ffff3a9ca24 in  () at /usr/lib/libQt5WebKit.so.5
#3  0x00007ffff3a9b7ab in  () at /usr/lib/libQt5WebKit.so.5
#4  0x00007ffff3a9b989 in  () at /usr/lib/libQt5WebKit.so.5
#5  0x00007fffeaf5fa6f in std::execute_native_thread_routine(void*) (__p=0x555555ac4790) at /build/gcc-multilib/src/gcc/libstdc++-v3/src/c++11/thread.cc:83
#6  0x00007fffe8b4c08a in start_thread () at /usr/lib/libpthread.so.0
#7  0x00007fffea68224f in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7ffff7f68840 (LWP 16594)):
#0  0x00007fffea5c08a0 in raise () at /usr/lib/libc.so.6
#1  0x00007fffea5c1f09 in abort () at /usr/lib/libc.so.6
#2  0x00007fffea603517 in __libc_message () at /usr/lib/libc.so.6
#3  0x00007fffea609c84 in malloc_printerr () at /usr/lib/libc.so.6
#4  0x00007fffea60b599 in _int_free () at /usr/lib/libc.so.6
#5  0x00007fff47012282 in std::locale::_Impl::_M_install_facet(std::locale::id const*, std::locale::facet const*) () at /usr/lib/jvm/java-9-jdk/lib/libdeploy.so
#6  0x00007fff4701ede3 in std::locale::_Impl::_Impl(unsigned long) () at /usr/lib/jvm/java-9-jdk/lib/libdeploy.so
#7  0x00007fff4701fd55 in std::locale::_S_initialize_once() () at /usr/lib/jvm/java-9-jdk/lib/libdeploy.so
#8  0x00007fffe8b53dbf in __pthread_once_slow () at /usr/lib/libpthread.so.0
#9  0x00007fff4701fda1 in std::locale::_S_initialize() () at /usr/lib/jvm/java-9-jdk/lib/libdeploy.so
#10 0x00007fff4701fde3 in std::locale::locale() () at /usr/lib/jvm/java-9-jdk/lib/libdeploy.so
#11 0x00007fff46ff16a4 in std::ios_base::Init::Init() () at /usr/lib/jvm/java-9-jdk/lib/libdeploy.so
#12 0x00007fff46fe97b8 in __static_initialization_and_destruction_0(int, int) () at /usr/lib/jvm/java-9-jdk/lib/libdeploy.so
#13 0x00007fff46fe97ea in _GLOBAL__sub_I_JLIWrapper_md.cpp () at /usr/lib/jvm/java-9-jdk/lib/libdeploy.so
#14 0x00007ffff7de757a in call_init.part () at /lib64/ld-linux-x86-64.so.2
#15 0x00007ffff7de7686 in _dl_init () at /lib64/ld-linux-x86-64.so.2
#16 0x00007ffff7debb5e in dl_open_worker () at /lib64/ld-linux-x86-64.so.2
#17 0x00007fffea6bdf14 in _dl_catch_error () at /usr/lib/libc.so.6
#18 0x00007ffff7deb37a in _dl_open () at /lib64/ld-linux-x86-64.so.2
#19 0x00007fffe8d63e86 in  () at /usr/lib/libdl.so.2
#20 0x00007fffea6bdf14 in _dl_catch_error () at /usr/lib/libc.so.6
#21 0x00007fffe8d64587 in  () at /usr/lib/libdl.so.2
#22 0x00007fffe8d63f22 in dlopen () at /usr/lib/libdl.so.2
#23 0x00007fffeb6e8bce in  () at /usr/lib/libQt5Core.so.5
#24 0x00007fffeb6e2429 in QLibrary::load() () at /usr/lib/libQt5Core.so.5
#25 0x00007ffff1b3d791 in  () at /usr/lib/libQt5WebKit.so.5
#26 0x00007ffff1b20d38 in  () at /usr/lib/libQt5WebKit.so.5
#27 0x00007ffff1b1de41 in  () at /usr/lib/libQt5WebKit.so.5
#28 0x00007ffff1b1e812 in  () at /usr/lib/libQt5WebKit.so.5
#29 0x00007ffff1afcb3b in  () at /usr/lib/libQt5WebKit.so.5
#30 0x00007ffff2c9718c in WebCore::Page::pluginData() const () at /usr/lib/libQt5WebKit.so.5
#31 0x00007ffff285b4eb in  () at /usr/lib/libQt5WebKit.so.5
#32 0x00007ffff2ba2340 in  () at /usr/lib/libQt5WebKit.so.5
#33 0x00007ffff2ba290b in  () at /usr/lib/libQt5WebKit.so.5
#34 0x00007ffff2e7e54b in  () at /usr/lib/libQt5WebKit.so.5
#35 0x00007ffff2c0dfee in  () at /usr/lib/libQt5WebKit.so.5
#36 0x00007ffff2bf7744 in  () at /usr/lib/libQt5WebKit.so.5
#37 0x00007ffff2f2f017 in  () at /usr/lib/libQt5WebKit.so.5
#38 0x00007ffff2f2a83a in  () at /usr/lib/libQt5WebKit.so.5
#39 0x00007ffff2f2f82d in  () at /usr/lib/libQt5WebKit.so.5
#40 0x00007fffeb71cc16 in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/libQt5Core.so.5
#41 0x00007fffebc7f356 in  () at /usr/lib/libQt5Network.so.5
#42 0x00007fffeb71d662 in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#43 0x00007ffff056bf2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#44 0x00007ffff0573a06 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#45 0x00007ffff4c462eb in QgsApplication::notify(QObject*, QEvent*) () at /usr/local/lib/libqgis_core.so.2.99.0
#46 0x00007fffeb6ed060 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#47 0x00007fffeb6ef8b6 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/libQt5Core.so.5
#48 0x00007fffeb7486e4 in  () at /usr/lib/libQt5Core.so.5


#49 0x00007fffe5c5d270 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#50 0x00007fffe5c5ef69 in  () at /usr/lib/libglib-2.0.so.0
#51 0x00007fffe5c5efae in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#52 0x00007fffeb747cd1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#53 0x00007fffeb6eb48b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#54 0x00007ffff075fe8b in QDialog::exec() () at /usr/lib/libQt5Widgets.so.5
#55 0x00007fff55868a48 in meth_QgsPluginManagerInterface_showPluginManager () at /usr/local/share/qgis/python/qgis/_gui.so
#56 0x00007fff5df87a23 in _PyCFunction_FastCallDict () at /usr/lib/libpython3.6m.so.1.0
#57 0x00007fff5df8582a in  () at /usr/lib/libpython3.6m.so.1.0
#58 0x00007fff5df232ea in _PyEval_EvalFrameDefault () at /usr/lib/libpython3.6m.so.1.0
#59 0x00007fff5df84173 in  () at /usr/lib/libpython3.6m.so.1.0
#60 0x00007fff5df85571 in  () at /usr/lib/libpython3.6m.so.1.0
#61 0x00007fff5df858ee in  () at /usr/lib/libpython3.6m.so.1.0
#62 0x00007fff5df232ea in _PyEval_EvalFrameDefault () at /usr/lib/libpython3.6m.so.1.0
#63 0x00007fff5df85da7 in PyEval_EvalCodeEx () at /usr/lib/libpython3.6m.so.1.0
#64 0x00007fff5df22feb in PyEval_EvalCode () at /usr/lib/libpython3.6m.so.1.0
#65 0x00007fff5dff4682 in  () at /usr/lib/libpython3.6m.so.1.0
#66 0x00007fff5dff70ba in PyRun_StringFlags () at /usr/lib/libpython3.6m.so.1.0
#67 0x00007fff5e36ca2b in QgsPythonUtilsImpl::runStringUnsafe(QString const&, bool) () at /usr/local/lib/libqgispython.so.2.99.0
#68 0x00007fff5e36ea26 in QgsPythonUtilsImpl::runString(QString const&, QString, bool) () at /usr/local/lib/libqgispython.so.2.99.0
#69 0x00007ffff74b530d in QgsPythonRunnerImpl::runCommand(QString, QString) () at /usr/local/lib/libqgis_app.so.2.99.0
#70 0x00007ffff4e6b724 in QgsPythonRunner::run(QString const&, QString const&) () at /usr/local/lib/libqgis_core.so.2.99.0
#71 0x00007ffff746193d in QgisApp::showPluginManager() () at /usr/local/lib/libqgis_app.so.2.99.0
#72 0x00007fffeb71cd3f in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/libQt5Core.so.5
#73 0x00007ffff0565623 in QAction::triggered(bool) () at /usr/lib/libQt5Widgets.so.5
#74 0x00007ffff0567e46 in QAction::activate(QAction::ActionEvent) () at /usr/lib/libQt5Widgets.so.5
#75 0x00007ffff06eb1e5 in  () at /usr/lib/libQt5Widgets.so.5
#76 0x00007ffff06f288c in  () at /usr/lib/libQt5Widgets.so.5
#77 0x00007ffff06f3794 in QMenu::mouseReleaseEvent(QMouseEvent*) () at /usr/lib/libQt5Widgets.so.5
#78 0x00007ffff05aba08 in QWidget::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5
#79 0x00007ffff06f5a9c in QMenu::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5
#80 0x00007ffff056bf2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#81 0x00007ffff0573f81 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#82 0x00007ffff4c462eb in QgsApplication::notify(QObject*, QEvent*) () at /usr/local/lib/libqgis_core.so.2.99.0
#83 0x00007fffeb6ed060 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#84 0x00007ffff0572f0a in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () at /usr/lib/libQt5Widgets.so.5
#85 0x00007ffff05c6ab2 in  () at /usr/lib/libQt5Widgets.so.5
#86 0x00007ffff05c94c1 in  () at /usr/lib/libQt5Widgets.so.5
#87 0x00007ffff056bf2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#88 0x00007ffff0573a06 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#89 0x00007ffff4c462eb in QgsApplication::notify(QObject*, QEvent*) () at /usr/local/lib/libqgis_core.so.2.99.0
#90 0x00007fffeb6ed060 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#91 0x00007fffebfd43d4 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /usr/lib/libQt5Gui.so.5
#92 0x00007fffebfd5f36 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /usr/lib/libQt5Gui.so.5
#93 0x00007fffebfad48c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Gui.so.5
#94 0x00007fffd59fb4b1 in  () at /usr/lib/libQt5XcbQpa.so.5
#95 0x00007fffe5c5d270 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#96 0x00007fffe5c5ef69 in  () at /usr/lib/libglib-2.0.so.0
#97 0x00007fffe5c5efae in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#98 0x00007fffeb747cd1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#99 0x00007fffeb6eb48b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#100 0x00007fffeb6f44d8 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#101 0x000055555555c4d9 in main ()

Last edited by nickmcummins (2017-10-24 20:54:02)

Offline

#6 2017-10-24 21:03:52

seth
Member
Registered: 2012-09-03
Posts: 58,673

Re: [SOLVED] Error in/invalid pointer with numerous Qt applications

Java plugin.

pacman -Qo /usr/lib/jvm/java-9-jdk/lib/libdeploy.so

Tried jdk8?

Offline

#7 2017-10-24 21:26:11

nickmcummins
Member
Registered: 2016-06-27
Posts: 11
Website

Re: [SOLVED] Error in/invalid pointer with numerous Qt applications

pacman -Qo /usr/lib/jvm/java-9-jdk/lib/libdeploy.so

/usr/lib/jvm/java-9-jdk/lib/libdeploy.so is owned by jdk-devel 9.0.1-1

Ok, I see that in the trace, but why is Java 9 being used? My default Java points to java-8-openjdk

archlinux-java status

Available Java environments:
  java-6-jdk
  java-7-openjdk
  java-8-jdk
  java-8-openjdk (default)
  java-9-jdk
  jdk1.8.0_131
  jre-7u71-x64

print $JAVA_HOME

/usr/lib/jvm/java-8-openjdk

Offline

#8 2017-10-24 21:50:16

seth
Member
Registered: 2012-09-03
Posts: 58,673

Re: [SOLVED] Error in/invalid pointer with numerous Qt applications

It's probably trying to load all installed verisions.
You could try to set QTWEBKIT_PLUGIN_PATH, but those path patterns might even be hardcoded ...

Offline

#9 2017-10-24 22:09:38

nickmcummins
Member
Registered: 2016-06-27
Posts: 11
Website

Re: [SOLVED] Error in/invalid pointer with numerous Qt applications

So this is just some configured directory that isn't derived from some environment variable like JAVA_HOME or LD_LIBRARY_PATH? Seems counter-intuitive, and it since it seems like many users might have multiple versions of Java installed. I guess the highest numerically would take precedence.

Thanks for the help, that solved my issue.

Offline

#10 2017-10-24 22:25:29

Nipsky
Member
From: Germany
Registered: 2011-10-03
Posts: 26

Re: [SOLVED] Error in/invalid pointer with numerous Qt applications

Hi, I hope it’s ok to reply while the thread is already markes as solves.

I’m having the exact same problem with Zeal and GoldenDict on my two machines. Both qt5 applications crash for me with a similar invalid pointer error, either when I start them or shortly after, and the gdb logs look pretty much the same to me at first glance. Well, to be honest, I found it hard to follow this thread, since I have no experience in reading debug logs…

How exactly did you solve the problem, did you just install Java JDK 9 and set it as active via archlinux-java? At least that’s what I tried, but it didn’t do anything for me.

And does anyone know what even caused that problem? What does java even has to with this, at least Zeal and GoldenDict have nothing to do with java whatsoever.

Offline

#11 2017-10-26 09:37:07

alkaid
Member
Registered: 2017-10-26
Posts: 5

Re: [SOLVED] Error in/invalid pointer with numerous Qt applications

I encountered with the same problem(java-9 activated, mendeleydesktop invalid pointer), but I can't find the solution from above replies. Can anyone clarify the solution again?
change active java environment to java-8 via archlinux-java? or set env QTWEBKIT_PLUGIN_PATH?

Offline

#12 2017-11-05 10:04:57

dr34mz0rh31p
Member
Registered: 2014-06-15
Posts: 3

Re: [SOLVED] Error in/invalid pointer with numerous Qt applications

Hello, same problem, can't also understand how to fix it. I've created another thread in hope for more clear explanation: https://bbs.archlinux.org/viewtopic.php?id=231552

Edit: you have to forcefully delete jdk9 and leave only jdk8-openjdk.

Last edited by dr34mz0rh31p (2017-11-05 10:12:03)

Offline

#13 2017-11-05 10:07:11

seth
Member
Registered: 2012-09-03
Posts: 58,673

Offline

#14 2017-11-05 17:29:45

Narga
Member
From: Hải Phòng, Việt Nam
Registered: 2011-10-06
Posts: 60
Website

Re: [SOLVED] Error in/invalid pointer with numerous Qt applications

to fix your problem, just downgrading package qt5-webkit (5.212.0alpha2-5 => 5.8.0-3)

Offline

#15 2017-11-06 20:38:16

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] Error in/invalid pointer with numerous Qt applications

FS#54540 (fixed by qt5-webkit 5.212.0alpha2-7)

Last edited by eschwartz (2017-11-06 20:39:26)


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#16 2017-11-06 22:13:53

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,150

Re: [SOLVED] Error in/invalid pointer with numerous Qt applications

Eschwartz wrote:

FS#54540 (fixed by qt5-webkit 5.212.0alpha2-7)

Different issue

Offline

#17 2017-11-07 08:56:17

Det87
Member
From: nowhere and everywhere
Registered: 2017-11-07
Posts: 1
Website

Re: [SOLVED] Error in/invalid pointer with numerous Qt applications

I'm the maintainer of jdk/jre/etc. Tried exporting/prefixing QTWEBKIT_PLUGIN_PATH for the reader app Zeal, but didn't make a difference.

Solutions seem to be 1)

Narga wrote:

[downgrade] qt5-webkit (5.212.0alpha2-5 => 5.8.0-3)

2) OR remove the symlink: /usr/lib/mozilla/plugins/libnpjp2-jdk9.so → /usr/lib/jvm/java-9-jdk/lib/libnpjp2.so, if you're not gonna use the browser plugin anyway. Changing the default Java with archlinux-java isn't gonna make a difference.

Last edited by Det87 (2017-11-07 08:57:30)

Offline

#18 2017-11-07 09:00:00

Narga
Member
From: Hải Phòng, Việt Nam
Registered: 2011-10-06
Posts: 60
Website

Re: [SOLVED] Error in/invalid pointer with numerous Qt applications

Narga wrote:

to fix your problem, just downgrading package qt5-webkit (5.212.0alpha2-5 => 5.8.0-3)

GoldenDict was fixed but calibre wasn't work

FS#54540 (fixed by qt5-webkit 5.212.0alpha2-7)

Calibre is working well but GoldenDict is not.

Offline

#19 2017-11-07 09:28:41

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,150

Re: [SOLVED] Error in/invalid pointer with numerous Qt applications

Narga wrote:

to fix your problem, just downgrading package qt5-webkit (5.212.0alpha2-5 => 5.8.0-3)

This is not a fix and *will* break your system sooner or later

Narga wrote:

GoldenDict was fixed but calibre wasn't work

...as you already found out

Last edited by arojas (2017-11-07 09:29:35)

Offline

#20 2017-11-16 22:32:34

Nipsky
Member
From: Germany
Registered: 2011-10-03
Posts: 26

Re: [SOLVED] Error in/invalid pointer with numerous Qt applications

Hi, I fixed Zeal and GoldenDict by setting java-8-openjdk as my active Java environment and removing all other Java versions (Oracle/Open)

Last edited by Nipsky (2017-11-16 22:32:45)

Offline

Board footer

Powered by FluxBB