[Gambas-devel] Gambas 3.2.0 (arm): gbc3: Program received signal SIGSEGV, Segmentation fault.

Benoît Minisini gambas at ...1...
Sun Jul 22 20:53:39 CEST 2012


Le 20/07/2012 11:11, Silvan Calarco a écrit :
> 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
>

Please can you compile Gambas with no optimization and debugging 
information enabled? Otherwise the backtrace is almost useless.

To do that, instead of doing just "make", do that:

$ make "CFLAGS=-O0 -g -ggdb" "CXXFLAGS=-O0 -g -ggdb"

Regards,

-- 
Benoît Minisini




More information about the Devel mailing list