Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python: x86_64 darwin fails on exit #22

Closed
lunixbochs opened this issue Sep 3, 2015 · 1 comment
Closed

Python: x86_64 darwin fails on exit #22

lunixbochs opened this issue Sep 3, 2015 · 1 comment

Comments

@lunixbochs
Copy link
Owner

hello with printf: world
args (11):
01 @0x1000001 = "bins/x86_64.darwin.macho"
test: hi
strcmp: -11, 11, 01
file test 1: success

file test 2: success
success

Traceback (most recent call last):
File "_ctypes/callbacks.c", line 314, in 'calling callback function'
File "/usr/local/lib/python2.7/site-packages/unicorn/unicorn.py", line 249, in _hook_insn_syscall_cb
cb(self, data)
File "/Users/aegis/projects/usercorn/py/usercorn/cls.py", line 110, in hook_syscall
self.os.syscall(self.uc)
File "/Users/aegis/projects/usercorn/py/usercorn/arch/x64/darwin.py", line 26, in syscall
ret = syscalls.call(cls, SYSCALLS, num, lambda n: args[:n])
File "/Users/aegis/projects/usercorn/py/usercorn/syscalls.py", line 59, in call
return f(cls, *args) or 0
File "/Users/aegis/projects/usercorn/py/usercorn/syscalls.py", line 16, in write
return os.write(a1, cls.mem_read(a2, a3))
File "/usr/local/lib/python2.7/site-packages/unicorn/unicorn.py", line 189, in mem_read
data = ctypes.create_string_buffer(size)
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/init.py", line 65, in create_string_buffer
buftype = c_char * init
ValueError: Array length must be >= 0, not -17958193

@lunixbochs lunixbochs changed the title python: x86_64 darwin fails on exit Python: x86_64 darwin fails on exit Sep 3, 2015
@lunixbochs
Copy link
Owner Author

Python frontend has been removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant