[Gambas-bugtracker] Bug #2243: write an array to an invalid stream raises segfault
bugtracker at gambaswiki.org
bugtracker at gambaswiki.org
Wed Jun 9 20:29:55 CEST 2021
http://gambaswiki.org/bugtracker/edit?object=BUG.2243&from=L21haW4-
Gen BRAGA reported a new bug.
Summary
-------
write an array to an invalid stream raises segfault
Type : Bug
Priority : Medium
Gambas version : Master
Product : Networking components
Description
-----------
Lets say:
Dim aArray As Byte[]
Dim hSocket As Socket
aArray = [1, 2, 3]
aArray.Write(hSocket)
This piece of code crashes with SegFault because hSocket is null. Shouldnt it raise an error?
System information
------------------
[System]
Gambas=3.16.90
OperatingSystem=Linux
Kernel=4.4.0-210-generic
Architecture=x86_64
Distribution=Ubuntu 16.04.7 LTS
Desktop=UNITY
Font=Ubuntu,11
Scale=8
Theme=proxy
Language=pt_BR.UTF-8
Memory=7896M
[Libraries]
Cairo=libcairo.so.2.11400.6
Curl=libcurl.so.4.4.0
DBus=libdbus-1.so.3.14.6
GDK2=libgdk-x11-2.0.so.0.2400.30
GDK3=libgdk-3.so.0.1800.9
GStreamer=libgstreamer-1.0.so.0.803.0
GTK+2=libgtk-x11-2.0.so.0.2400.30
GTK+3=libgtk-3.so.0.1800.9
OpenGL=libGL.so.1.2.0
OpenGL=libGL.so.1.7.0
Poppler=libpoppler.so.58.0.0
QT4=libQtCore.so.4.8.7
QT5=libQt5Core.so.5.5.1
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6
More information about the Bugtracker
mailing list