Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Crash on run #124

Closed
krc opened this issue Oct 6, 2014 · 7 comments
Closed

Crash on run #124

krc opened this issue Oct 6, 2014 · 7 comments

Comments

@krc
Copy link

krc commented Oct 6, 2014

I saw phototonic in Debian sid and decided to try it, but found that it crashes on startup. I filed Debian bug 763950 (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=763950), but it became apparent it is an upstream issue. I downloaded and compiled 1.4 myself and I get the same crash.

krc@ken:$ phototonic
*** Error in `/opt/fail/usr/bin/phototonic': free(): invalid pointer: 0x00007ffed899b5a0 ***
Aborted
krc@ken:
$

when I built with debugging symbols and used gdb:

gdb /opt/fail/usr/bin/phototonic

Reading symbols from /opt/fail/usr/bin/phototonic...done.
(gdb) run
Starting program: /opt/fail/usr/bin/phototonic
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffec162700 (LWP 14905)]
*** Error in `/opt/fail/usr/bin/phototonic': free(): invalid pointer: 0x00007fffeeddd5a0 ***

Program received signal SIGABRT, Aborted.
0x00007ffff5248077 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb)

Valgrind:

krc@ken:~$ valgrind phototonic
==20744== Memcheck, a memory error detector
==20744== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==20744== Using Valgrind-3.10.0 and LibVEX; rerun with -h for copyright info
==20744== Command: /opt/fail/usr/bin/phototonic
==20744==
==20744== Invalid free() / delete / delete[] / realloc()
==20744== at 0x4C29E90: free (vg_replace_malloc.c:473)
==20744== by 0xE06670E: ??? (in /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so)
==20744== by 0xE067F4F: ??? (in /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so)
==20744== by 0x5CE86C3: ??? (in /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5.3.2)
==20744== by 0x5CEB0AC: QFontDatabase::findFont(int, QFontPrivate const_, QFontDef const&, bool, bool) (in /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5.3.2)
==20744== by 0x5CEB9D0: QFontDatabase::load(QFontPrivate const_, int) (in /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5.3.2)
==20744== by 0x5CC7208: QFontPrivate::engineForScript(int) const (in /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5.3.2)
==20744== by 0x5CE0552: QFontMetrics::height() const (in /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5.3.2)
==20744== by 0x5682A20: QHeaderView::minimumSectionSize() const (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.3.2)
==20744== by 0x5682C89: QHeaderView::QHeaderView(Qt::Orientation, QWidget_) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.3.2)
==20744== by 0x56A3E5C: ??? (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.3.2)
==20744== by 0x458F67: InfoView::InfoView(QWidget_) (infoview.cpp:21)
==20744== Address 0xe0a45a0 is not stack'd, malloc'd or (recently) free'd
==20744==
==20744==
==20744== More than 10000000 total errors detected. I'm not reporting any more.
==20744== Final error counts will be inaccurate. Go fix your program!
==20744== Rerun with --error-limit=no to disable this cutoff. Note
==20744== that errors may occur in your program without prior warning from
==20744== Valgrind, because errors are no longer being displayed.
==20744==

^C==20744==
==20744== HEAP SUMMARY:
==20744== in use at exit: 634,131 bytes in 9,399 blocks
==20744== total heap usage: 29,454 allocs, 12,504,465 frees, 3,651,187 bytes allocated
==20744==
==20744== LEAK SUMMARY:
==20744== definitely lost: 2,564 bytes in 13 blocks
==20744== indirectly lost: 7,348 bytes in 296 blocks
==20744== possibly lost: 6,065 bytes in 102 blocks
==20744== still reachable: 618,154 bytes in 8,988 blocks
==20744== suppressed: 0 bytes in 0 blocks
==20744== Rerun with --leak-check=full to see details of leaked memory
==20744==
==20744== For counts of detected and suppressed errors, rerun with: -v
==20744== ERROR SUMMARY: 10000000 errors from 1 contexts (suppressed: 0 from 0)
Killed

As per my debian report, my system info is:

-- System Information:
Debian Release: jessie/sid
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages phototonic depends on:
ii libc6 2.19-11
ii libexiv2-13 0.24-4
ii libgcc1 1:4.9.1-16
ii libgl1-mesa-glx [libgl1] 10.2.6-1
ii libqt5core5a 5.3.2+dfsg-3
ii libqt5gui5 5.3.2+dfsg-3
ii libqt5widgets5 5.3.2+dfsg-3
ii libstdc++6 4.9.1-16

@krc
Copy link
Author

krc commented Oct 6, 2014

FYI just compiled from git master just in case, same errors.

@JHooverman
Copy link
Contributor

What did you do before Phototonic crashes?

@krc
Copy link
Author

krc commented Oct 6, 2014

er, nothing? I never so much as see a window come up. Run, crash.

@oferkv oferkv added the Bug label Oct 6, 2014
@oferkv
Copy link
Owner

oferkv commented Oct 6, 2014

Thank you for this detailed report.

@oferkv
Copy link
Owner

oferkv commented Oct 15, 2014

Hi krc, from the stack trace, (which is Qt code) I am guessing that there is a problem with a specific font.
Are other Qt applications work fine on your setup?
Can you try changing the font/theme, so we can make sure its not related?
Thanks!

@krc
Copy link
Author

krc commented Oct 16, 2014

Hm, seems my qt install is borked in some way? anyway, all qt5 apps are crashing the same way... I just don't run any that often, so I didn't realize. Sorry, not your issue after all!

@oferkv oferkv removed the Bug label Oct 17, 2014
@oferkv
Copy link
Owner

oferkv commented Oct 17, 2014

Cool, thanks.

@oferkv oferkv closed this as completed Oct 17, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants