[bf1942] Anyone running this on FreeBSD?

Paul Richards noxis at clara.net
Wed Mar 19 04:32:23 EST 2003


----- Original Message -----
From: "roger" <rogerxxmaillist at san.rr.com>
To: <bf1942 at icculus.org>
Sent: Wednesday, March 19, 2003 9:12 AM
Subject: Re: [bf1942] Anyone running this on FreeBSD?


> On Tue, 2003-03-18 at 06:54, Paul Richards wrote:
>
> >
> > I put it through gdb but it only gives me one small line, i think this
is
> > because it doesnt get anyway into the loading or running of it:
> >
> > Core was generated by `bf1942_lnxded'.
> > Program terminated with signal 11, Segmentation fault.
> > #0  0x29801524 in ?? ()
> >
> > Assuming i am using gdb correctly...
> It would appear so.  Sometimes you can catch something legible by using
> gdb.  Sometimes not.  You can also setup breakpoints with gdb (man gdb
> for the documentation).
>
>
> bah. that sux. strace time.
> ie:
> $ strace bf1942_lnxded
>
> or create a log file:
> $ strace bf1942_lnxded > strace.log
>
> from that, you may want to send the last 10-20 lines to this mailling
> list for the developer to debug...or if you have c/c++ experience,
> you'll understand whats going on.
>
> You may run into oddities when piping output to files and you can
> displace this by doing:
>
> $ strace bf1942_lnxded > strace.log 2>&1 &
>
> The problems you're probably have are probably with the libs in freebsd
> being not compatable with linux binaries (?)  I always prefer to rebuild
> SRPMS/Source to ensure maximum compatability & performance on my boxens
> ;-)
>
>
> --
> Roger
> http://www.eskimo.com/~roger/index.html
>
>
>

Thanks Roger

Heres what the strace.log gave me, again assuming I am using it correctly:


-bash-2.05b$ strace ./bf1942_lnxded > strace.log 2>&1 &
[1] 5581
-bash-2.05b$
[1]+  Done                    strace ./bf1942_lnxded >strace.log 2>&1
-bash-2.05b$ less strace.log
execve("./bf1942_lnxded", ["./bf1942_lnxded"], [/* 18 vars */]) = 0
settimeofday({0, 0}, NULL)              = 0
ktrace(0xbfbffa18, 0xbfbffb78, 0x297d3914, 0) = 169635840
open("<85><C0><89><C6>x,<C7>^D$^C",
O_WRONLY|O_NONBLOCK|O_APPEND|O_CREAT|O_DIRECT|0x297c7000, 0) = -1 kevent
((null))
open("<85><C0><89><C6>x,<C7>^D$^C",
O_RDWR|O_APPEND|O_CREAT|O_TRUNC|O_DIRECT|O_SHLOCK|0x297c7000, 0) = 3
mmap(0, 0, PROT_NONE, , 0, 0x297d95e4297d95e4) = 0
dup2(0, 16560)                          = 696098816
close(3)                                = 0
open("<89>E<C4>@^O<84><E4>",
O_NONBLOCK|O_CREAT|O_TRUNC|O_EXCL|O_NOCTTY|O_DIRECT|O_NOFOLLOW|0x297c4000,
0) = 3
read(696043285, 0x3, 3217027444)        = 1024
mmap(0, 0, PROT_NONE, , 0, 0x297d95e4297d95e4) = 0
dup2(0, 135680)                         = 696119296
recvfrom(696040920, "", 512, 0, {...}, [?]) = 0
dup2(696254464, 4096)                   = 696254464
close(3)                                = 0
open("<89>E<C4>@^O<84><E4>",
O_RDWR|O_EXCL|O_NOCTTY|O_ASYNC|O_DIRECT|O_EXLOCK|0x297c5000) = 3
read(696043285, 0x3, 3217027428)        = 1024
mmap(0x297d94b8, 696254976, PROT_EXEC|0x297cbe98,
MAP_NORESERVE|MAP_INHERIT|0x29800100, 0, 0x297d95e4297d95e4) = 0
dup2(0, 4096)                           = 696258560
dup2(0, 11304)                          = 696262656
recvfrom(696040920, "", 3112, 0, {...}, [?]) = 0
dup2(696270848, 4096)                   = 696270848
close(3)                                = 0
open("<89>E<C4>@^O<84><E4>",
O_RDONLY|O_NONBLOCK|O_APPEND|O_TRUNC|O_NOCTTY|O_ASYNC|O_DIRECT|O_NOFOLLOW|O_
EXLOCK|0x297c4000) = 3
read(696043285, 0x3, 3217027412)        = 1024
mmap(0x297d94b8, 696273960, PROT_EXEC|0x297cbe98,
MAP_STACK|MAP_NOSYNC|0x29804008, 0, 0x297d95e4297d95e4) = 0
dup2(0, 196128)                         = 696274944
recvfrom(696040920, "", 142880, 0, {...}, [?]) = 0
dup2(696328192, 12288)                  = 696328192
dup2(696340480, 130592)                 = 696340480
close(3)                                = 0
open("<89>E<C4>@^O<84><E4>",
O_RDONLY|O_APPEND|O_CREAT|O_EXCL|O_NOCTTY|O_DIRECT|O_EXLOCK|0x297c5000, 0) =
3
read(696043285, 0x3, 3217027396)        = 1024
mmap(0, 3217027032, PROT_READ|PROT_EXEC|0x297d4a90,
MAP_SHARED|MAP_NORESERVE|MAP_INHERIT|MAP_STACK|0x297d4008, 696095928,
0x297d95e4297d95e4) = 0
dup2(1107296256, 1239844)               = 1107296256
recvfrom(696040920, "", 35620, 0, {...}, [?]) = 0
dup2(1108500480, 20480)                 = 1108500480
dup2(1108520960, 15140)                 = 1108520960
close(3)                                = 0
SYS_91()                                = 0
fchown(696308732, 1, 3217030012)        = -1 __acl_aclcheck_fd ((null))
--- SIGSEGV (Segmentation fault) ---
--- SIGSEGV (Segmentation fault) ---



I think it might simply be I am missing some libs or not installed
something, FreeBSD 4.7 here. You got any pointers to make sure I have
installed?

Cheers for your help

Paul.




More information about the Bf1942 mailing list