[Gambas-bugtracker] Bug #2236: IDE QT5: menu Open file... crash
bugtracker at gambaswiki.org
bugtracker at gambaswiki.org
Mon Jun 7 23:41:03 CEST 2021
http://gambaswiki.org/bugtracker/edit?object=BUG.2236&from=L21haW4-
Gianluigi GRADASCHI reported a new bug.
Summary
-------
IDE QT5: menu Open file... crash
Type : Bug
Priority : Medium
Gambas version : Master
Product : QT5 component
Description
-----------
Click on Open file menu and IDE crash:
The terminal report: $ export GB_GUI=gb.qt5 && LANG="C" gambas3
free(): invalid pointer
Annullato
$ gdb gbx3
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2
Copyright (C) 2020 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-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 gbx3...
(gdb) run
Starting program: /usr/bin/gbx3
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Detaching after vfork from child process 176685]
[Detaching after vfork from child process 176687]
[Detaching after vfork from child process 176689]
[New Thread 0x7fffe2a47700 (LWP 176691)]
[New Thread 0x7fffe14c4700 (LWP 176692)]
[New Thread 0x7fffe0cc3700 (LWP 176693)]
[New Thread 0x7fffd3fff700 (LWP 176694)]
[New Thread 0x7fffd1ea0700 (LWP 176696)]
[New Thread 0x7fffd155e700 (LWP 176697)]
[New Thread 0x7fffd0d5d700 (LWP 176698)]
[New Thread 0x7fffc705b700 (LWP 176699)]
[New Thread 0x7fffc685a700 (LWP 176700)]
[New Thread 0x7fffc6059700 (LWP 176701)]
[New Thread 0x7fffc5858700 (LWP 176702)]
[New Thread 0x7fffc5057700 (LWP 176703)]
[New Thread 0x7fffc4856700 (LWP 176704)]
[New Thread 0x7fff9ffff700 (LWP 176705)]
[New Thread 0x7fff9f7fe700 (LWP 176706)]
[New Thread 0x7fff9effd700 (LWP 176707)]
[New Thread 0x7fff9e7fc700 (LWP 176708)]
[New Thread 0x7fff9dffb700 (LWP 176709)]
[New Thread 0x7fff9d7fa700 (LWP 176710)]
[New Thread 0x7fff9cff9700 (LWP 176711)]
[New Thread 0x7fff7ffff700 (LWP 176712)]
[New Thread 0x7fff7f7fe700 (LWP 176713)]
[New Thread 0x7fff7effd700 (LWP 176714)]
[New Thread 0x7fff7e7fc700 (LWP 176715)]
[New Thread 0x7fff7dffb700 (LWP 176716)]
[New Thread 0x7fff7d7fa700 (LWP 176717)]
[New Thread 0x7fff7cff9700 (LWP 176718)]
[Detaching after vfork from child process 176722]
[New Thread 0x7fff5f97c700 (LWP 176723)]
[Detaching after fork from child process 176724]
[Detaching after fork from child process 176725]
[New Thread 0x7fff5f17b700 (LWP 176728)]
[New Thread 0x7fff5e97a700 (LWP 176729)]
[New Thread 0x7fff5e179700 (LWP 176730)]
[New Thread 0x7fff5d978700 (LWP 176731)]
[New Thread 0x7fff5d177700 (LWP 176732)]
[New Thread 0x7fff5c976700 (LWP 176733)]
[New Thread 0x7fff3ffff700 (LWP 176734)]
[New Thread 0x7fff377fe700 (LWP 176735)]
[New Thread 0x7fff3f7fe700 (LWP 176736)]
[New Thread 0x7fff3effd700 (LWP 176737)]
[New Thread 0x7fff3e7fc700 (LWP 176738)]
[New Thread 0x7fff3dffb700 (LWP 176739)]
[New Thread 0x7fff3d7fa700 (LWP 176740)]
[New Thread 0x7fff3cff9700 (LWP 176741)]
[New Thread 0x7fff37fff700 (LWP 176742)]
[New Thread 0x7fff36ffd700 (LWP 176743)]
[Thread 0x7fff36ffd700 (LWP 176743) exited]
[Detaching after fork from child process 176751]
[Detaching after fork from child process 176753]
free(): invalid pointer
--Type <RET> for more, q to quit, c to continue without paging--
Thread 1 "gbx3" received signal SIGABRT, Aborted.
__GI_raise (sig=sig at entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50 ../sysdeps/unix/sysv/linux/raise.c: File o directory non esistente.
(gdb) bt
#0 __GI_raise (sig=sig at entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1 0x00007ffff7ddf859 in __GI_abort () at abort.c:79
#2 0x00007ffff7e4a3ee in __libc_message
(action=action at entry=do_abort, fmt=fmt at entry=0x7ffff7f74285 "%s\n")
at ../sysdeps/posix/libc_fatal.c:155
#3 0x00007ffff7e5247c in malloc_printerr
(str=str at entry=0x7ffff7f724ae "free(): invalid pointer") at malloc.c:5347
#4 0x00007ffff7e53cac in _int_free
(av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:4173
#5 0x00005555555af006 in COMPONENT_before_fork () at gbx_component.c:447
#6 0x00005555555ae0d5 in start_task (_object=_object at entry=0x555557ba78e8)
at gbx_c_task.c:296
#7 0x000055555557f809 in EVENT_check_post () at gbx_event.c:247
#8 0x00007ffff588ed5a in QObject::event(QEvent*) ()
at /lib/x86_64-linux-gnu/libQt5Core.so.5
#9 0x00007ffff627aa66 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#10 0x00007ffff62840f0 in QApplication::notify(QObject*, QEvent*) ()
at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#11 0x00007ffff586293a in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() at /lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007ffff58655b8 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
--Type <RET> for more, q to quit, c to continue without paging--
#13 0x00007ffff58baf67 in () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007ffff4baa17d in g_main_context_dispatch ()
at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#15 0x00007ffff4baa400 in () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#16 0x00007ffff4baa4a3 in g_main_context_iteration ()
at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#17 0x00007ffff58ba565 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007ffff58614db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00007ffff68e9415 in MyMainWindow::doShowModal(bool, QPoint const*)
(this=0x5555579abb60, popup=<optimized out>, pos=<optimized out>)
at /usr/include/x86_64-linux-gnu/qt5/QtCore/qflags.h:120
#20 0x00007ffff68e961a in MyMainWindow::showModal() (this=<optimized out>)
at CWindow.h:231
#21 Window_ShowModal(void*, void*)
(_object=0x555556b10d98, _param=<optimized out>) at CWindow.cpp:799
#22 0x00005555555bc589 in EXEC_native_quick () at gbx_exec.c:1175
#23 0x00005555555bd6eb in EXEC_native_check (defined=<optimized out>)
at gbx_exec.c:1125
#24 0x00005555555b674e in EXEC_loop () at gbx_exec_loop.c:1172
#25 0x00005555555bbcf5 in EXEC_function_loop () at gbx_exec.c:905
#26 0x00005555555bc476 in EXEC_function_real () at gbx_exec.c:892
--Type <RET> for more, q to quit, c to continue without paging--
#27 0x00005555555bd8c9 in EXEC_public_desc
(class=<optimized out>, object=<optimized out>, desc=<optimized out>, nparam=<optimized out>) at gbx_exec.c:1585
#28 0x0000555555595c5b in GB_Call
(func=<optimized out>, nparam=<optimized out>, release=1) at gbx_api.c:1186
#29 0x00007ffff68f39e2 in send_click_event(CMENU*) (_object=<optimized out>,
_object at entry=0x555556481a38) at CMenu.cpp:987
#30 0x000055555557f809 in EVENT_check_post () at gbx_event.c:247
#31 0x00007ffff588ed5a in QObject::event(QEvent*) ()
at /lib/x86_64-linux-gnu/libQt5Core.so.5
#32 0x00007ffff627aa66 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#33 0x00007ffff62840f0 in QApplication::notify(QObject*, QEvent*) ()
at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#34 0x00007ffff586293a in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() at /lib/x86_64-linux-gnu/libQt5Core.so.5
#35 0x00007ffff58655b8 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#36 0x00007ffff58baf67 in () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#37 0x00007ffff4baa17d in g_main_context_dispatch ()
at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#38 0x00007ffff4baa400 in () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#39 0x00007ffff4baa4a3 in g_main_context_iteration ()
--Type <RET> for more, q to quit, c to continue without paging--
at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#40 0x00007ffff58ba565 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#41 0x00007ffff58614db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#42 0x00007ffff5869246 in QCoreApplication::exec() ()
at /lib/x86_64-linux-gnu/libQt5Core.so.5
#43 0x00007ffff68d479d in hook_loop() ()
at /usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreapplication.h:116
#44 0x00005555555751c2 in main (argc=<optimized out>, argv=<optimized out>)
at gbx.c:480
(gdb) q
A debugging session is active.
Inferior 1 [process 176681] will be killed.
Quit anyway? (y or n) y
System information
------------------
[System]
Gambas=3.16.90 fff860d (master)
OperatingSystem=Linux
Kernel=5.8.0-55-generic
Architecture=x86_64
Distribution=Ubuntu 20.04.2 LTS
Desktop=UBUNTU:GNOME
Font=Ubuntu,11
Scale=8
Theme=proxy
Language=it_IT.UTF-8
Memory=32087M
[Libraries]
Cairo=libcairo.so.2.11600.0
Curl=libcurl.so.4.6.0
DBus=libdbus-1.so.3.19.11
GDK2=libgdk-x11-2.0.so.0.2400.32
GDK3=libgdk-3.so.0.2404.16
GStreamer=libgstreamer-1.0.so.0.1602.0
GTK+2=libgtk-x11-2.0.so.0.2400.32
GTK+3=libgtk-3.so.0.2404.16
OpenGL=libGL.so.1.7.0
Poppler=libpoppler.so.97.0.0
QT5=libQt5Core.so.5.12.8
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6
[Environment]
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DESKTOP_SESSION=ubuntu
DISPLAY=:0
GB_GUI=gb.qt5
GDMSESSION=ubuntu
GIO_LAUNCHED_DESKTOP_FILE=/home/<hostname>/.local/share/applications/gambas3.desktop
GIO_LAUNCHED_DESKTOP_FILE_PID=176857
GJS_DEBUG_OUTPUT=stderr
GJS_DEBUG_TOPICS=JS ERROR;JS LOG
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GNOME_SHELL_SESSION_MODE=ubuntu
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
GTK_MODULES=gail:atk-bridge
HOME=/home/<hostname>
IM_CONFIG_PHASE=1
INVOCATION_ID=98a94614514c4286b979d646d557b9c8
JOURNAL_STREAM=8:41508
LANG=it_IT.UTF-8
LC_ALL=it_IT.UTF-8
LOGNAME=<hostname>
MANAGERPID=1669
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PWD=/home/<hostname>
QT_ACCESSIBILITY=1
QT_IM_MODULE=ibus
QT_LOGGING_RULES=*.debug=false
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/1942,unix/<hostname>:/tmp/.ICE-unix/1942
SHELL=/bin/bash
SHLVL=0
SSH_AGENT_PID=1862
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TZ=:/etc/localtime
USER=<hostname>
USERNAME=<hostname>
WINDOWPATH=2
XAUTHORITY=/run/user/1000/gdm/Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
XDG_CURRENT_DESKTOP=ubuntu:GNOME
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
XDG_MENU_PREFIX=gnome-
XDG_RUNTIME_DIR=/run/user/1000
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=ubuntu
XDG_SESSION_TYPE=x11
XMODIFIERS=@im=ibus
_=/usr/bin/dbus-update-activation-environment
force_s3tc_enable=true
More information about the Bugtracker
mailing list