[Gambas-bugtracker] Bug #2479: Segmentation fault at the run of a project

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Thu Feb 10 20:48:20 CET 2022


http://gambaswiki.org/bugtracker/edit?object=BUG.2479&from=L21haW4-

Olivier CRUILLES reported a new bug.

Summary
-------

Segmentation fault at the run of a project

Type             : Bug
Priority         : Medium
Gambas version   : Master
Product          : Unknown


Description
-----------

Hello, 

Since the last Dev version, I'm not more able to run one of my project (that works since few years).

Joined the Valgrind log.

[linus at linusky gbNetworkGUI]$ cat valgrind.out
==1866280== Memcheck, a memory error detector
==1866280== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==1866280== Using Valgrind-3.16.1 and LibVEX; rerun with -h for copyright info
==1866280== Command: gbx3
==1866280== 
libpng warning: iCCP: known incorrect sRGB profile
==1866280== Invalid read of size 8
==1866280==    at 0x412C84: STREAM_read_type (gbx_stream.c:1275)
==1866280==    by 0x418260: SUBR_read (gbx_subr_file.c:544)
==1866280==    by 0x444B5C: EXEC_loop (gbx_exec_loop.c:510)
==1866280==    by 0x449EAC: EXEC_function_loop (gbx_exec.c:906)
==1866280==    by 0x4226C6: raise_event (gbx_api.c:838)
==1866280==    by 0x424511: GB_Raise (gbx_api.c:996)
==1866280==    by 0x1344B394: emit_open_event (CWindow.cpp:226)
==1866280==    by 0x1344B394: emit_open_event(void*) (CWindow.cpp:210)
==1866280==    by 0x1344DFE5: Window_Show(void*, void*) (CWindow.cpp:746)
==1866280==    by 0x44AE9F: EXEC_native (gbx_exec.c:1331)
==1866280==    by 0x44B925: EXEC_public_desc (gbx_exec.c:1576)
==1866280==    by 0x44B925: EXEC_public_desc (gbx_exec.c:1565)
==1866280==    by 0x405461: main (gbx.c:472)
==1866280==  Address 0xb0 is not stack'd, malloc'd or (recently) free'd
==1866280== 
==1866280== 
==1866280== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==1866280==  Access not within mapped region at address 0xB0
==1866280==    at 0x412C84: STREAM_read_type (gbx_stream.c:1275)
==1866280==    by 0x418260: SUBR_read (gbx_subr_file.c:544)
==1866280==    by 0x444B5C: EXEC_loop (gbx_exec_loop.c:510)
==1866280==    by 0x449EAC: EXEC_function_loop (gbx_exec.c:906)
==1866280==    by 0x4226C6: raise_event (gbx_api.c:838)
==1866280==    by 0x424511: GB_Raise (gbx_api.c:996)
==1866280==    by 0x1344B394: emit_open_event (CWindow.cpp:226)
==1866280==    by 0x1344B394: emit_open_event(void*) (CWindow.cpp:210)
==1866280==    by 0x1344DFE5: Window_Show(void*, void*) (CWindow.cpp:746)
==1866280==    by 0x44AE9F: EXEC_native (gbx_exec.c:1331)
==1866280==    by 0x44B925: EXEC_public_desc (gbx_exec.c:1576)
==1866280==    by 0x44B925: EXEC_public_desc (gbx_exec.c:1565)
==1866280==    by 0x405461: main (gbx.c:472)
==1866280==  If you believe this happened as a result of a stack
==1866280==  overflow in your program's main thread (unlikely but
==1866280==  possible), you can try to increase the size of the
==1866280==  main thread stack using the --main-stacksize= flag.
==1866280==  The main thread stack size used in this run was 8388608.
==1866280== 
==1866280== HEAP SUMMARY:
==1866280==     in use at exit: 10,928,324 bytes in 86,491 blocks
==1866280==   total heap usage: 386,948 allocs, 300,457 frees, 122,636,168 bytes allocated
==1866280== 
==1866280== LEAK SUMMARY:
==1866280==    definitely lost: 183,760 bytes in 2,546 blocks
==1866280==    indirectly lost: 128 bytes in 3 blocks
==1866280==      possibly lost: 4,765,476 bytes in 12,152 blocks
==1866280==    still reachable: 5,908,192 bytes in 71,210 blocks
==1866280==                       of which reachable via heuristic:
==1866280==                         length64           : 3,624 bytes in 66 blocks
==1866280==                         newarray           : 2,104 bytes in 51 blocks
==1866280==         suppressed: 0 bytes in 0 blocks
==1866280== Rerun with --leak-check=full to see details of leaked memory
==1866280== 
==1866280== For lists of detected and suppressed errors, rerun with: -s
==1866280== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)


Olivier Cruilles


System information
------------------

