List Info

Thread: Re: linuxolator problem on i386




Re: linuxolator problem on i386
country flaguser name
United Kingdom
2007-09-13 05:36:40
On Thu, 13 Sep 2007 09:00:32 +0400 sam wrote:

> # su hlds -c "ktrace -i ./hlds_run -game cstrike
+ip 0.0.0.0 +port
> 27015 +map de_dust -debug"
> Auto detecting CPU
> Using Pentium II Optimised binary.
> Enabling debug mode
> Auto-restarting the server on crash

> Console initialized.
> scandir failed:/usr/home/hlds/1.6/./platform/SAVE
> Protocol version 47
> Exe version 1.1.2.5/Stdio (cstrike)
> Exe build: 20:02:49 Oct 24 2006 (3651)
> STEAM Auth Server
> couldn't exec language.cfg
> Server IP address 0.0.0.0:27015
> scandir failed:/usr/home/hlds/1.6/./platform/SAVE
> *** glibc detected *** ./hlds_i686: double free or
corruption (!prev):
> 0x08da3738 ***
> ======= Backtrace: =========
> /lib/libc.so.6[0x2811ac88]
> /lib/libc.so.6(cfree+0x90)[0x2811e230]
> /lib/libc.so.6(closedir+0x28)[0x2813ecf8]
> /lib/libc.so.6(scandir+0x14b)[0x2813f21b]
>
/usr/home/hlds/1.6/filesystem_stdio_i386.so(findFileInDirCas
eInsensitive__FPCc+0xe4)[0x28af41d8] 

>
/usr/home/hlds/1.6/filesystem_stdio_i386.so(FS_stat__17CFile
System_StdioPCcP4stat+0x40)[0x28af861c] 

>
/usr/home/hlds/1.6/filesystem_stdio_i386.so(FastFindFileSize
__15CBaseFileSystemPCQ215CBaseFileSystem11CSearchPathPCc+0x1
7e)[0x28af572a] 

>
/usr/home/hlds/1.6/filesystem_stdio_i386.so(Size__15CBaseFil
eSystemPCc+0x5b)[0x28af557b] 

>
/usr/home/hlds/1.6/engine_i686.so(FS_FileSize+0x2a)[0x282867
9e]
> ======= Memory map: ========
> 08048000-08054000 r-xp 0003a000 00:00 1931338
> /usr/home/hlds/1.6/hlds_i686
> 08054000-0805b000 rw-p 0003a000 00:00 1931338
> /usr/home/hlds/1.6/hlds_i686
> 0805b000-0805e000 rw-p 00d60000 00:00 0
> 0805e000-08dbb000 rwxp 00d60000 00:00 0
> 28054000-2806d000 r-xp 0001e000 00:00 1719480
> /usr/compat/linux/lib/ld-2.5.so
> 2806d000-2806e000 r-xp 0001e000 00:00 1719480
> /usr/compat/linux/lib/ld-2.5.so
> 2806e000-2806f000 rw-p 00002000 00:00 0
> 2806f000-28070000 rwxp 00002000 00:00 0
> 28071000-28073000 r-xp 00004000 00:00 1719493
> /usr/compat/linux/lib/libdl-2.5.so
> 28073000-28074000 r-xp 00004000 00:00 1719493
> /usr/compat/linux/lib/libdl-2.5.so
> 28074000-28075000 rwxp 00004000 00:00 1719493
> /usr/compat/linux/lib/libdl-2.5.so
> 28075000-28076000 rwxp 00001000 00:00 0
> 28076000-28088000 r-xp 0001e000 00:00 1719511
> /usr/compat/linux/lib/libpthread-2.5.so
> 28088000-28089000 r-xp 0001e000 00:00 1719511
> /usr/compat/linux/lib/libpthread-2.5.so
> 28089000-2808a000 rwxp 0001e000 00:00 1719511
> /usr/compat/linuxAbort trap (core dumped)
> debug.cmds:1: Error in sourced command file:
> Previous frame inner to this frame (corrupt stack?)
> email debug.log to linuxvalvesoftware.com
> Wed Sep 12 20:27:04 SAMST 2007: Server restart in 10
seconds
> Wed Sep 12 20:27:06 SAMST 2007: Server Quit
> #
> ===================================================

Here is the relevant kdump:
ftp://ftp.ipt.ru/pub/linux/hldc.kdump.txt

> # uname -a
> FreeBSD damask 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Wed
Sep 12 17:04:55
> SAMST 2007     rootcs.udmvt.ru:/usr/obj/usr/src/sys/CS2  i386

> # sysctl compat
> compat.linux.oss_version: 198144
> compat.linux.osrelease: 2.6.16
> compat.linux.osname: Linux

> # kldstat
> Id Refs Address    Size     Name
> 1   14 0xc0400000 3e6ee0   kernel
> 2    1 0xc07e7000 69514    acpi.ko
> 3    1 0xc3ddd000 7000     linprocfs.ko
> 4    2 0xc3de4000 21000    linux.ko
> 5    1 0xc3e0e000 3000     linsysfs.ko

> # mount|grep linux
> linprocfs on /usr/compat/linux/proc (linprocfs, local)
> linsysfs on /usr/compat/linux/sys (linsysfs, local)

> # pkg_info | grep linux
> linux_base-fc6-6_3  Base set of packages needed in
Linux mode (for
> i386/amd64)

> [private links to debug.log & ktrace.out]

> please send me message after downloaded this files (for
removing)


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone
& Internet SP
FreeBSD committer, http://www.FreeBSD.org The
Power To Serve
_______________________________________________
freebsd-emulationfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emu
lation
To unsubscribe, send any mail to
"freebsd-emulation-unsubscribefreebsd.org"

Re: linuxolator problem on i386
country flaguser name
United Kingdom
2007-09-13 07:39:49
On Thu, 13 Sep 2007 14:36:40 +0400 Boris Samorodov wrote:
> On Thu, 13 Sep 2007 09:00:32 +0400 sam wrote:

> > # su hlds -c "ktrace -i ./hlds_run -game
cstrike +ip 0.0.0.0 +port
> > 27015 +map de_dust -debug"
> > Auto detecting CPU
> > Using Pentium II Optimised binary.
> > Enabling debug mode
> > Auto-restarting the server on crash

> > Console initialized.
> > scandir failed:/usr/home/hlds/1.6/./platform/SAVE
> > Protocol version 47
> > Exe version 1.1.2.5/Stdio (cstrike)
> > Exe build: 20:02:49 Oct 24 2006 (3651)
> > STEAM Auth Server
> > couldn't exec language.cfg
> > Server IP address 0.0.0.0:27015
> > scandir failed:/usr/home/hlds/1.6/./platform/SAVE
> > *** glibc detected *** ./hlds_i686: double free or
corruption (!prev):
> > 0x08da3738 ***
> > ======= Backtrace: =========
> > /lib/libc.so.6[0x2811ac88]
> > /lib/libc.so.6(cfree+0x90)[0x2811e230]
> > /lib/libc.so.6(closedir+0x28)[0x2813ecf8]
> > /lib/libc.so.6(scandir+0x14b)[0x2813f21b]
> >
/usr/home/hlds/1.6/filesystem_stdio_i386.so(findFileInDirCas
eInsensitive__FPCc+0xe4)[0x28af41d8] 

> >
/usr/home/hlds/1.6/filesystem_stdio_i386.so(FS_stat__17CFile
System_StdioPCcP4stat+0x40)[0x28af861c] 

> >
/usr/home/hlds/1.6/filesystem_stdio_i386.so(FastFindFileSize
__15CBaseFileSystemPCQ215CBaseFileSystem11CSearchPathPCc+0x1
7e)[0x28af572a] 

> >
/usr/home/hlds/1.6/filesystem_stdio_i386.so(Size__15CBaseFil
eSystemPCc+0x5b)[0x28af557b] 

> >
/usr/home/hlds/1.6/engine_i686.so(FS_FileSize+0x2a)[0x282867
9e]
> > ======= Memory map: ========
> > 08048000-08054000 r-xp 0003a000 00:00 1931338
> > /usr/home/hlds/1.6/hlds_i686
> > 08054000-0805b000 rw-p 0003a000 00:00 1931338
> > /usr/home/hlds/1.6/hlds_i686
> > 0805b000-0805e000 rw-p 00d60000 00:00 0
> > 0805e000-08dbb000 rwxp 00d60000 00:00 0
> > 28054000-2806d000 r-xp 0001e000 00:00 1719480
> > /usr/compat/linux/lib/ld-2.5.so
> > 2806d000-2806e000 r-xp 0001e000 00:00 1719480
> > /usr/compat/linux/lib/ld-2.5.so
> > 2806e000-2806f000 rw-p 00002000 00:00 0
> > 2806f000-28070000 rwxp 00002000 00:00 0
> > 28071000-28073000 r-xp 00004000 00:00 1719493
> > /usr/compat/linux/lib/libdl-2.5.so
> > 28073000-28074000 r-xp 00004000 00:00 1719493
> > /usr/compat/linux/lib/libdl-2.5.so
> > 28074000-28075000 rwxp 00004000 00:00 1719493
> > /usr/compat/linux/lib/libdl-2.5.so
> > 28075000-28076000 rwxp 00001000 00:00 0
> > 28076000-28088000 r-xp 0001e000 00:00 1719511
> > /usr/compat/linux/lib/libpthread-2.5.so
> > 28088000-28089000 r-xp 0001e000 00:00 1719511
> > /usr/compat/linux/lib/libpthread-2.5.so
> > 28089000-2808a000 rwxp 0001e000 00:00 1719511
> > /usr/compat/linuxAbort trap (core dumped)
> > debug.cmds:1: Error in sourced command file:
> > Previous frame inner to this frame (corrupt
stack?)
> > email debug.log to linuxvalvesoftware.com
> > Wed Sep 12 20:27:04 SAMST 2007: Server restart in
10 seconds
> > Wed Sep 12 20:27:06 SAMST 2007: Server Quit
> > #
> >
===================================================

Just to note once more, that is for CURRENT and
linux_base-fc6/2.6.16:

> Here is the relevant kdump:
> ftp://ftp.ipt.ru/pub/linux/hldc.kdump.txt

And the corresponding dump for linux_base-fc4/2.6.16 (which
works
fine):
ftp://ftp.ipt.ru/pub/linux/fc4.dump.txt

You may easily notice the difference if open those urls at
two tabs
within your brouser. 

> > # uname -a
> > FreeBSD damask 7.0-CURRENT FreeBSD 7.0-CURRENT #0:
Wed Sep 12 17:04:55
> > SAMST 2007     rootcs.udmvt.ru:/usr/obj/usr/src/sys/CS2  i386

> > # sysctl compat
> > compat.linux.oss_version: 198144
> > compat.linux.osrelease: 2.6.16
> > compat.linux.osname: Linux

> > # kldstat
> > Id Refs Address    Size     Name
> > 1   14 0xc0400000 3e6ee0   kernel
> > 2    1 0xc07e7000 69514    acpi.ko
> > 3    1 0xc3ddd000 7000     linprocfs.ko
> > 4    2 0xc3de4000 21000    linux.ko
> > 5    1 0xc3e0e000 3000     linsysfs.ko

> > # mount|grep linux
> > linprocfs on /usr/compat/linux/proc (linprocfs,
local)
> > linsysfs on /usr/compat/linux/sys (linsysfs,
local)

> > # pkg_info | grep linux
> > linux_base-fc6-6_3  Base set of packages needed in
Linux mode (for
> > i386/amd64)

> > [private links to debug.log & ktrace.out]

> > please send me message after downloaded this files
(for removing)


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone
& Internet SP
FreeBSD committer, http://www.FreeBSD.org The
Power To Serve
_______________________________________________
freebsd-emulationfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emu
lation
To unsubscribe, send any mail to
"freebsd-emulation-unsubscribefreebsd.org"

Re: linuxolator problem on i386
country flaguser name
Czech Republic
2007-09-17 11:34:21
On Mon, Sep 17, 2007 at 08:16:56PM +0400, Boris Samorodov
wrote:
> On Mon, 17 Sep 2007 20:12:00 +0400 Boris Samorodov
wrote:
> 
> > > what about this?
www.vlakno.cz/~rdivacky/linux_bsam.patch (it incorporates
> > > the previous patch, you might want to revert
the _hlds.patch if this complete
> > > patch does not work)
> 
> > Way, that seems to help!
> 
> Hm, I was too quick to respond. Sorry.
> 
> Actually it does not core only because getdents() does
not work:
> -----
>  16857 hlds_i686 NAMI 
"/compat/linux/usr/home/bsam/hlds_l/./cstrike/sound/wea
pons/reload1.wav"
>  16857 hlds_i686 NAMI 
"/usr/home/bsam/hlds_l/./cstrike/sound/weapons/reload1.
wav"
>  16857 hlds_i686 RET   linux_stat64 JUSTRETURN
>  16857 hlds_i686 CALL 
linux_open(0xbfbece08,0x18800,0xbfbecd34)
>  16857 hlds_i686 NAMI 
"/compat/linux/usr/home/bsam/hlds_l/./cstrike/sound/wea
pons"
>  16857 hlds_i686 NAMI 
"/usr/home/bsam/hlds_l/./cstrike/sound/weapons"
>  16857 hlds_i686 RET   linux_open 6
>  16857 hlds_i686 CALL 
linux_fstat64(0x6,0xbfbecd34,0x281f0ff4)
>  16857 hlds_i686 RET   linux_fstat64 0
>  16857 hlds_i686 CALL  linux_fcntl64(0x6,0x2,0x1)
>  16857 hlds_i686 RET   linux_fcntl64 0
>  16857 hlds_i686 CALL 
linux_getdents(0x6,0x8da532c,0x1000)
>  16857 hlds_i686 RET   linux_getdents -1 errno 14 Bad
address
>  16857 hlds_i686 CALL  close(0x6)
>  16857 hlds_i686 RET   close 0
>  16857 hlds_i686 CALL 
linux_stat64(0xbfbecec4,0xbfbecdc4,0x281f0ff4)
>  16857 hlds_i686 NAMI 
"/compat/linux/usr/home/bsam/hlds_l/./valve/sound/weapo
ns/reload1.wav"
>  16857 hlds_i686 NAMI 
"/usr/home/bsam/hlds_l/./valve/sound/weapons/reload1.wa
v"
>  16857 hlds_i686 RET   linux_stat64 JUSTRETURN
>  16857 hlds_i686 CALL 
linux_open(0xbfbece08,0x18800,0xbfbecd34)
>  16857 hlds_i686 NAMI 
"/compat/linux/usr/home/bsam/hlds_l/./valve/sound/weapo
ns"
>  16857 hlds_i686 NAMI 
"/usr/home/bsam/hlds_l/./valve/sound/weapons"
>  16857 hlds_i686 RET   linux_open 6
>  16857 hlds_i686 CALL 
linux_fstat64(0x6,0xbfbecd34,0x281f0ff4)
>  16857 hlds_i686 RET   linux_fstat64 0
>  16857 hlds_i686 CALL  linux_fcntl64(0x6,0x2,0x1)
>  16857 hlds_i686 RET   linux_fcntl64 0
>  16857 hlds_i686 CALL 
linux_getdents(0x6,0x8da532c,0x1000)
>  16857 hlds_i686 RET   linux_getdents -1 errno 14 Bad
address

show me the args->dirent... easily done by adding
printf("XXX: %pn", args->dirent);

to the getdents_common() code (in the if (args->dirent)
block)

