[Gambas-user] JIT crash

Jussi Lahtinen jussi.lahtinen at gmail.com
Thu Aug 16 22:32:00 CEST 2018


Still seems to crash with latest Gambas.

Program received signal SIGSEGV, Segmentation fault.
EXEC_object_real (val=0x7ffff640e060) at gbx_exec.c:1437
1437        if (UNLIKELY(class->must_check && (*(class->check))(object)))
(gdb) bt
#0  0x00005555555a858f in EXEC_object_real (val=0x7ffff640e060)
    at gbx_exec.c:1437
#1  0x00005555555aa5ce in EXEC_push_unknown () at gbx_exec_push.c:68
#2  0x00007fffef68ad11 in jit_cbutton_9_ () at
/tmp/gambas.1000/5282/jit/gb.so
#3  0x00007fffef68ce81 in jit_cbutton_17_ () at
/tmp/gambas.1000/5282/jit/gb.so
#4  0x00007fffef693763 in jit_cbutton_17 () at
/tmp/gambas.1000/5282/jit/gb.so
#5  0x0000555555572ee8 in JIT_exec (ret_on_stack=ret_on_stack at entry=0
'\000')
    at gbx_jit.c:228
#6  0x00005555555a6437 in EXEC_function_real () at gbx_exec.c:884
#7  0x00005555555ab78b in EXEC_pop_unknown () at gbx_exec_pop.c:257
#8  0x00007fffef67fe18 in jit_fmain_23_ () at
/tmp/gambas.1000/5282/jit/gb.so
#9  0x00007fffef681f77 in jit_fmain_5_ () at /tmp/gambas.1000/5282/jit/gb.so
#10 0x00007fffef6822b7 in jit_fmain_8_ () at /tmp/gambas.1000/5282/jit/gb.so
#11 0x0000555555572ee8 in JIT_exec (ret_on_stack=ret_on_stack at entry=0
'\000')
    at gbx_jit.c:228
#12 0x00005555555a8bef in EXEC_function_real () at gbx_exec.c:884
#13 0x00005555555a8bef in EXEC_public_desc (class=<optimized out>,
object=<optimized out>, desc=<optimized out>, nparam=<optimized out>) at
gbx_exec.c:1598
#14 0x000055555558668b in raise_event (observer=<optimized out>,
    observer at entry=0x555555d4d488, object=object at entry=0x555555d4d488,
func_id=163, func_id at entry=164, nparam=nparam at entry=0) at gbx_api.c:792
#15 0x000055555558874d in GB_Raise (object=0x555555d4d488,
event_id=<optimized out>, nparam=0) at gbx_api.c:924


Jussi

On Thu, Aug 16, 2018 at 1:02 AM Jussi Lahtinen <jussi.lahtinen at gmail.com>
wrote:

> It seems some of the bugs that affected my big project are now corrected,
> but some are still left.
> More poking around to reveal crashes... Here is "fast" keywords added to
> an example project. It crashes.
>
>
> Jussi
>
> On Wed, Aug 15, 2018 at 9:40 AM Benoît Minisini <g4mba5 at gmail.com> wrote:
>
>> Le 15/08/2018 à 01:09, Jussi Lahtinen a écrit :
>> > Some serious messing with optional parameters leads to crash.
>> > See attachment.
>> >
>> >
>> > Jussi
>> >
>>
>> Fixed in commit
>>
>> https://gitlab.com/gambas/gambas/commit/6d35875a562b3af5337adda648aec177fdacc92b
>> .
>>
>> Regards,
>>
>> --
>> Benoît Minisini
>>
>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180816/4e046ad8/attachment-0001.html>
-------------- next part --------------
[System]
Gambas=3.11.90 e491a6759 (master)
OperatingSystem=Linux
Kernel=4.15.0-30-generic
Architecture=x86_64
Distribution=Linux Mint 19 Tara
Desktop=CINNAMON
Theme=Gtk
Language=en_US.UTF-8
Memory=7977M

[Libraries]
Cairo=libcairo.so.2.11510.0
Curl=libcurl.so.4.5.0
DBus=libdbus-1.so.3.19.4
GStreamer=libgstreamer-1.0.so.0.1401.0
GTK+2=libgtk-x11-2.0.so.0.2400.32
GTK+3=libgtk-3.so.0.2200.30
OpenGL=libGL.so.1.0.0
Poppler=libpoppler.so.73.0.0
QT4=libQtCore.so.4.8.7
QT5=libQt5Core.so.5.9.5
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
DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path
DESKTOP_SESSION=cinnamon
DISPLAY=:0
GB_GUI=gb.qt4
GB_PROFILE_MAX=1000
GDMSESSION=cinnamon
GDM_LANG=en_US
GIO_LAUNCHED_DESKTOP_FILE=<home>/Desktop/Gambas3.desktop
GIO_LAUNCHED_DESKTOP_FILE_PID=4539
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
GTK_MODULES=gail:atk-bridge
GTK_OVERLAY_SCROLLING=1
HOME=<home>
INSIDE_NEMO_PYTHON=
LANG=en_US.UTF-8
LANGUAGE=en_US
LC_ADDRESS=fi_FI.UTF-8
LC_IDENTIFICATION=fi_FI.UTF-8
LC_MEASUREMENT=fi_FI.UTF-8
LC_MONETARY=fi_FI.UTF-8
LC_NAME=fi_FI.UTF-8
LC_NUMERIC=fi_FI.UTF-8
LC_PAPER=fi_FI.UTF-8
LC_TELEPHONE=fi_FI.UTF-8
LOGNAME=<user>
MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
PWD=<home>
QT_ACCESSIBILITY=1
QT_QPA_PLATFORMTHEME=qt5ct
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/930,unix/<hostname>:/tmp/.ICE-unix/930
SHELL=/bin/bash
SHLVL=0
SSH_AGENT_PID=994
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TZ=:/etc/localtime
USER=<user>
XAUTHORITY=<home>/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg
XDG_CURRENT_DESKTOP=X-Cinnamon
XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:<home>/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
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_DESKTOP=cinnamon
XDG_SESSION_ID=c1
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SESSION_TYPE=x11
XDG_VTNR=7
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MediaPlayer-1.0.tar.gz
Type: application/gzip
Size: 186893 bytes
Desc: not available
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180816/4e046ad8/attachment-0001.gz>


More information about the User mailing list