[Gambas-user] [Gambas Bug Tracker] Bug #1297: Illegal Operation in Serial Communication

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Sat Apr 21 22:36:12 CEST 2018


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

Claus DIETRICH reported a new bug.

Summary
-------

Illegal Operation in Serial Communication

Type             : Bug
Priority         : High
Gambas version   : 3.10
Product          : Unknown


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

Hi,

I found, that following illegal operation is possible in serial communication with Gambas:

  SerialPort1.PortName = "/dev/ttyS0"
  SerialPort1.Open

  SerialPort2.PortName = "/dev/ttyS0"
  SerialPort2.Open

In the line "SerialPort2.Open" Gambas should throw an error message like "The associated port is already open." and interrupt the program. Currently Gambas doesn't do this, which potentially spoils the program integrity.

With best regards
Claus


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

[System]
Gambas=3.10
OperatingSystem=Linux
Kernel=4.4.0-116-generic
Architecture=x86
Distribution=Linux Mint 17.2 Rafaela
Desktop=MATE
Theme=Gtk
Language=de_DE.UTF-8
Memory=4042M

[Libraries]
Cairo=libcairo.so.2.11301.0
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.7.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.204.0
GTK+2=libgtk-x11-2.0.so.0.2400.23
GTK+3=libgtk-3.so.0.1000.8
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.44.0.0
QT4=libQtCore.so.4.8.6
QT5=libQt5Core.so.5.2.1
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6

[Environment]
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-G2ZmHNfYUP,guid=8bda9e01a6408d2502ee3f7e5adb8e33
DEFAULTS_PATH=/usr/share/gconf/mate.default.path
DESKTOP_SESSION=mate
DISPLAY=:0.0
GB_GUI=gb.qt4
GDMSESSION=mate
GDM_XSERVER_LOCATION=local
GNOME_KEYRING_CONTROL=/run/user/1000/keyring-miJpPj
GNOME_KEYRING_PID=1972
GPG_AGENT_INFO=/run/user/1000/keyring-miJpPj/gpg:0:1
HOME=<home>
LANG=de_DE.UTF-8
LC_ADDRESS=de_DE.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_MONETARY=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_NUMERIC=de_DE.UTF-8
LC_PAPER=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LOGNAME=<user>
MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path
MATE_DESKTOP_SESSION_ID=this-is-deprecated
MDMSESSION=mate
MDM_LANG=de_DE.UTF-8
MDM_XSERVER_LOCATION=local
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
PWD=<home>
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/1845,unix/<hostname>:/tmp/.ICE-unix/1845
SHELL=/bin/bash
SSH_AGENT_PID=1951
SSH_AUTH_SOCK=/run/user/1000/keyring-miJpPj/ssh
TEXTDOMAIN=im-config
TEXTDOMAINDIR=/usr/share/locale/
TZ=:/etc/localtime
USER=<user>
USERNAME=<user>
WINDOWPATH=8
XAUTHORITY=<home>/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg
XDG_CURRENT_DESKTOP=MATE
XDG_DATA_DIRS=/usr/share/mate:/usr/local/share/:/usr/share/:/usr/share/mdm/
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SESSION_COOKIE=cec7bd74c8d183e593c74ffc56ae75b5-1524338226.866181-1830116046
XDG_SESSION_DESKTOP=mate
XDG_SESSION_ID=c1
XDG_VTNR=8




More information about the User mailing list