_______________________________________________
freebsd-emulationfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emu
lation
To unsubscribe, send any mail to
"freebsd-emulation-unsubscribefreebsd.org"

Re: linuxolator problem on i386
country flaguser name
United Kingdom
2007-09-17 11:48:45
On Mon, 17 Sep 2007 18:34:21 +0200 Roman Divacky wrote:

> On Mon, Sep 17, 2007 at 08:16:56PM +0400, Boris
Samorodov wrote:
> > On Mon, 17 Sep 2007 20:12:00 +0400 Boris Samorodov
wrote:
> > 
> > > > what about this?
www.vlakno.cz/~rdivacky/linux_bsam.patch (it incorporates
> > > > the previous patch, you might want to
revert the _hlds.patch if this complete
> > > > patch does not work)
> > 
> > > Way, that seems to help!
> > 
> > Hm, I was too quick to respond. Sorry.
> > 
> > Actually it does not core only because getdents()
does not work:
> > -----
> >  16857 hlds_i686 NAMI 
"/compat/linux/usr/home/bsam/hlds_l/./cstrike/sound/wea
pons/reload1.wav"
> >  16857 hlds_i686 NAMI 
"/usr/home/bsam/hlds_l/./cstrike/sound/weapons/reload1.
wav"
> >  16857 hlds_i686 RET   linux_stat64 JUSTRETURN
> >  16857 hlds_i686 CALL 
linux_open(0xbfbece08,0x18800,0xbfbecd34)
> >  16857 hlds_i686 NAMI 
"/compat/linux/usr/home/bsam/hlds_l/./cstrike/sound/wea
pons"
> >  16857 hlds_i686 NAMI 
"/usr/home/bsam/hlds_l/./cstrike/sound/weapons"
> >  16857 hlds_i686 RET   linux_open 6
> >  16857 hlds_i686 CALL 
linux_fstat64(0x6,0xbfbecd34,0x281f0ff4)
> >  16857 hlds_i686 RET   linux_fstat64 0
> >  16857 hlds_i686 CALL  linux_fcntl64(0x6,0x2,0x1)
> >  16857 hlds_i686 RET   linux_fcntl64 0
> >  16857 hlds_i686 CALL 
linux_getdents(0x6,0x8da532c,0x1000)
> >  16857 hlds_i686 RET   linux_getdents -1 errno 14
Bad address
> >  16857 hlds_i686 CALL  close(0x6)
> >  16857 hlds_i686 RET   close 0
> >  16857 hlds_i686 CALL 
linux_stat64(0xbfbecec4,0xbfbecdc4,0x281f0ff4)
> >  16857 hlds_i686 NAMI 
"/compat/linux/usr/home/bsam/hlds_l/./valve/sound/weapo
ns/reload1.wav"
> >  16857 hlds_i686 NAMI 
"/usr/home/bsam/hlds_l/./valve/sound/weapons/reload1.wa
v"
> >  16857 hlds_i686 RET   linux_stat64 JUSTRETURN
> >  16857 hlds_i686 CALL 
linux_open(0xbfbece08,0x18800,0xbfbecd34)
> >  16857 hlds_i686 NAMI 
"/compat/linux/usr/home/bsam/hlds_l/./valve/sound/weapo
ns"
> >  16857 hlds_i686 NAMI 
"/usr/home/bsam/hlds_l/./valve/sound/weapons"
> >  16857 hlds_i686 RET   linux_open 6
> >  16857 hlds_i686 CALL 
linux_fstat64(0x6,0xbfbecd34,0x281f0ff4)
> >  16857 hlds_i686 RET   linux_fstat64 0
> >  16857 hlds_i686 CALL  linux_fcntl64(0x6,0x2,0x1)
> >  16857 hlds_i686 RET   linux_fcntl64 0
> >  16857 hlds_i686 CALL 
linux_getdents(0x6,0x8da532c,0x1000)
> >  16857 hlds_i686 RET   linux_getdents -1 errno 14
Bad address

> show me the args->dirent... easily done by adding
> printf("XXX: %pn", args->dirent);

