Author Topic: linux x86_64 PS Bugs  (Read 997 times)

RalphMW

  • Traveller
  • *
  • Posts: 32
  • ingame name: Golib Bahas
    • View Profile
    • Müller-Welt.net
linux x86_64 PS Bugs
« on: March 03, 2005, 10:46:54 pm »
Hi Folks,

Now that I have a running PSclient on my new machine (amd64) I want to report bugs to help increase development and stability on that platform.

But PS for linux doesn\'t have a dump-file like the windows version. So the question is: what infos do u need and how to gather it from my system?

client output, gdb backtrace, ... ???
And where to post, upload or mail these things to?

Machine:
amd64, nVidia GeForce FX5700,
Linux 2.6.8 x86_64 (SuSE 9.2), gcc 3.3.4, gdb 6.2.1,
cal3d, CS, cel cvs co 2005-02-26,
PS cvs update nearly daily.

Hope i can help,
Ralph.

GlaDiaC

  • Wayfarer
  • *
  • Posts: 2
    • View Profile
(No subject)
« Reply #1 on: March 03, 2005, 11:13:08 pm »
Compile cal3d, CS, cel and planeshift with --enable-debug. Run the psclient with

gdb psclient

if it crashs type

bt full

in the gdb console.

help in gdb console and the manpage explains all your needs.

GlaDiaC

  • Wayfarer
  • *
  • Posts: 2
    • View Profile
(No subject)
« Reply #2 on: March 03, 2005, 11:53:15 pm »
If you want a file, try this:

Code: [Select]
#!/bin/sh

export CRYSTAL=.
export CEL=.
export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH

GDB=gdb
PLANESHIFT=psclient

ARGS=$*
PID=$$

cat > .dbgfile.$PID << HERE
file $PLANESHIFT
set args $ARGS
run
bt full
cont
quit
HERE

$GDB  -silent < .dbgfile.$PID &> gdb_log.$PID

rm -f .dbgfile.$PID
echo \"Log written to: gdb_log.$PID\"


code is not tested yet ;)
« Last Edit: March 03, 2005, 11:53:31 pm by GlaDiaC »

Xordan

  • Crystal Space Developer
  • Forum Addict
  • *
  • Posts: 3845
  • For God and the Empire
    • View Profile
(No subject)
« Reply #3 on: March 04, 2005, 12:17:23 am »
The biggest problem is that no programmer dev has a 64-bit PC to debug on :)

Androgos

  • Guest
(No subject)
« Reply #4 on: March 04, 2005, 03:47:26 pm »
Quote
Originally posted by Xordan
The biggest problem is that no programmer dev has a 64-bit PC to debug on :)


I would gladly take good hand of yours :)

The dump files is more or less just an non-exact BT (non because it shows the exact code location in HEX).

Console and GDB backtrace would be fine