Subject: Re: hlds under NetBSD using Linux emulation.
To: None <port-i386@netbsd.org>
From: Andrei Mikhaltsov <amgorb@ttk.ru>
List: port-i386
Date: 10/07/2001 17:18:30
Jarom?r Dolecek wrote:

> Andrei,
> do you have procfs mounted with option -o linux? Some programs require
> this.
> 
> Jaromir
> 

yes, i mounted it this way:

#mount_procfs -o linux /proc /emul/linux/proc

still it crashes.

latest lines of kdump:

264 hlds_run GIO   fd 3 read 8 bytes
        "\0\0\0\0\0\0\0\0"
    264 hlds_run RET   read 4096/0x1000
    264 hlds_run CALL  old_mmap(0xbfbfbe4c)
    264 hlds_run RET   old_mmap 1234481152/0x4994b000
    264 hlds_run CALL  mprotect(0x499ef000,0x3c7c74,0)
    264 hlds_run RET   mprotect 0
    264 hlds_run CALL  old_mmap(0xbfbfbe4c)
    264 hlds_run RET   old_mmap 1235152896/0x499ef000
    264 hlds_run CALL  old_mmap(0xbfbfbe4c)
    264 hlds_run RET   old_mmap 1235202048/0x499fb000
    264 hlds_run CALL  close(0x3)
    264 hlds_run RET   close 0
    264 hlds_run CALL  open(0x4805d421,0,0x80e)
    264 hlds_run NAMI  "/emul/linux/etc/ld.so.cache"
    264 hlds_run NAMI  "/emul/linux"
    264 hlds_run NAMI  "/emul/linux/etc/ld.so.cache"
    264 hlds_run RET   open 3
    264 hlds_run CALL  fstat(0x3,0xbfbfcdc4)
    264 hlds_run RET   fstat 0
    264 hlds_run CALL  old_mmap(0xbfbfcdfc)
    264 hlds_run RET   old_mmap 1208365056/0x48063000
    264 hlds_run CALL  close(0x3)
    264 hlds_run RET   close 0
    264 hlds_run CALL  open(0x480636a6,0,0xbfbfcf34)
    264 hlds_run NAMI  "/emul/linux/lib/libhlwon.so"
    264 hlds_run NAMI  "/emul/linux"
    264 hlds_run NAMI  "/emul/linux/lib/libhlwon.so"
    264 hlds_run RET   open 3
    264 hlds_run CALL  fstat(0x3,0xbfbfcd94)
    264 hlds_run RET   fstat 0
    264 hlds_run CALL  read(0x3,0xbfbfbdec,0x1000)
    264 hlds_run GIO   fd 3 read 4088 bytes
[4088 bytes skipped]
    264 hlds_run GIO   fd 3 read 8 bytes
        "\0\0\0\0\0\0\0\0"
    264 hlds_run RET   read 4096/0x1000
    264 hlds_run CALL  old_mmap(0xbfbfbd7c)
    264 hlds_run RET   old_mmap 1239117824/0x49db7000
    264 hlds_run CALL  mprotect(0x49e43000,0x2a3b8,0)
    264 hlds_run RET   mprotect 0
    264 hlds_run CALL  old_mmap(0xbfbfbd7c)
    264 hlds_run RET   old_mmap 1239691264/0x49e43000
    264 hlds_run CALL  old_mmap(0xbfbfbd7c)
    264 hlds_run RET   old_mmap 1239863296/0x49e6d000
    264 hlds_run CALL  close(0x3)
    264 hlds_run RET   close 0
    264 hlds_run CALL  open(0x4806368b,0,0xbfbfcee4)
    264 hlds_run NAMI  "/emul/linux/lib/libm.so.6"
    264 hlds_run NAMI  "/emul/linux"
    264 hlds_run NAMI  "/emul/linux/lib/libm.so.6"
    264 hlds_run RET   open 3
    264 hlds_run CALL  fstat(0x3,0xbfbfcd44)
    264 hlds_run RET   fstat 0
    264 hlds_run CALL  read(0x3,0xbfbfbd9c,0x1000)
    264 hlds_run GIO   fd 3 read 4088 bytes
[4088 bytes skipped]
    248 hlds_run GIO   fd 3 read 8 bytes
        "\0\0\0\0\0\0\0\0"
    248 hlds_run RET   read 4096/0x1000
    248 hlds_run CALL  old_mmap(0xbfbfbcfc)
    248 hlds_run RET   old_mmap 1239867392/0x49e6e000
    248 hlds_run CALL  mprotect(0x49e8a000,0xad8,0)
    248 hlds_run RET   mprotect 0
    248 hlds_run CALL  old_mmap(0xbfbfbcfc)
    248 hlds_run RET   old_mmap 1239982080/0x49e8a000
    248 hlds_run CALL  close(0x3)
    248 hlds_run RET   close 0
    248 hlds_run PSIG  SIGSEGV SIG_DFL
    248 hlds_run NAMI  "hlds_run.core"



the executables are not broken, i am sure 100%

Richard: what version of hlds do you run??

Can you describe,brief, how did you make this thing work? Any 
non-obvious tuning?