zbrdge / rdis_1

Recursive Disassembler based on libdasm
2 stars 0 forks source link

Program hangs on Mac OS X #1

Open heshbaugh opened 11 years ago

heshbaugh commented 11 years ago

I compiled the program for Mac OS X - it compiled without error.

When I tried to run it, it hangs - it seems to be looking for a thread that isn't there.

I attached GDB and got a stack trace:

0 0x00007fff886faa6a in __semwait_signal ()

1 0x00007fff88721896 in pthread_join ()

2 0x00000001000023ac in heuristic_dispatch (filename=0x7fff5fbff85f "rdis", entry=0x0) at heuristics.h:143

3 0x0000000100001253 in identify_functions (filename=0x7fff5fbff85f "rdis") at rdis.h:103

4 0x0000000100002576 in main (argc=0x2, argv=0x7fff5fbff758) at rdis.c:68

It appears that heuristic_dispatch() is waiting for a thread to complete, when that thread isn't running.

zbrdge commented 11 years ago

Ok. I will look into this and update it... Thanks!