samarunraj/arm-x86

Segmentation fault

Opened this issue · 1 comments

What steps will reproduce the problem?
1. I make the project and run it, but an erros occurs, "Segmentation
fault" was shown. I trace the code and found the following statement in 
decode.c < asm ("jmp *x86Translator"); > Here, *x86Transator pointer to data 
segment and the data segment can't
be executed, so the error occurs. 
     My development enviroment: Vmware Ubuntu 10.04(32 bit) and the latest arm-x86 code.
     Could you please help me? many thanks.


Original issue reported on code.google.com by ssls18ye...@gmail.com on 6 Sep 2012 at 7:52

In order to solve the issues, i replace malloc( ) by mmap() for x86 instruct 
space.
because instruct in mmap() space can be excuted.

Original comment by ssls18ye...@gmail.com on 28 Sep 2012 at 1:29