[Gambas-devel] Gambas 3.2.0 (arm): gbc3: Program received signal SIGSEGV, Segmentation fault.
Silvan Calarco
silvan.calarco at ...531...
Fri Jul 20 11:11:45 CEST 2012
Hi all.
I have a problem building gambas 3.2.0 on arm, gcc is 4.7.1, because gbc3
crashes here:
static void control_add_pos(short **tab_pos, short pos)
{
if (!(*tab_pos))
ARRAY_create(tab_pos);
> *((short *)ARRAY_add(tab_pos)) = pos;
}
Full backtrace follows. Do you have any hints on how this could be fixed?
Thanks.
Regards,
Silvan
---
[sdk at ...702... gb.settings]$ gdb --args /var/tmp/gambas3-root/usr/bin/gbc3 -ag -
r /var/tmp/gambas3-root/usr
GNU gdb (GDB) 7.4.1-1mamba (openmamba)
Copyright (C) 2012 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 "arm-openmamba-linux-gnueabi".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /var/tmp/gambas3-root/usr/bin/gbc3...done.
(gdb) r
Starting program: /var/tmp/gambas3-root/usr/bin/gbc3 -ag -r /var/tmp/gambas3-
root/usr
Program received signal SIGSEGV, Segmentation fault.
0x00020f04 in control_add_pos (tab_pos=0x393a6, tab_pos at ...703...=0x3ecec,
pos=<optimized out>)
at gbc_trans_ctrl.c:86
86 *((short *)ARRAY_add(tab_pos)) = pos;
(gdb) bt full
#0 0x00020f04 in control_add_pos (tab_pos=0x393a6, tab_pos at ...703...=0x3ecec,
pos=<optimized out>)
at gbc_trans_ctrl.c:86
array = 0x385bfff5
ptr = 0x0
old_count = <optimized out>
#1 0x00020f60 in control_add_current_pos () at gbc_trans_ctrl.c:92
No locals.
#2 0x00021020 in trans_else () at gbc_trans_ctrl.c:437
nobreak = <optimized out>
#3 0x00021278 in trans_if () at gbc_trans_ctrl.c:494
mode = <optimized out>
msg = 0x2c6c9 "OR IF"
#4 0x000217bc in trans_else_if () at gbc_trans_ctrl.c:542
No locals.
#5 TRANS_else () at gbc_trans_ctrl.c:568
No locals.
#6 0xbe9e014c in ?? ()
No symbol table info available.
#7 0xbe9e014c in ?? ()
No symbol table info available.
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)
--
mambaSoft di Calarco Silvan
Web: http://www.mambasoft.it
mambaSoft Store @ http://www.mambastore.it
openmamba GNU/Linux development @ http://www.openmamba.org
More information about the Devel
mailing list