[Gambas Bug Tracker] Bug #1129: lybrary extern return illegal instruction

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

[Gambas Bug Tracker] Bug #1129: lybrary extern return illegal instruction

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

Philippe BIENVAULT reported a new bug.

Summary
-------

lybrary extern return illegal instruction

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


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

Private Extern factorielle(toto As Integer) As Integer In "libfact"


Public Sub Main()

  Dim aVal As Integer
 
  aVal = factorielle(12) ' -> return illegal instruction


End


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

[System]
Gambas=3.9.2
OperatingSystem=Linux
Kernel=4.4.0-71-generic
Architecture=x86_64
Distribution=Ubuntu 16.04.2 LTS
Desktop=UNITY
Theme=Gtk
Language=fr_FR.UTF-8
Memory=3624M

[Libraries]
Cairo=libcairo.so.2.11400.6
Curl=libcurl.so.4.4.0
DBus=libdbus-1.so.3.14.6
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.0.0
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]
CLUTTER_IM_MODULE=xim
COMPIZ_BIN_PATH=/usr/bin/
COMPIZ_CONFIG_PROFILE=ubuntu
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-1SjanrYhNB
DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
DESKTOP_SESSION=ubuntu
DISPLAY=:0
GB_GUI=gb.qt4
GDMSESSION=ubuntu
GDM_LANG=fr_FR
GIO_LAUNCHED_DESKTOP_FILE=<home>/.local/share/applications/gambas3.desktop
GIO_LAUNCHED_DESKTOP_FILE_PID=11132
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GNOME_KEYRING_CONTROL=
GNOME_KEYRING_PID=
GPG_AGENT_INFO=<home>/.gnupg/S.gpg-agent:0:1
GTK2_MODULES=overlay-scrollbar
GTK_IM_MODULE=ibus
GTK_MODULES=gail:atk-bridge:unity-gtk-module
HOME=<home>
IM_CONFIG_PHASE=1
INSTANCE=
JOB=unity-settings-daemon
LANG=fr_FR.UTF-8
LANGUAGE=fr_FR
LOGNAME=<user>
MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PWD=<home>
QT4_IM_MODULE=xim
QT_ACCESSIBILITY=1
QT_IM_MODULE=ibus
QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
QT_QPA_PLATFORMTHEME=appmenu-qt5
SESSION=ubuntu
SESSIONTYPE=gnome-session
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/1987,unix/<hostname>:/tmp/.ICE-unix/1987
SHELL=/bin/bash
SHLVL=0
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TZ=:/etc/localtime
UPSTART_EVENTS=xsession started
UPSTART_INSTANCE=
UPSTART_JOB=unity7
UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1771
USER=<user>
XAUTHORITY=<home>/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg
XDG_CURRENT_DESKTOP=Unity
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/<user>
XDG_MENU_PREFIX=gnome-
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_DESKTOP=ubuntu
XDG_SESSION_ID=c2
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SESSION_TYPE=x11
XDG_VTNR=7
XMODIFIERS=@im=ibus



------------------------------------------------------------------------------
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
|  
Report Content as Inappropriate

[Gambas Bug Tracker] Bug #1129: lybrary extern return illegal instruction

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

Philippe BIENVAULT added an attachment:

factorielle.tar.xz



------------------------------------------------------------------------------
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
|  
Report Content as Inappropriate

Re: [Gambas Bug Tracker] Bug #1129: lybrary extern return illegal instruction

Jussi Lahtinen
In reply to this post by bugtracker
How is the function called in C?


Jussi

On Thu, Jul 27, 2017 at 9:18 AM, <[hidden email]> wrote:

> http://gambaswiki.org/bugtracker/edit?object=BUG.1129&from=L21haW4-
>
> Philippe BIENVAULT reported a new bug.
>
> Summary
> -------
>
> lybrary extern return illegal instruction
>
> Type             : Bug
> Priority         : Medium
> Gambas version   : 3.9
> Product          : Unknown
>
>
> Description
> -----------
>
> Private Extern factorielle(toto As Integer) As Integer In "libfact"
>
>
> Public Sub Main()
>
>   Dim aVal As Integer
>
>   aVal = factorielle(12) ' -> return illegal instruction
>
>
> End
>
>
> System information
> ------------------
>
> [System]
> Gambas=3.9.2
> OperatingSystem=Linux
> Kernel=4.4.0-71-generic
> Architecture=x86_64
> Distribution=Ubuntu 16.04.2 LTS
> Desktop=UNITY
> Theme=Gtk
> Language=fr_FR.UTF-8
> Memory=3624M
>
> [Libraries]
> Cairo=libcairo.so.2.11400.6
> Curl=libcurl.so.4.4.0
> DBus=libdbus-1.so.3.14.6
> 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.0.0
> 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]
> CLUTTER_IM_MODULE=xim
> COMPIZ_BIN_PATH=/usr/bin/
> COMPIZ_CONFIG_PROFILE=ubuntu
> DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-1SjanrYhNB
> DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
> DESKTOP_SESSION=ubuntu
> DISPLAY=:0
> GB_GUI=gb.qt4
> GDMSESSION=ubuntu
> GDM_LANG=fr_FR
> GIO_LAUNCHED_DESKTOP_FILE=<home>/.local/share/applications/gambas3.desktop
> GIO_LAUNCHED_DESKTOP_FILE_PID=11132
> GNOME_DESKTOP_SESSION_ID=this-is-deprecated
> GNOME_KEYRING_CONTROL=
> GNOME_KEYRING_PID=
> GPG_AGENT_INFO=<home>/.gnupg/S.gpg-agent:0:1
> GTK2_MODULES=overlay-scrollbar
> GTK_IM_MODULE=ibus
> GTK_MODULES=gail:atk-bridge:unity-gtk-module
> HOME=<home>
> IM_CONFIG_PHASE=1
> INSTANCE=
> JOB=unity-settings-daemon
> LANG=fr_FR.UTF-8
> LANGUAGE=fr_FR
> LOGNAME=<user>
> MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/
> sbin:/bin:/usr/games:/usr/local/games:/snap/bin
> PWD=<home>
> QT4_IM_MODULE=xim
> QT_ACCESSIBILITY=1
> QT_IM_MODULE=ibus
> QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
> QT_QPA_PLATFORMTHEME=appmenu-qt5
> SESSION=ubuntu
> SESSIONTYPE=gnome-session
> SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/
> 1987,unix/<hostname>:/tmp/.ICE-unix/1987
> SHELL=/bin/bash
> SHLVL=0
> SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
> TZ=:/etc/localtime
> UPSTART_EVENTS=xsession started
> UPSTART_INSTANCE=
> UPSTART_JOB=unity7
> UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1771
> USER=<user>
> XAUTHORITY=<home>/.Xauthority
> XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg
> XDG_CURRENT_DESKTOP=Unity
> XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/
> local/share/:/usr/share/:/var/lib/snapd/desktop
> XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/<user>
> XDG_MENU_PREFIX=gnome-
> XDG_RUNTIME_DIR=/run/user/1000
> XDG_SEAT=seat0
> XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
> XDG_SESSION_DESKTOP=ubuntu
> XDG_SESSION_ID=c2
> XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
> XDG_SESSION_TYPE=x11
> XDG_VTNR=7
> XMODIFIERS=@im=ibus
>
>
>
> ------------------------------------------------------------
> ------------------
> 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
>
------------------------------------------------------------------------------
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
Loading...