[Gambas Bug Tracker] Bug #1049: reader.Node.Attributes.Value --> Segmentation Fault(11)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Gambas Bug Tracker] Bug #1049: reader.Node.Attributes.Value --> Segmentation Fault(11)

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

Francisco GARCÍA-LUENGO MANCHADO reported a new bug.

Summary
-------

reader.Node.Attributes.Value --> Segmentation Fault(11)

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


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

Public Sub LeerArchivo()
 
  Dim i As Integer
  Dim reader As XmlReader
 
  reader = New XmlReader

' trvProyecto any valid treeview
' DocumentoPrueba.xml any valid xml file


  Try reader.Open("DocumentoPrueba.xml")
  If Error Then
    Message.Error("No se pudo abrir el archivo")
    Return
  Endif
 
  i = 0
  Do While True
    Try reader.Read()
    If reader.Eof Then Break
    Try FMain.trvProyecto.Add(i, i & ": " & reader.Node.Depth & "-" & reader.Node.Type & "-" & reader.Node.Name & "-" & reader.Node.Value, PicLibreria)
    i = i + 1
    For Each reader.Node.Attributes
      Try Print "-" & reader.Node.Attributes.Name '& "-" & reader.Node.Attributes.Value  '' <---- Error
    Next
    'Print reader.Node.Type & "-" & reader.Node.Name & "-" & reader.Node.Value
  Loop
  reader.Close()
End


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

[System]
Gambas=3.9.1
OperatingSystem=Linux
Kernel=4.4.0-53-generic
Architecture=x86_64
Distribution=Linux Mint 18 Sarah
Desktop=CINNAMON
Theme=Gtk
Language=es_ES.UTF-8
Memory=3950M

[Libraries]
Cairo=libcairo.so.2.11400.6
Curl=libcurl.so.4.4.0
DBus=libdbus-1.so.3.14.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.802.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
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

[Environment]
CINNAMON_VERSION=3.0.7
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-PtFS8POBrs,guid=1408fb7c6c68c77fe25e2d68584c2735
DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path
DESKTOP_SESSION=cinnamon
DISPLAY=:0
GB_GUI=gb.qt4
GDMSESSION=cinnamon
GDM_XSERVER_LOCATION=local
GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop
GIO_LAUNCHED_DESKTOP_FILE_PID=4636
GJS_DEBUG_OUTPUT=stderr
GJS_DEBUG_TOPICS=JS ERROR;JS LOG
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GPG_AGENT_INFO=<home>/.gnupg/S.gpg-agent:0:1
GTK_MODULES=gail:atk-bridge
GTK_OVERLAY_SCROLLING=1
HOME=<home>
LANG=es_ES.UTF-8
LOGNAME=<user>
MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path
MDMSESSION=cinnamon
MDM_LANG=es_ES.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>
QT_ACCESSIBILITY=1
QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
QT_STYLE_OVERRIDE=gtk
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/1210,unix/<hostname>:/tmp/.ICE-unix/1210
SHELL=/bin/bash
SSH_AGENT_PID=1559
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TZ=:/etc/localtime
USER=<user>
USERNAME=<user>
WINDOWPATH=8
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:/usr/local/share/:/usr/share/:/usr/share/mdm/
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SESSION_COOKIE=2a5d5f96ef9147c0b35535562b32d0ff-1481385777.767581-1058287532
XDG_SESSION_DESKTOP=cinnamon
XDG_SESSION_ID=c1
XDG_VTNR=8



------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|

[Gambas Bug Tracker] Bug #1049: reader.Node.Attributes.Value --> Segmentation Fault(11)

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

Comment #1 by Benoît MINISINI:

Please provide a full project that reproduces the crash.



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|

[Gambas Bug Tracker] Bug #1049: reader.Node.Attributes.Value --> Segmentation Fault(11)

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1049&from=L21haW4-

Comment #2 by Adrien PROKOPOWICZ:

The bug was fixed in revision #8119.

Adrien PROKOPOWICZ changed the state of the bug to: Fixed.



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user