[Gambas-user] Issue 392 in gambas: Segfault 11 after compile error
gambas at ...2524...
gambas at ...2524...
Tue Jan 22 20:53:44 CET 2013
Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 392 by r... at ...1740...: Segfault 11 after compile error
http://code.google.com/p/gambas/issues/detail?id=392
1) Describe the problem.
IDE/compiler gives error about unknown symbol in class, (which is correct,
symbol doesn't exist) then aborts program, when clicked ok it segfaults.
It also displays this in console output:
QCoreApplication::exec: The event loop is already running
2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
Version: TRUNK
Revision: r5514
Operating system: Linux
Distribution: Ubuntu 11.04
Architecture: x86_64
GUI component: QT4
Desktop used: Gnome
[System]
OperatingSystem=Linux
Kernel=2.6.38-16-generic
Architecture=x86_64
Distribution=Ubuntu 11.04
Desktop=GNOME
Theme=QGtk
Language=en_US.UTF-8
Memory=7739M
[Libraries]
GStreamer=libgstreamer-0.10.so.0.28.0
GTK+=libgtk-x11-2.0.so.0.2400.4
Poppler=libpoppler.so.13.0.0
Qt4=libQtCore.so.4.7.2
SDL=libSDL-1.2.so.0.11.3
3) Provide a little project that reproduces the bug or the crash.
Sorry too big project still.
Can try to get it reproduced on smaller project if needed.
4) If your project needs a database, try to provide it, or part of it.
5) Explain clearly how to reproduce the bug or the crash.
Running my project with a unknown class symbol, compiler gives error, (see
attachment) but after clicking ok it also segfaults... (with eventloop
already running error too)
(gdb) run
Starting program: /usr/bin/gbx3
[Thread debugging using libthread_db enabled]
[New Thread 0x7fffead8b700 (LWP 26036)]
[New Thread 0x7fffdf686700 (LWP 26037)]
QCoreApplication::exec: The event loop is already running
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff41e3908 in QEventLoop::exit(int) () from /usr/lib/libQtCore.so.4
(gdb) bt
#0 0x00007ffff41e3908 in QEventLoop::exit(int) () from
/usr/lib/libQtCore.so.4
#1 0x00007ffff5eaa648 in MyMainWindow::closeEvent (this=0xbf1510,
e=0x7fffffffd6e0) at CWindow.cpp:2278
#2 0x00007ffff4724076 in QWidget::event(QEvent*) () from
/usr/lib/libQtGui.so.4
#3 0x00007ffff46d29f4 in QApplicationPrivate::notify_helper(QObject*,
QEvent*) () from /usr/lib/libQtGui.so.4
#4 0x00007ffff46d73ba in QApplication::notify(QObject*, QEvent*) () from
/usr/lib/libQtGui.so.4
#5 0x00007ffff41e444c in QCoreApplication::notifyInternal(QObject*,
QEvent*) () from /usr/lib/libQtCore.so.4
#6 0x00007ffff471ea15 in
QWidgetPrivate::close_helper(QWidgetPrivate::CloseMode) () from
/usr/lib/libQtGui.so.4
#7 0x00007ffff5ea79b1 in do_close (_object=0xbf1378, ret=0,
destroyed=true) at CWindow.cpp:606
#8 0x00007ffff5ea99e3 in MyMainWindow::~MyMainWindow (this=0xbf1510,
__in_chrg=<value optimized out>) at CWindow.cpp:1546
#9 0x00007ffff5ea9a81 in MyMainWindow::~MyMainWindow (this=0xbf1510,
__in_chrg=<value optimized out>) at CWindow.cpp:1575
#10 0x00007ffff41f8478 in QObject::event(QEvent*) () from
/usr/lib/libQtCore.so.4
#11 0x00007ffff472367d in QWidget::event(QEvent*) () from
/usr/lib/libQtGui.so.4
#12 0x00007ffff46d29f4 in QApplicationPrivate::notify_helper(QObject*,
QEvent*) () from /usr/lib/libQtGui.so.4
#13 0x00007ffff46d73ba in QApplication::notify(QObject*, QEvent*) () from
/usr/lib/libQtGui.so.4
#14 0x00007ffff41e444c in QCoreApplication::notifyInternal(QObject*,
QEvent*) () from /usr/lib/libQtCore.so.4
#15 0x00007ffff41e7bd5 in
QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
from /usr/lib/libQtCore.so.4
#16 0x00007ffff41e7fb4 in
QCoreApplication::processEvents(QFlags<QEventLoop::ProcessEventsFlag>, int)
() from /usr/lib/libQtCore.so.4
#17 0x00007ffff5e9e995 in hook_quit () at main.cpp:764
#18 0x00007ffff5e9e9de in hook_loop () at main.cpp:781
#19 0x0000000000426072 in main (argc=1, argv=0x7fffffffe3d8) at gbx.c:408
(gdb)
6) By doing that carefully, you have done 50% of the bug fix job!
IMPORTANT NOTE: if you encounter several different problems or bugs, (for
example, a bug in your project, and an interpreter crash while debugging
it), please create distinct issues!
Attachments:
unknown symbol.png 23.1 KB
More information about the User
mailing list