[Gambas-bugtracker] Bug #1366: emulated empty settings collection get a crash when write it and leave locked

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Tue Jul 17 14:32:35 CEST 2018


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

PICCORO LENZ MCKAY reported a new bug.

Summary
-------

emulated empty settings collection get a crash when write it and leave locked

Type             : Bug
Priority         : High
Gambas version   : Master
Product          : Development Environment


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

confirmed in the mail list, before version 3.5 does not got crash, now since 3.6/3.7 got a crash in the IDE

must leave the file without changes and IDE out without a crash, and do not touch the file, leave the file in locked status

https://lists.gambas-basic.org/pipermail/user/2018-July/064897.html

quoting Tobias:

> Interesting, I get a segfault in addition:

...

> Besides this crash (which really shouldn't happen), you have to

code:

  $ cat a.gbs3
  #!/usr/bin/env gbs3

  Use "gb.settings"

  Public Sub Main()
    Dim p As Pointer = VarPtr(p)

    Settings["x"] = p
    Settings.Save
  End
  $ ./a.gbs3
  Settings.Save.204: Unable to save settings: Settings.WriteValue.563 Type mismatch: wanted Object, got Pointer instead
  Settings.Save.204 MMain.Main.9
  Segmentation fault


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

[System]
Gambas=3.9.2
OperatingSystem=Linux
Kernel=4.9.0-0.bpo.2-686-pae
Architecture=x86
Distribution=devuan 8
Desktop=MoonlightDE
Theme=QT5
Language=es_VE.UTF-8
Memory=7984M

[Libraries]
Cairo=libcairo.so.2.11400.0
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.8.14
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.404.0
GTK+2=libgtk-x11-2.0.so.0.2400.25
GTK+3=libgtk-3.so.0.1400.5
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.46.0.0
QT4=libQtCore.so.4.8.6
QT5=libQt5Core.so.5.3.2
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6

[Environment]
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-xCGlY6Cqx0,guid=0bdc669303b46b83d2b4a98d59b9f71b
DESKTOP_SESSION=mate
DISPLAY=:0.0
GB_GUI=gb.qt5
GDMSESSION=mlde
GDM_LANG=es_VE.utf8
GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop
GIO_LAUNCHED_DESKTOP_FILE_PID=7363
GPG_AGENT_INFO=/run/user/1000/keyring/gpg:0:1
HOME=<home>
LANG=es_VE.UTF-8
LANGUAGE=es_VE:es
LOGNAME=<user>
MATE_DESKTOP_SESSION_ID=this-is-deprecated
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
PWD=<home>
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/1521,unix/<hostname>:/tmp/.ICE-unix/1521
SHELL=/bin/bash
SSH_AGENT_PID=1550
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TZ=:/etc/localtime
USER=<user>
XAUTHORITY=<home>/.Xauthority
XDG_CURRENT_DESKTOP=MLDE
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_ID=1
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_VTNR=7




More information about the Bugtracker mailing list