[fpc-pascal] could not compile lazarus "make[2]: *** [lazarus] Killed"
Benedikt Schindler
BeniSchindler at gmx.de
Fri Apr 17 17:40:54 CEST 2009
i now use this destructor:
----------------------------------------------
destructor TGtk2WidgetSet.Destroy;
begin
if assigned(im_context) then
g_object_unref(im_context);
im_context:=nil;
im_context_widget:=nil;
inherited Destroy;
end;
----------------------------------------------
now there is no error for the destructor anymore.
But in the create there is still something bad. My error message is now:
GLib-WARNING (recursed) **: gmessages.c:387: could not find handler with
id `0' for domain ""
The problem raises somewhere in the constructor TGtkWidgetSet.Create.
The create constrcutor calls -> "PassCmdLineOptions; "
PassCmdLineOptions calls -> "gtk_init(@argc, @argv)"
gtk_init(@argc, @argv) raises the error.
backtrace dos'nt give very much
-----------------------------------------------
TGtkWidgetSet.Create - pass cmd line args (this is a debug output from me)
Program received signal SIGSEGV, Segmentation fault.
0x49534e40 in ?? ()
(gdb) bt
#0 0x49534e40 in ?? ()
#1 0x49534e40 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) cont
Continuing.
(process:3040): GLib-WARNING (recursed) **: gmessages.c:387: could not
find handler with id `0' for domain ""
aborting...
Program received signal SIGABRT, Aborted.
0x406d8df4 in raise () from /lib/libc.so.6
(gdb) bt
#0 0x406d8df4 in raise () from /lib/libc.so.6
#1 0x406da3fc in abort () from /lib/libc.so.6
Backtrace stopped: frame did not save the PC
-------------------------------------------------
when i try to access argc it gives me the value 1
when i try to access argv i have some problems but it thems it is
something like:
"0:FVfs~ d4 @ PuTTYX
v41./om_test_suiteTSLIB_TSDEVICE=/dev/input/touchscreen0USER"
if try to string(argv) i get this error: (what is the right way to
access an PPChar ?)
------------------------------------------
Program received signal SIGSEGV, Segmentation fault.
MOVE_BLENDED (SOURCE=Cannot access memory at address 0x3c46000
) at /media/mmcblk0p3/fpc/rtl/arm/arm.inc:282
282 ldr r3,[r0],#4
PuTTY(gdb) bt
#0 MOVE_BLENDED (SOURCE=Cannot access memory at address 0x3c46000
) at /media/mmcblk0p3/fpc/rtl/arm/arm.inc:282
#1 0x00036de8 in FPC_WRITEBUFFER (F=
{HANDLE = 1, MODE = 55218, RECSIZE = 256, _PRIVATE = #0 <repeats 12
times>, '▒P#'#0'▒d'#3#0'▒c'#3#0'▒c'#3#0#148'b'#3, USERDATA = #0 <repeats
15 times>, NAME = #0 <repeats 255 times>}, B=void,
LEN=63200244) at /media/mmcblk0p3/fpc/rtl/inc/text.inc:470
#2 0x00037370 in fpc_write_text_ansistr (LEN=0, F=
{HANDLE = 1, MODE = 55218, RECSIZE = 256, _PRIVATE = #0 <repeats 12
times>, '▒P#'#0'▒d'#3#0'▒c'#3#0'▒c'#3#0#148'b'#3, USERDATA = #0 <repeats
15 times>, NAME = #0 <repeats 255 times>},
S=0x3c45df4 '▒^▒'#3'▒^▒'#3) at /media/mmcblk0p3/fpc/rtl/inc/text.inc:612
#3 0x00173380 in TGTKWIDGETSET__CREATE (vmt=0x0, this=0x40b8e020) at
/media/mmcblk0p3/lazarus/lcl/interfaces/gtk/gtkwidgetset.inc:229
#4 0x0015ae20 in TGTK2WIDGETSET__CREATE (vmt=0x2062e0, this=0x40b8e020)
at /media/mmcblk0p3/lazarus/lcl/interfaces/gtk2/gtk2widgetset.inc:543
#5 0x0003b2f0 in CREATEWIDGETSET (AWIDGETSETCLASS=<incomplete type>) at
/media/mmcblk0p3/lazarus/lcl/forms.pp:1706
#6 0x0003aa2c in INTERFACES_init () at
/media/mmcblk0p3/lazarus/lcl/interfaces/gtk2/interfaces.pas:39
#7 0x00031a50 in fpc_initializeunits () at
/media/mmcblk0p3/fpc/rtl/inc/system.inc:766
#8 0x00019a8c in main () at om_test_suite.lpr:13
More information about the fpc-pascal
mailing list