[System]
Gambas=3.16.90 a760016d2 (master)
OperatingSystem=Linux
Kernel=5.8.15-301.fc33.x86_64
Architecture=x86_64
Distribution=redhat Fedora release 33 (Thirty Three)
Desktop=MATE
Font=Bitstream Vera Sans,9
Scale=6
Theme=bluebird
Language=fr_FR.utf8
Memory=32054M

[Libraries]
Cairo=libcairo.so.2.11600.0
Curl=libcurl.so.4.6.0
DBus=libdbus-1.so.3.19.13
GDK2=libgdk-x11-2.0.so.0.2400.33
GDK3=libgdk-3.so.0.2404.25
GStreamer=libgstreamer-1.0.so.0.1802.0
GTK+2=libgtk-x11-2.0.so.0.2400.33
GTK+3=libgtk-3.so.0.2404.25
OpenGL=libGL.so.1.7.0
Poppler=libpoppler.so.101.0.0
QT5=libQt5Core.so.5.15.2
SQLite=libsqlite3.so.0.8.6

[Environment]
BASH_ENV=/usr/share/lmod/lmod/init/bash
BASH_FUNC_ml%%=() {  eval $($LMOD_DIR/ml_cmd "$@")
}
BASH_FUNC_module%%=() {  eval $($LMOD_CMD bash "$@") && eval $(${LMOD_SETTARG_CMD:-:} -s sh)
}
CAPP_BUILD=<home>/Packages/Starter/Build
CONDA_SHLVL=0
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DESKTOP_SESSION=mate
DISPLAY=:0
EDITOR=/usr/bin/nano
GB_GUI=gb.gtk3
GDMSESSION=mate
GDM_LANG=fr_FR.utf8
GIO_LAUNCHED_DESKTOP_FILE_PID=1864356
GTK3_MODULES=xapp-gtk3-module
GTK_OVERLAY_SCROLLING=0
GUESTFISH_INIT=\e[1;34m
GUESTFISH_OUTPUT=\e[0m
GUESTFISH_PS1=\[\e[1;32m\]><fs>\[\e[0;31m\] 
GUESTFISH_RESTORE=\e[0m
HISTCONTROL=ignoredups
HISTSIZE=1000
HISTTIMEFORMAT=%F %T 
HOME=<home>
HOSTNAME=<hostname>
IMSETTINGS_INTEGRATE_DESKTOP=yes
IMSETTINGS_MODULE=none
KDEDIRS=/usr
LANG=fr_FR.utf8
LC_ALL=fr_FR.utf8
LESSOPEN=||/usr/bin/lesspipe.sh %s
LMOD_CMD=/usr/share/lmod/lmod/libexec/lmod
LMOD_DIR=/usr/share/lmod/lmod/libexec
LMOD_PKG=/usr/share/lmod/lmod
LMOD_ROOT=/usr/share/lmod
LMOD_SETTARG_FULL_SUPPORT=no
LMOD_VERSION=8.4.1
LMOD_sys=Linux
LOGNAME=<user>
MAIL=/var/spool/mail/<user>
MANPATH=/usr/share/lmod/lmod/share/man:
MATE_DESKTOP_SESSION_ID=this-is-deprecated
MODULEPATH=/etc/modulefiles:/usr/share/modulefiles:/usr/share/modulefiles/Linux:/usr/share/modulefiles/Core:/usr/share/lmod/lmod/modulefiles/Core
MODULEPATH_ROOT=/usr/share/modulefiles
MODULESHOME=/usr/share/lmod/lmod
MOZ_GMP_PATH=/usr/lib64/mozilla/plugins/gmp-gmpopenh264/system-installed
PAGER=most
PATH=<home>/.local/bin:<home>/.cargo/bin:<home>/narwhal/bin:<home>/perl5/bin:/usr/condabin:/usr/lib64/ccache:<home>/.cargo/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/var/lib/snapd/snap/bin:<home>/bin:/usr/local/xaralx/bin
PERL5LIB=<home>/perl5/lib/perl5
PERL_LOCAL_LIB_ROOT=<home>/perl5
PERL_MB_OPT=--install_base "<home>/perl5"
PERL_MM_OPT=INSTALL_BASE=<home>/perl5
PWD=<home>
QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_IM_MODULE=xim
QT_LOGGING_RULES=*.debug=false
QT_SCALE_FACTOR=1
SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/31305,unix/unix:/tmp/.ICE-unix/31305
SHELL=/bin/bash
SHLVL=0
SSH_AGENT_PID=32231
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TERM=dumb
TZ=:/etc/localtime
USER=<user>
XAUTHORITY=/run/lightdm/<user>/xauthority
XDG_CURRENT_DESKTOP=MATE
XDG_DATA_DIRS=<home>/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/<user>
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=mate
XDG_SESSION_ID=2
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SESSION_TYPE=x11
XDG_VTNR=1
XMODIFIERS=@im=none




More information about the Bugtracker mailing list