> to the getdents_common() code (in the if
(args->dirent) block)

Here are they (for one-time running):
-----
Sep 17 20:44:31 tinderbox kernel: XXX: 0x80633f4
Sep 17 20:44:31 tinderbox kernel: XXX: 0x80637f4
Sep 17 20:44:31 tinderbox kernel: XXX: 0x8064ce4
Sep 17 20:44:31 tinderbox kernel: XXX: 0x8064cb4
Sep 17 20:44:31 tinderbox kernel: XXX: 0x8064cb4
Sep 17 20:44:32 tinderbox kernel: XXX: 0x807868c
Sep 17 20:44:32 tinderbox last message repeated 8 times
Sep 17 20:44:32 tinderbox kernel: XXX: 0x8071b44
Sep 17 20:44:32 tinderbox last message repeated 2 times
Sep 17 20:44:32 tinderbox kernel: XXX: 0x8072d54
Sep 17 20:44:32 tinderbox last message repeated 2 times
Sep 17 20:44:32 tinderbox kernel: XXX: 0x807301c
Sep 17 20:44:32 tinderbox kernel: XXX: 0x8d03254
Sep 17 20:44:32 tinderbox last message repeated 5 times
Sep 17 20:44:32 tinderbox kernel: XXX: 0x8d0488c
Sep 17 20:44:33 tinderbox last message repeated 6 times
Sep 17 20:44:34 tinderbox kernel: XXX: 0x8d04a44
Sep 17 20:44:34 tinderbox kernel: XXX: 0x8d0488c
Sep 17 20:44:34 tinderbox last message repeated 14 times
Sep 17 20:44:51 tinderbox kernel: XXX: 0x80633f4
Sep 17 20:44:51 tinderbox kernel: XXX: 0x80637f4
Sep 17 20:44:51 tinderbox kernel: XXX: 0x8064ce4
Sep 17 20:44:51 tinderbox kernel: XXX: 0x8064cb4
Sep 17 20:44:51 tinderbox kernel: XXX: 0x8064cb4
Sep 17 20:44:51 tinderbox kernel: XXX: 0x807868c
Sep 17 20:44:51 tinderbox last message repeated 8 times
Sep 17 20:44:51 tinderbox kernel: XXX: 0x8071b44
Sep 17 20:44:51 tinderbox last message repeated 2 times
Sep 17 20:44:51 tinderbox kernel: XXX: 0x8072d54
Sep 17 20:44:51 tinderbox last message repeated 2 times
Sep 17 20:44:51 tinderbox kernel: XXX: 0x807301c
Sep 17 20:44:51 tinderbox kernel: XXX: 0x8d03254
Sep 17 20:44:51 tinderbox last message repeated 5 times
Sep 17 20:44:51 tinderbox kernel: XXX: 0x8d0488c
Sep 17 20:44:51 tinderbox last message repeated 6 times
Sep 17 20:44:51 tinderbox kernel: XXX: 0x8d04a44
Sep 17 20:44:51 tinderbox kernel: XXX: 0x8d0488c
Sep 17 20:44:52 tinderbox last message repeated 21 times
Sep 17 20:44:52 tinderbox kernel: XXX: 0x8d0727c
Sep 17 20:44:53 tinderbox kernel: XXX: 0x8da533c
Sep 17 20:44:53 tinderbox last message repeated 38 times
Sep 17 20:44:53 tinderbox kernel: 
Sep 17 20:44:53 tinderbox kernel: XXX: 0x8da533c
Sep 17 20:44:53 tinderbox last message repeated 66 times
Sep 17 20:44:54 tinderbox kernel: XXX: 0x8da7794
Sep 17 20:44:54 tinderbox last message repeated 3 times
-----

WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone
& Internet SP
FreeBSD committer, http://www.FreeBSD.org The
Power To Serve
_______________________________________________
freebsd-emulationfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emu
lation
To unsubscribe, send any mail to
"freebsd-emulation-unsubscribefreebsd.org"

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )