PDA

View Full Version : core dump on a P4, freebsd 4.7



mapcar
12-11-2002, 07:36 AM
I'm unable to run the client on a Pentium 4 box running FreeBSD. The client runs fine on all the other machines I've tried, but they're all AMD (either Athlons or K6s) or Pentium IIIs. All the systems are running the same version of FreeBSD (4.7 + a few updates), so I'm not sure what's going on.

I've made a copy of my work directory at http://web.nilpotent.org/sb.tar.bz2. It contains a copy of the 1.0.2 sb client, my sclient.conf file, the core dump and the output of ktrace (use "kdump > somefilename" in that directory).

I don't get a useful backtrace in gdb:



% gdb -q sb sb.core
(no debugging symbols found)...Core was generated by `sb'.
Program terminated with signal 10, Bus error.
#0 0x81ea47f in ??00B0 ()
(gdb) bt
#0 0x81ea47f in ??00B0 ()
#1 0x0 in ?? ()
(gdb) quit
%

Alien88
12-11-2002, 08:15 AM
Originally posted by mapcar
I'm unable to run the client on a Pentium 4 box running FreeBSD. The client runs fine on all the other machines I've tried, but they're all AMD (either Athlons or K6s) or Pentium IIIs. All the systems are running the same version of FreeBSD (4.7 + a few updates), so I'm not sure what's going on.

I've made a copy of my work directory at http://web.nilpotent.org/sb.tar.bz2. It contains a copy of the 1.0.2 sb client, my sclient.conf file, the core dump and the output of ktrace (use "kdump > somefilename" in that directory).

I don't get a useful backtrace in gdb:



% gdb -q sb sb.core
(no debugging symbols found)...Core was generated by `sb'.
Program terminated with signal 10, Bus error.
#0 0x81ea47f in ??00B0 ()
(gdb) bt
#0 0x81ea47f in ??00B0 ()
#1 0x0 in ?? ()
(gdb) quit
%


Can you try http://linux.redbird.com/~alien88/sbust097-FreeBSD.tar.gz and tell me if it still crashes?

I'm running it on a 4.7 box right now with no problems..

jjjjL
12-11-2002, 08:23 AM
thanks for the help. i downloaded your file and i'll look at the core in a couple days when i have time.

the two known workarounds for seg faulting in the non-win32 clients are these:

1) change the host from sb.pns.net --> 216.163.34.105

sadly, this works because even though the binary is statically compiled, if you have certain versions of glib it crashes the client when it does DNS name resolutions using gethostbyname(). this mainly effects people with current, stable builds of linux and FBSD. the newer, unstable builds have fixed this and the older versions didn't have this "feature".

2) use SB version 0.9.7

if the above fix doesn't work, i've heard that sometimes downgrading to the old client fixes it. since teams are done though the site now, your work will still count for teams so the only downside is the v0.9.7 client is slower and doesn't send intermediate progress reports... but stable is better than faster.

here are links to the old versions:

http://linux.redbird.com/~alien88/sbust097-FreeBSD.tar.gz
http://linux.redbird.com/~alien88/sbust097-Linux.tar.gz


i plan to make a huge upgrade to all the clients sometime over the holidays but hopefully one of these options helps you in the meantime. let me know. thanks again for using SB.

-Louie

mapcar
12-11-2002, 08:59 AM
I've tried the IP fix, and that didn't work. I've tried it with both sb's ip and sbp's ip.

http://linux.redbird.com/~alien88/sbust097-FreeBSD.tar.gz appears to work. Its only problem shows up when I interrupt the process:



mx-2% ./sb sclient.conf
[Wed Dec 11 18:57:09 2002] client process [v0.9.7] invoked
[Wed Dec 11 18:57:09 2002] priority set to high
[Wed Dec 11 18:57:09 2002] connecting to server
[Wed Dec 11 18:57:12 2002] logging into server
[Wed Dec 11 18:57:14 2002] requesting a block
[Wed Dec 11 18:57:16 2002] got proth test from server (k=67607, n=1395891)
[Wed Dec 11 18:57:16 2002] server packet cached to disk
^Ccaught signal 2. dumping unfreed memory:
unfreed ptr 0x8259000, size 48, in file network.c:418 at time 1039615035
mx-2%


Seems benign...


Thanks for the workaround.

Halon50
12-11-2002, 09:04 AM
:|ot|:

Louis? David? Do you guys ever sleep? :crazy:

Alien88
12-11-2002, 09:08 AM
Originally posted by mapcar
I've tried the IP fix, and that didn't work. I've tried it with both sb's ip and sbp's ip.

http://linux.redbird.com/~alien88/sbust097-FreeBSD.tar.gz appears to work. Its only problem shows up when I interrupt the process:



mx-2% ./sb sclient.conf
[Wed Dec 11 18:57:09 2002] client process [v0.9.7] invoked
[Wed Dec 11 18:57:09 2002] priority set to high
[Wed Dec 11 18:57:09 2002] connecting to server
[Wed Dec 11 18:57:12 2002] logging into server
[Wed Dec 11 18:57:14 2002] requesting a block
[Wed Dec 11 18:57:16 2002] got proth test from server (k=67607, n=1395891)
[Wed Dec 11 18:57:16 2002] server packet cached to disk
^Ccaught signal 2. dumping unfreed memory:
unfreed ptr 0x8259000, size 48, in file network.c:418 at time 1039615035
mx-2%


Seems benign...


Thanks for the workaround.

Yeah, that's normal with the older clients.

magnav0x
03-05-2003, 04:58 PM
Intrestingly enough I was unable to use the IP workaround. I was however able to get the older client to work BUT how do I assing my units to a team? I added the Team line into the conf file, but it's not recognized by the older version.

MathGuy
03-05-2003, 05:56 PM
The team assignments are not done through the client anymore, but rather through the server, keyed off your username. Just leave the team line out of the conf file and all will be well.