Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2009-04

could not compile lazarus "make[2]: *** Killed"

13 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Benedikt Schindler

Hi,

i try to compile lazarus and i get a "make[2]: *** [lazarus] Killed". there is no more information about what error raised.

In dmesg i just get :
[495850.880000] select 1 (init), adj 0, size 61, to kill [495850.880000] select 8544 (dropbear), adj 0, size 109, to kill [495850.880000] select 9359 (ppcarm), adj 0, size 18768, to kill [495850.880000] send sigkill to 9359 (ppcarm), adj 0, size 18768

i compiled with this command: 'make clean all PP=ppcarm OPT="-dFPC_ARMEL -O- -dFPC_ABI_EABI" '
any ideas what it could be?

i don't need the hole ide. It would be enough if i could use ./lazbuild to compile projects. (or just: ppcarm)
is it enough to have "lcl/units/arm-linux" and
"lcl/units/arm-linux/gtk2" or do i need more units to compile gtk projects? it looks like these units are all compiled. (so do i need more? or should it be enough.)

thx
Beni

btw:

- yes i tried different versions of lazarus
- yes there is enough memory
- no hd is not full

---------------------------------------------
../tools/svn2revisioninc .. revision.inc
make --assume-new=lazarus.pp lazarus
grep: /etc/ld.so.conf: No such file or directory
make[2]: Entering directory `/media/mmcblk0p3/lazarus/ide' ppcarm -gl -dlclgtk2 -Fu../lcl/units/arm-linux
-Fu../lcl/units/arm-linux/gtk2
-Fu../components/codetools/units/arm-linux
-Fu../components/synedit/units/arm-linux -Fu../components/custom -Fu../components/mpaslex -Fu../ideintf/units/arm-linux -Fu../designer -Fu../debugger -Fu../debugger/frames -Fu../converter -Fu../packager -Fu../packager/frames -Fu../packager/units/arm-linux -Fu../units/arm-linux -Fuframes -Fu. -Fiinclude -Fiinclude/linux -Fi../images -FE.. -FU../units/arm-linux
-Fl/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2 -darm lazarus.pp Free Pascal Compiler version 2.3.1 [2009/04/07] for arm Copyright (c) 1993-2009 by Florian Klaempfl
Target OS: Linux for ARMEL
Compiling lazarus.pp
Compiling splash.pp
Compiling aboutfrm.pas
Compiling lazconf.pp
Assembling lazconf
Compiling lazarusidestrconsts.pas
Writing Resource String Table file: lazarusidestrconsts.rst Assembling lazarusidestrconsts
make[2]: *** [lazarus] Killed
make[2]: Leaving directory `/media/mmcblk0p3/lazarus/ide' make[1]: *** [ide] Error 2
make[1]: Leaving directory `/media/mmcblk0p3/lazarus/ide' make: *** [ide] Error 2

Reply by email

Benedikt Schindler
to Benedikt Schindler

i now tried to compile a project with the "lcl/units/arm-linux/gtk2" units. compiling worked without errors. when i try to start the programm i get an error.
maybe this and the "compiling lazarus error" is the same problem?

[FORMS.PP] ExceptionOccurred
Sender=EAccessViolation
Exception=Access violation
Stack trace:
$4052D860
$00158AAC
$00039178
$000388B4
$00031A1C
$00019A8C
TApplication.HandleException Access violation
Stack trace:
$4052D860
$00158AAC
$00039178
$000388B4
$00031A1C
$00019A8C
[FORMS.PP] ExceptionOccurred

Show quoted text 68 lines
Hi, i try to compile lazarus and i get a "make[2]: *** [lazarus] Killed". there is no more information about what error raised. In dmesg i just get : [495850.880000] select 1 (init), adj 0, size 61, to kill [495850.880000] select 8544 (dropbear), adj 0, size 109, to kill [495850.880000] select 9359 (ppcarm), adj 0, size 18768, to kill [495850.880000] send sigkill to 9359 (ppcarm), adj 0, size 18768 i compiled with this command: 'make clean all PP=ppcarm OPT="-dFPC_ARMEL -O- -dFPC_ABI_EABI" ' any ideas what it could be? i don't need the hole ide. It would be enough if i could use ./lazbuild to compile projects. (or just: ppcarm) is it enough to have "lcl/units/arm-linux" and "lcl/units/arm-linux/gtk2" or do i need more units to compile gtk projects? it looks like these units are all compiled. (so do i need more? or should it be enough.) thx Beni btw: - yes i tried different versions of lazarus - yes there is enough memory - no hd is not full --------------------------------------------- ../tools/svn2revisioninc .. revision.inc make --assume-new=lazarus.pp lazarus grep: /etc/ld.so.conf: No such file or directory make[2]: Entering directory `/media/mmcblk0p3/lazarus/ide' ppcarm -gl -dlclgtk2 -Fu../lcl/units/arm-linux -Fu../lcl/units/arm-linux/gtk2 -Fu../components/codetools/units/arm-linux -Fu../components/synedit/units/arm-linux -Fu../components/custom -Fu../components/mpaslex -Fu../ideintf/units/arm-linux -Fu../designer -Fu../debugger -Fu../debugger/frames -Fu../converter -Fu../packager -Fu../packager/frames -Fu../packager/units/arm-linux -Fu../units/arm-linux -Fuframes -Fu. -Fiinclude -Fiinclude/linux -Fi../images -FE.. -FU../units/arm-linux -Fl/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2 -darm lazarus.pp Free Pascal Compiler version 2.3.1 [2009/04/07] for arm Copyright (c) 1993-2009 by Florian Klaempfl Target OS: Linux for ARMEL Compiling lazarus.pp Compiling splash.pp Compiling aboutfrm.pas Compiling lazconf.pp Assembling lazconf Compiling lazarusidestrconsts.pas Writing Resource String Table file: lazarusidestrconsts.rst Assembling lazarusidestrconsts make[2]: *** [lazarus] Killed make[2]: Leaving directory `/media/mmcblk0p3/lazarus/ide' make[1]: *** [ide] Error 2 make[1]: Leaving directory `/media/mmcblk0p3/lazarus/ide' make: *** [ide] Error 2 _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email

Henry Vermaak
to Benedikt Schindler: i try to compile lazarus and i get a "make[2]: *** [lazarus] Killed". there is no more…

2009/4/15 Benedikt Schindler :

- yes there is enough memory

how much have you got? i got a crash the other day trying to make another locale by running localedef, and that was on 64MB of memory. had to make a swapfile for it to work.

try and compile your projects manually, without compiling the lcl first. something like this (you'll have to change the options):

#!/bin/bash

LAZ=/home/hcv/lazarus
LCL=$LAZ/lcl
UNIT_OPTS="-dlcl -dgtk2 -dlclgtk2 \
-Fu$LCL -Fu$LCL/interfaces/gtk2 -Fu$LCL/interfaces/gtk -Fu$LCL/widgetset \ -Fi$LCL/include -Fi$LCL/interfaces/gtk -Fi$LCL/interfaces/gtk2 -Fi. \ -FUbuild"

/usr/lib/fpc/2.3.1/ppc386 -B -O2 -CX -XX -Xs $UNIT_OPTS blank.lpr

and you should probably use -gl for the backtrace to be of any use.

henry

Reply by email

Paul Ishenin
to Benedikt Schindler: i now tried to compile a project with the "lcl/units/arm-linux/gtk2" units. compiling…
Benedikt Schindler wrote 25 lines
i now tried to compile a project with the "lcl/units/arm-linux/gtk2" units. compiling worked without errors. when i try to start the programm i get an error. maybe this and the "compiling lazarus error" is the same problem? [FORMS.PP] ExceptionOccurred Sender=EAccessViolation Exception=Access violation Stack trace: $4052D860 $00158AAC $00039178 $000388B4 $00031A1C $00019A8C TApplication.HandleException Access violation Stack trace: $4052D860 $00158AAC $00039178 $000388B4 $00031A1C $00019A8C [FORMS.PP] ExceptionOccurred

Try to apply patch from here: http://bugs.freepascal.org/view.php?id=13323

Best regards,
Paul Ishenin.

Reply by email

Benedikt Schindler
to Henry Vermaak: 2009/4/15 Benedikt Schindler : how much have you got? i got a crash the other day trying…

i got 128MB of RAM and i have a swap file of 250MB.

compiling the projects manually works fine.
no error from the compiler.

That would be all i need, but still the compiled programm don't run. I will now try the patch Paul Ishenin told me.

Beni

Show quoted text 31 lines
2009/4/15 Benedikt Schindler : > - yes there is enough memory > how much have you got? i got a crash the other day trying to make another locale by running localedef, and that was on 64MB of memory. had to make a swapfile for it to work. try and compile your projects manually, without compiling the lcl first. something like this (you'll have to change the options): #!/bin/bash LAZ=/home/hcv/lazarus LCL=$LAZ/lcl UNIT_OPTS="-dlcl -dgtk2 -dlclgtk2 \ -Fu$LCL -Fu$LCL/interfaces/gtk2 -Fu$LCL/interfaces/gtk -Fu$LCL/widgetset \ -Fi$LCL/include -Fi$LCL/interfaces/gtk -Fi$LCL/interfaces/gtk2 -Fi. \ -FUbuild" /usr/lib/fpc/2.3.1/ppc386 -B -O2 -CX -XX -Xs $UNIT_OPTS blank.lpr and you should probably use -gl for the backtrace to be of any use. henry _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email

Henry Vermaak
to Benedikt Schindler

2009/4/15 Benedikt Schindler :

Show quoted text 7 lines
i got 128MB of RAM and i have a swap file of 250MB. compiling the projects manually works fine. no error from the compiler. That would be all i need, but still the compiled programm don't run. I will now try the patch Paul Ishenin told me.

can you get a backtrace if you compile with -gl?

henry

Reply by email

Benedikt Schindler
to Henry Vermaak

Backtrace of a programm with just an empty window. programm was compiled with "-O- -dFPC_ARMEL -dFPC_ABI_EABI -gl"

--------------------------------------------------------

Program received signal SIGILL, Illegal instruction. 0x0002057c in SYSTEM_FPC_CPUCODEINIT ()
(gdb) bt
#0 0x0002057c in SYSTEM_FPC_CPUCODEINIT ()
#1 0x000390ac in SYSTEM_init ()
#2 0x00031a50 in fpc_initializeunits ()
#3 0x00019a8c in main () at om_test_suite.lpr:13
(gdb) cont
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
Program received signal SIGSEGV, Segmentation fault. 0x4052d860 in g_object_unref () from /usr/lib/libgobject-2.0.so.0 (gdb) bt
#0 0x4052d860 in g_object_unref () from /usr/lib/libgobject-2.0.so.0 #1 0x0015acb0 in GTK2INT_TGTK2WIDGETSET_$__DESTROY () #2 0x0015ac14 in GTK2INT_TGTK2WIDGETSET_$__CREATE$$TGTK2WIDGETSET () #3 0x0003b2e0 in FORMS_CREATEWIDGETSET$TWIDGETSETCLASS () #4 0x0003aa1c in INTERFACES_init ()
#5 0x00031a50 in fpc_initializeunits ()
#6 0x00019a8c in main () at om_test_suite.lpr:13
(gdb) cont
[FORMS.PP] ExceptionOccurred
Sender=EAccessViolation
Exception=Access violation
Stack trace:
$4052D860
$0015AC14
$0003B2E0
$0003AA1C
$00031A50
$00019A8C
TApplication.HandleException Access violation
Stack trace:
$4052D860
$0015AC14
$0003B2E0
$0003AA1C
$00031A50
$00019A8C
Program received signal SIGSEGV, Segmentation fault. 0x00098948 in LCLINTF_GETCAPTURE$$HWND ()
(gdb) bt
#0 0x00098948 in LCLINTF_GETCAPTURE$$HWND ()
#1 0x00049ed8 in FORMS_TAPPLICATION_$__HANDLEEXCEPTION$TOBJECT () #2 0x0003ac8c in
FORMS_EXCEPTIONOCCURRED$TOBJECT$POINTER$LONGINT$PPOINTER () #3 0x00030080 in SYSTEM_DOUNHANDLEDEXCEPTION ()
#4 0x00030170 in fpc_raiseexception ()
#5 0x000791b0 in SYSUTILS_RUNERRORTOEXCEPT$LONGINT$POINTER$POINTER () #6 0x00031f70 in SYSTEM_HANDLEERRORADDRFRAME$LONGINT$POINTER$POINTER () #7 0x00038c2c in SYSTEM_SIGNALTORUNERROR$LONGINT$PSIGINFO$PUCONTEXT () #8 0x0001faf4 in SYSTEM_LINUX_RESTORE ()
Backtrace stopped: frame did not save the PC
(gdb) cont
Continuing.
[FORMS.PP] ExceptionOccurred
Program exited normally.

Show quoted text 10 lines
> l now try the patch Paul Ishenin told me. > can you get a backtrace if you compile with -gl? henry _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email

Benedikt Schindler
to Benedikt Schindler

i recompiled the hole fpc with the option "-gl" and the patch Paul Ishenin mentioned.
there is still a problem with programms, that wonna use windows. console prorgamms just work fine.

if i try to run a lazarus programm i get this backtrace.

-----------------------------------------------
(gdb) run gdb om_test_suite
Starting program: /opt/test/om_test_suite gdb om_test_suite

Program received signal SIGILL, Illegal instruction. FPC_CPUCODEINIT () at /media/mmcblk0p3/fpc/rtl/arm/arm.inc:596 596 ldrd r0,[r0]
Current language: auto; currently pascal
(gdb) bt
#0 FPC_CPUCODEINIT () at /media/mmcblk0p3/fpc/rtl/arm/arm.inc:596 #1 0x00038f30 in SYSTEM_init () at system.pp:325
#2 0x00031a50 in fpc_initializeunits () at
/media/mmcblk0p3/fpc/rtl/inc/system.inc:766
#3 0x00019a8c in main () at om_test_suite.lpr:13
(gdb) cont
Continuing.

Program received signal SIGSEGV, Segmentation fault. 0x49534e40 in ?? ()
(gdb) cont
Continuing.

Program received signal SIGSEGV, Segmentation fault. 0x4052d860 in g_object_unref () from /usr/lib/libgobject-2.0.so.0 (gdb) bt
#0 0x4052d860 in g_object_unref () from /usr/lib/libgobject-2.0.so.0 #1 0x0015ada0 in TGTK2WIDGETSET__DESTROY (vmt=0xffffffff, this=0x40b8e020) at
/media/mmcblk0p3/lazarus/lcl/interfaces/gtk2/gtk2widgetset.inc:551 #2 0x0015ad04 in TGTK2WIDGETSET__CREATE (vmt=0x205fc8, this=0x40b8e020) at /media/mmcblk0p3/lazarus/lcl/interfaces/gtk2/gtk2widgetset.inc:547 #3 0x0003b164 in CREATEWIDGETSET (AWIDGETSETCLASS=<incomplete type>) at /media/mmcblk0p3/lazarus/lcl/forms.pp:1706
#4 0x0003a8a0 in INTERFACES_init () at
/media/mmcblk0p3/lazarus/lcl/interfaces/gtk2/interfaces.pas:39 #5 0x00031a50 in fpc_initializeunits () at
/media/mmcblk0p3/fpc/rtl/inc/system.inc:766
#6 0x00019a8c in main () at om_test_suite.lpr:13
(gdb) cont
Continuing.
[FORMS.PP] ExceptionOccurred
Sender=EAccessViolation
Exception=Access violation
Stack trace:
$4052D860
$0015AD04
$0003B164
$0003A8A0
$00031A50
$00019A8C
TApplication.HandleException Access violation
Stack trace:
$4052D860
$0015AD04
$0003B164
$0003A8A0
$00031A50
$00019A8C

Program received signal SIGSEGV, Segmentation fault. 0x000987f8 in GETCAPTURE () at
/media/mmcblk0p3/lazarus/lcl/include/winapi.inc:315 315 Result := WidgetSet.GetCapture;
(gdb) bt
#0 0x000987f8 in GETCAPTURE () at
/media/mmcblk0p3/lazarus/lcl/include/winapi.inc:315 #1 0x00049d5c in TAPPLICATION__HANDLEEXCEPTION (SENDER=0x40b663e0, this=0x40b7e020) at
/media/mmcblk0p3/lazarus/lcl/include/application.inc:1059 #2 0x0003ab10 in EXCEPTIONOCCURRED (SENDER=0x40b663e0, ADDR=0x4052d860, FRAMECOUNT=5, FRAMES=0x40b6e340) at
/media/mmcblk0p3/lazarus/lcl/forms.pp:1531
#3 0x00030080 in DOUNHANDLEDEXCEPTION () at
/media/mmcblk0p3/fpc/rtl/inc/except.inc:172
#4 0x00030170 in fpc_raiseexception (OBJ=0x40b663e0, ANADDR=0x4052d860, AFRAME=0x3a1cb18) at /media/mmcblk0p3/fpc/rtl/inc/except.inc:199 #5 0x00079048 in RUNERRORTOEXCEPT (ERRNO=216, ADDRESS=0x4052d860, FRAME=0x3a1cb18) at
/media/mmcblk0p3/fpc/rtl/objpas/sysutils/sysutils.inc:338 #6 0x00031f70 in HANDLEERRORADDRFRAME (ERRNO=216, ADDR=0x4052d860, FRAME=0x3a1cb18) at /media/mmcblk0p3/fpc/rtl/inc/system.inc:910 #7 0x00038ab0 in SIGNALTORUNERROR (SIG=11, SIGCONTEXT=0x3a1c750, UCONTEXT=0x3a1c7d0) at ./arm/sighnd.inc:48
#8 0x0001faf4 in LINUX_RESTORE () at ossysc.inc:248 Backtrace stopped: frame did not save the PC
(gdb) cont
Continuing.
[FORMS.PP] ExceptionOccurred

Program exited normally.

Reply by email

Henry Vermaak
to Benedikt Schindler

2009/4/17 Benedikt Schindler :

Show quoted text 16 lines
i recompiled the hole fpc with the option "-gl" and the patch Paul Ishenin mentioned. there is still a problem with programms, that wonna use windows. console prorgamms just work fine. if i try to run a lazarus programm i get this backtrace. ----------------------------------------------- (gdb) run gdb om_test_suite Starting program: /opt/test/om_test_suite gdb om_test_suite Program received signal SIGILL, Illegal instruction. FPC_CPUCODEINIT () at /media/mmcblk0p3/fpc/rtl/arm/arm.inc:596 596         ldrd r0,[r0]

hmm, this looks like the wrong syntax for ldrd, maybe it should be "ldr"?

henry

Reply by email

Vincent Snijders
to Henry Vermaak
Henry Vermaak wrote 20 lines
2009/4/17 Benedikt Schindler : > i recompiled the hole fpc with the option "-gl" and the patch Paul Ishenin > mentioned. > there is still a problem with programms, that wonna use windows. > console prorgamms just work fine. > > if i try to run a lazarus programm i get this backtrace. > > > > ----------------------------------------------- > (gdb) run gdb om_test_suite > Starting program: /opt/test/om_test_suite gdb om_test_suite > > Program received signal SIGILL, Illegal instruction. > FPC_CPUCODEINIT () at /media/mmcblk0p3/fpc/rtl/arm/arm.inc:596 > 596 ldrd r0,[r0] hmm, this looks like the wrong syntax for ldrd, maybe it should be "ldr"?

I don't know the arm instruction set, but this could be a deliberate illegal instruction to test what type of arm processor is used. If the processor doesn't issue an SIGILL, then the Move_pld procedure is used to implement system.move.

Vincent

Reply by email

Vincent Snijders
to Benedikt Schindler: i recompiled the hole fpc with the option "-gl" and the patch Paul Ishenin mentioned.…
Benedikt Schindler wrote 30 lines
i recompiled the hole fpc with the option "-gl" and the patch Paul Ishenin mentioned. there is still a problem with programms, that wonna use windows. console prorgamms just work fine. if i try to run a lazarus programm i get this backtrace. Program received signal SIGSEGV, Segmentation fault. 0x49534e40 in ?? () (gdb) cont Continuing. Program received signal SIGSEGV, Segmentation fault. 0x4052d860 in g_object_unref () from /usr/lib/libgobject-2.0.so.0 (gdb) bt #0 0x4052d860 in g_object_unref () from /usr/lib/libgobject-2.0.so.0 #1 0x0015ada0 in TGTK2WIDGETSET__DESTROY (vmt=0xffffffff, this=0x40b8e020) at /media/mmcblk0p3/lazarus/lcl/interfaces/gtk2/gtk2widgetset.inc:551 #2 0x0015ad04 in TGTK2WIDGETSET__CREATE (vmt=0x205fc8, this=0x40b8e020) at /media/mmcblk0p3/lazarus/lcl/interfaces/gtk2/gtk2widgetset.inc:547 #3 0x0003b164 in CREATEWIDGETSET (AWIDGETSETCLASS=<incomplete type>) at /media/mmcblk0p3/lazarus/lcl/forms.pp:1706 #4 0x0003a8a0 in INTERFACES_init () at /media/mmcblk0p3/lazarus/lcl/interfaces/gtk2/interfaces.pas:39 #5 0x00031a50 in fpc_initializeunits () at /media/mmcblk0p3/fpc/rtl/inc/system.inc:766 #6 0x00019a8c in main () at om_test_suite.lpr:13

What I think that happens is:
The constructor TGTK2WIDGETSET.CREATE fails somehow, unclear from this back trace, but probably before or in im_context:=gtk_im_multicontext_new;

The destructor is called which tries to cleanup im_context, which fails, because im_context has not been intialized correctly.

This particular crash may be prevented by using this destructor:
destructor TGtk2WidgetSet.Destroy;
begin
   if im_contextnil then
     g_object_unref(im_context);
   im_context:=nil;
   im_context_widget:=nil;
   inherited Destroy;
end;

Nevertheless, it doesn't solve the exception in the constructor on TGtk2Widget.

Vincent

Reply by email

Henry Vermaak
to Vincent Snijders: I don't know the arm instruction set, but this could be a deliberate illegal instruction…

2009/4/17 Vincent Snijders :

Show quoted text 11 lines
Henry Vermaak schreef: >> 596         ldrd r0,[r0] > > hmm, this looks like the wrong syntax for ldrd, maybe it should be "ldr"? > I don't know the arm instruction set, but this could be a deliberate illegal instruction to test what type of arm processor is used. If the processor doesn't issue an SIGILL, then the Move_pld procedure is used to implement system.move.

yeah, i think you're right. the in_edsp_test and cpu_has_edsp variables are used in the signal handler.

henry

Reply by email

Benedikt Schindler
to Vincent Snijders: What I think that happens is: The constructor TGTK2WIDGETSET.CREATE fails somehow,…

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

Reply by email