> You would help by using "gdb" to get the stack backtrace of
> the crash.

Thats probably a better start. Attached is result from gdb running
"libtest2"...

> Or better using "valgrind" to get more details.

I have no experience with that but will install and read up on it later if
needed, let me know...

/CJ

root@VB-Xubuntu-1404:/home/christer/Documents/Gambas 3/Projects/libtest2# gdb 
gbx3
GNU gdb (Ubuntu 7.7-0ubuntu3.1) 7.7
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from gbx3...done.
(gdb) run
Starting program: /usr/bin/gbx3 
Warning: couldn't activate thread debugging using libthread_db: Cannot find new 
threads: generic error
warning: File "/lib/i386-linux-gnu/libthread_db-1.0.so" auto-loading has been 
declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
        add-auto-load-safe-path /lib/i386-linux-gnu/libthread_db-1.0.so
line to your configuration file "/root/.gdbinit".
To completely disable this security protection add
        set auto-load safe-path /
line to your configuration file "/root/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
        info "(gdb)Auto-loading safe path"
warning: Unable to find libthread_db matching inferior's thread library, thread 
debugging will not be available.
9

Program received signal SIGSEGV, Segmentation fault.
0xb5e868cb in P$TEST_LIBVERSION$$TYPE_VERSION () from /usr/local/lib/libtest.so
(gdb) bt
#0  0xb5e868cb in P$TEST_LIBVERSION$$TYPE_VERSION () from 
/usr/local/lib/libtest.so
#1  0xb7dc63c6 in ffi_call_SYSV () from /usr/lib/i386-linux-gnu/libffi.so.6
#2  0xb7dc614b in ffi_call () from /usr/lib/i386-linux-gnu/libffi.so.6
#3  0x08077db3 in EXTERN_call () at gbx_extern.c:390
#4  0x0807e47c in EXEC_loop () at gbx_exec_loop.c:1221
#5  0x0805114c in EXEC_function_loop () at gbx_exec.c:931
#6  0x0805179c in EXEC_function_real () at gbx_exec.c:895
#7  0x08052444 in EXEC_public_desc (class=0x8117714, object=0x819e57c, 
desc=0x819d53c, nparam=0) at gbx_exec.c:1616
#8  0x08065cae in raise_event (observer=observer@entry=0x819e57c, 
object=object@entry=0x819e57c, func_id=153, 
    func_id@entry=154, nparam=0) at gbx_api.c:893
#9  0x08067761 in GB_Raise (object=0x819e57c, event_id=21, nparam=0) at 
gbx_api.c:1029
#10 0xb721d2ef in gb_raise_window_Open (sender=0x819e610) at CWindow.cpp:70
#11 0xb71fc775 in gControl::emit (this=0x819e610, signal=0xb721d2bc 
<gb_raise_window_Open(gMainWindow*)>)
    at gcontrol.cpp:1910
#12 0xb720b8ee in gMainWindow::emitOpen (this=0x819e610) at gmainwindow.cpp:541
#13 0xb720bd4c in gMainWindow::setVisible (this=<optimized out>, vl=<optimized 
out>) at gmainwindow.cpp:574
#14 0xb720a64e in show (this=0x819e610) at gcontrol.h:169
#15 gMainWindow::showActivate (this=0x819e610) at gmainwindow.cpp:812
#16 0xb721d907 in CWINDOW_show (_param=0x0, _object=<optimized out>) at 
CWindow.cpp:398
#17 CFORM_main (_object=0x0, _param=0xb7251000) at CWindow.cpp:754
#18 0x08051e87 in EXEC_native () at gbx_exec.c:1366
#19 0x08052404 in EXEC_public_desc (class=0x8117714, object=0x0, 
desc=0xb724f95c <CFormDesc+72>, nparam=0)
    at gbx_exec.c:1606
#20 0x0804b53e in main (argc=1, argv=0xbffff0a4) at gbx.c:416
(gdb)
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to