Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

FreeBSD static binaries segfault



Hi Folks,

I'm trying to run a FreeBSD (static) binaries on -current from early
November. It is correctly detected as FreeBSD ELF, but after a short
hangs, it segfaults. The result is the same for any statically linked
/rescue program from 7.0-RELEASE. Here is the ktrace of the execution:

  3486      1 ktrace   EMUL  "netbsd"
  3486      1 ktrace   RET   ktrace 0
  3486      1 ktrace   CALL  execve(0xbfbffc3b,0xbfbfeb28,0xbfbfeb30)
  3486      1 ktrace   NAMI  "/emul/freebsd/rescue/sh"
  3486      1 sh       NAMI  "/emul/freebsd"
  3486      1 sh       EMUL  "freebsd"
  3486      1 sh       RET   syscall JUSTRETURN
[...]
  3486      1 sh       CALL  readlink(0x83971d5,0xbfbfe64b,0x400)
  3486      1 sh       NAMI  "/emul/freebsd/etc/malloc.conf"
  3486      1 sh       NAMI  "/etc/malloc.conf"
  3486      1 sh       RET   readlink -1 errno 2 No such file or directory
  3486      1 sh       CALL  issetugid
  3486      1 sh       RET   issetugid 0
  3486      1 sh       CALL  break(0x8600000)
  3486      1 sh       RET   break 0
  3486      1 sh       CALL  sysctl(0xbfbfe8f8,2,0xbfbfe900,0xbfbfe904,0,0)
  3486      1 sh       RET   sysctl 0, -1077942016/0xbfbfe900
  3486      1 sh       CALL  mmap(0,0x200000,3,0x1002,0xffffffff,0,0,0)
  3486      1 sh       RET   mmap -1147146240/0xbb9ff000, -1077942016/0xbfbfe900
  3486      1 sh       CALL  munmap(0xbb9ff000,0x1000)
  3486      1 sh       RET   munmap 0, 4096/0x1000
  3486      1 sh       CALL  munmap(0xbbb00000,0xff000)
  3486      1 sh       RET   munmap 0, 1044480/0xff000
  3486      1 sh       PSIG  SIGSEGV SIG_DFL: code=SEGV_ACCERR,
addr=0xbc200018, trap=6)
  3486      1 sh       NAMI  "sh.core"


Any clue about what is going wrong ?

best regards,

 - Arnaud


Home | Main Index | Thread Index | Old Index