Debugging med GDB

Avdelningen för programmering, nätverk samt alternativa OS.
Post Reply
Novell
Posts: 8
Joined: 2003-01-16 9:51:47
Location: Kiruna
Contact:

Debugging med GDB

Post by Novell »

Hej!

Tänkte bara höra om någon råkat ut för detta fel i Tru64:

08:19 root@netsrv5:/php/php4 # gdb sapi/cli/php
inst emulated pid=303404 <gdb> va=0x1400f8280 pc=0x12005b708 inst=0x3be00000
GNU gdb 5.0-tru64-010710
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "alphaev56-dec-osf5.1"...
(gdb) r run-rests.php
Starting program: /php/php4/sapi/cli/php run-rests.php
Error accessing memory address 0x300420098f0: Invalid argument.
(gdb) r -h
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /php/php4/sapi/cli/php -h
Error accessing memory address 0x300420098f0: Invalid argument.
(gdb) q
A debugging session is active.
Do you still want to close the debugger?(y or n) y

Har testat med 3 olika vresioner av gdb, olika kompilartorer.
Testade även debugga MySQL och fick samma resultat.

Maskinen rapporterar inga minnesfel i uppstarten, och en av PHP utvecklarna
trodde inte det hade något med trasiga minnesmoduler att göra.

PHP fungerar bra om man inte kör genom gdb.
User avatar
IcePic
Hedersbit
Posts: 6061
Joined: 2002-03-08 16:09:38

Re: Debugging med GDB

Post by IcePic »

Novell wrote:Hej!

Tänkte bara höra om någon råkat ut för detta fel i Tru64:

08:19 root@netsrv5:/php/php4 # gdb sapi/cli/php
inst emulated pid=303404 <gdb> va=0x1400f8280 pc=0x12005b708 inst=0x3be00000
GNU gdb 5.0-tru64-010710
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "alphaev56-dec-osf5.1"...
(gdb) r run-rests.php
Starting program: /php/php4/sapi/cli/php run-rests.php
Error accessing memory address 0x300420098f0: Invalid argument.
(gdb) r -h
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /php/php4/sapi/cli/php -h
Error accessing memory address 0x300420098f0: Invalid argument.
(gdb) q
A debugging session is active.
Do you still want to close the debugger?(y or n) y

Har testat med 3 olika vresioner av gdb, olika kompilartorer.
Testade även debugga MySQL och fick samma resultat.

Maskinen rapporterar inga minnesfel i uppstarten, och en av PHP utvecklarna
trodde inte det hade något med trasiga minnesmoduler att göra.

PHP fungerar bra om man inte kör genom gdb.
En gissning vore att antingen php eller gdb är satt att fungera i 64-bitsmod
medans den andra kör i 32-bitars mod. gdb laddar säkert inte in programmet
på samma vis som systemets loader. (t.ex kan systemet säkert låtsas vara
32bitars för gamla programs skull, medans gdb kan vara ett rent 64-bits
program och därför ärver alla gdb-startade program den egenskapen)
Oh give me a clone, my very own clone,
with the Y chromosome changed to X!
And since she's my own, of my own flesh and bone,
she'll be thinking of nothing but sex!
Novell
Posts: 8
Joined: 2003-01-16 9:51:47
Location: Kiruna
Contact:

Post by Novell »

Nope.. Båda är native 64 bit.
Men jag avvaktar tills HP öppnar deras tekniska support forum
för Tru64 som borde komma nästa månad, Februari.
uname -a: OSF1 netsrv5 V5.1 732 alpha alpha | sizer -v: Compaq Tru64 UNIX V5.1 (Rev. 732); Wed Jan 8 02:23:17 CET 2003 | CPU: 3x5/250 CPU EV5 | RAM: 256MB
Post Reply