Error on disassembly of /bin/ls
Status: Pre-Alpha
Brought to you by:
mariooooo
installed Lida -03.00.00 from sourceforge
Running on Linux Fedora Core 1
Ran lida on /bin/ls and failed to get any disassembly.
Jumping to entrypoint: 08049A60
lida: ERROR: 08049A60 not found in address range!
Disassembly DONE
details in attached file.
get the same with hello world program
int main(){
printf("Hello World!\n");
return 0;
}
gcc foo.c -o foo
Logged In: YES
user_id=1072308
(crossposted from help forum)
It's an bug in lida_back.c
But the bug only causes problems on certain linux versions.
You can't MAP_SHARED a file opened in readonly mode. Using
MAP_PRIVATE works fine.
lida_back.c:724 image = mmap(0, tmpStat.st_size,
PROT_READ, MAP_SHARED, fTarget, 0);
should be
lida_back.c:724 image = mmap(NULL, tmpStat.st_size,
PROT_READ, MAP_PRIVATE, fTarget, 0);
Many valid pointers look like negative integers. mmap errors
are exactly equal to -1.
lida_back.c:724 if ((int) image < 1) return (-1);
should be
lida_back.c:724 if ((int) image == -1) return (-1);
Logged In: YES
user_id=1051339
thanks bugmenot!!
i have developed lida on mdk 10.0 "a long time ago" and now
use debian, where I aslo realized this. i am still porting
lida to plain C, now switch from gtk to Qt again. I planned
to not maintain this perl version it is for me more a proof
of concept.
I will upload a maintenance release in the next 1-2 weeks
where i clean out all that has ben found by you guys and me
the latest time. but then this perl version will get frozen
definately ;)
thanks all who use it and especially give feedback!