Port-amd64 archive

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

Re: Need advise about linux32 on amd64



On Jun 12,  5:28pm, cemkayali%eticaret.com.tr@localhost (Cem Kayali) wrote:
-- Subject: Re: Need advise about linux32 on amd64

| Same software, on NetBSD i386 / 4.99.64, with suse100_base only and 
| works without problem...
| 
| I copied ptrace section:
| 
| ...
| ...
| ...
| ...
|    575      1 linux_32_software RET   fork 700/0x2bc
|    575      1 linux_32_software CALL  waitpid(0x2bc,0xbfbf6a7c,0)
|    700      1 linux_32_software EMUL  "linux"
|    700      1 linux_32_software RET   fork 0
|    700      1 linux_32_software CALL  ptrace(PTRACE_TRACEME,1,1,0x8055081)
|    700      1 linux_32_software RET   ptrace 0
|    700      1 linux_32_software CALL  gettimeofday(0x80ba860,0x80ba868)
|    700      1 linux_32_software RET   gettimeofday 0
|    700      1 linux_32_software CALL  getpid
|    700      1 linux_32_software RET   getpid 700/0x2bc
|    700      1 linux_32_software CALL  getuid
|    700      1 linux_32_software RET   getuid 2091/0x82b
|    700      1 linux_32_software CALL  uname(0x80ba890)
|    700      1 linux_32_software RET   uname 0
|    700      1 linux_32_software CALL  uname(0xbfbf34a6)
|    700      1 linux_32_software RET   uname 0
|    700      1 linux_32_software CALL  uname(0xbfbf34a6)
|    700      1 linux_32_software RET   uname 0
|    700      1 linux_32_software CALL  open(0x80bf0a1,0,0x1b6)
|    700      1 linux_32_software NAMI  "/emul/linux/proc/cpuinfo"
|    700      1 linux_32_software NAMI  "/proc/cpuinfo"
|    700      1 linux_32_software RET   open -1 unknown errno 2
|    700      1 linux_32_software CALL  gettimeofday(0xbfbf37c0,0xbfbf37c8)
| ...
| ...
| ...
| ...
| about a hundreth lines continue... If i can not run this software, i 
| think i need to install amd64 and i386 onto different partitions. Or if 
| you have advise, i appreciate.

Yes, just make a fake ptrace function in sys/compat/linux32/arch/amd64
that always returns 0. I think that the program tries to do this
so that you cannot attach a debugger to it, and it does not need
anything else from ptrace. You can copy the i386 one and just make it
return 0.

christos


Home | Main Index | Thread Index | Old Index