Closed MagaTailor closed 8 years ago
I believe they changed the way segments are handled (there's actually a GDT now), so I need to update for that
Hi again, I haven't been following the developments for a while - what's the situation re unicorn? And besides, any use revisiting some of my old glshim issues?
Thx
x86-64 guest support is almost fixed. If you look at the glshim commit history I've been working on texgen which is 100% for foobillardplus.
x86_64 linux is fixed for me in the latest unstable. can you confirm?
Alright, I had some old includes but this looks like 64-bit-only stuff:
# github.com/unicorn-engine/unicorn/bindings/go/unicorn
../go/src/github.com/unicorn-engine/unicorn/bindings/go/unicorn/unicorn.go:123: type [1073741824]C.struct_uc_mem_region larger than address space
../go/src/github.com/unicorn-engine/unicorn/bindings/go/unicorn/unicorn.go:123: type [1073741824]C.struct_uc_mem_region too large
Can you apply this commit and make sure it fixes the problem before I PR upstream? https://github.com/lunixbochs/unicorn/commit/2a9a794bffa30402819cd9873577ecc2f424288d
Leads to some more errors:
# github.com/lunixbochs/usercorn/go/kernel/linux/unpack
../go/src/github.com/lunixbochs/usercorn/go/kernel/linux/unpack/mmap_linux.go:12: undefined: syscall.MAP_32BIT
../go/src/github.com/lunixbochs/usercorn/go/kernel/linux/unpack/mmap_linux.go:20: undefined: syscall.MAP_STACK
../go/src/github.com/lunixbochs/usercorn/go/kernel/linux/unpack/mmap_linux.go:21: undefined: syscall.MAP_HUGETLB
I'll fix that up tonight, looks like the Unicorn fix worked though.
It did - the funny thing is I'd already hit a problem like that before:
https://github.com/pijul/pijul/issues/2#issuecomment-180233469
What's your Go / Linux version? I don't have that error with Go 1.6 on a 32-bit Ubuntu 14.04 install.
It's go 1.5.3
bootstrapped on Arm Linux.
Try on latest unstable.
All's fine again, including x86_64 emulation.
On ARM host at least, I'm seeing this, no matter the command:
invalid read: @0x0, 0x8 = 0x0
Example trace footer:
Unicorn was compiled with no custom CFLAGS and
busybox-armv5
seems unaffected.