[Gambas-user] Crash!

Jussi Lahtinen jussi.lahtinen at ...626...
Thu Jan 6 16:43:59 CET 2011


Hi!
I cannot really isolate my problem, but in this case it happens when loading
string data from file to object
(something like "someobject.sStr = Read #hFile As String").

Gambas 3 rev 3447 @ Ubuntu 10.10 64bit

$ gbc3 -agpmt
OK
$ gdb gbx3
GNU gdb (GDB) 7.2-ubuntu
Copyright (C) 2010 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 "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/bin/gbx3...done.
(gdb) set args -p
(gdb) run
Starting program: /usr/local/bin/gbx3 -p
[Thread debugging using libthread_db enabled]
[New Thread 0x7fffef2ba700 (LWP 3790)]
warning: unable to load Qt translation: en_GB.utf8

Program received signal SIGSEGV, Segmentation fault.
0x0000000000414b91 in SUBR_leave (nparam=2) at gbx_subr.c:42
42      BORROW(RP);
(gdb) bt
#0  0x0000000000414b91 in SUBR_leave (nparam=2) at gbx_subr.c:42
#1  0x0000000000430132 in EXEC_loop () at gbx_exec_loop.c:480
#2  0x0000000000409a75 in EXEC_function_loop () at gbx_exec.c:861
#3  0x000000000040a4c5 in EXEC_function_real () at gbx_exec.c:848
#4  0x00000000004227e5 in main (argc=1, argv=<value optimised out>)
    at gbx.c:362

(gdb) f 1
#1  0x0000000000430132 in EXEC_loop () at gbx_exec_loop.c:480
480      (*(EXEC_FUNC_CODE)SubrTable[(code >> 8) - 0x28])(code);


Also see attached valgrind log.

Jussi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: valgrind-memcheck.log
Type: text/x-log
Size: 4341 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20110106/8ea25ed8/attachment.bin>


More information about the User mailing list