#3 foremost 1.5.7 segfault on Mac OS X 10.6.8

open
nobody
None
5
2012-05-10
2012-05-10
No

I downloaded the source tarball for foremost 1.5.7 and compiled it on Mac OS X 10.6.8. However when trying to run it on a image it segfaults... Gdb says:

(gdb) run -T -o ~/Downloads/mem_out1/ ~/Downloads/memory.img
Starting program: /usr/local/bin/foremost -T -o ~/Downloads/mem_out1/ ~/Downloads/memory.img
Reading symbols for shared libraries +. done
Processing: /Users/JohnM/Downloads/memory.img
|
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000100400000
0x0000000100004368 in bm_search_skipn (needle=0x100200370 "</html>", needle_len=7, haystack=0x100300005 "><head></head><body><script type=\"text/javascript\">/* All portions of this software are copyright (c) 2003-2006 Right Media*/var rm_ban_flash=0;var rm_url=\"\";var rm_pop_frequency=0;var rm_pop_id=0;var"..., haystack_len=1048576, table=0x100028758, casesensitive=0, searchtype=0, start_pos=6) at engine.c:72
72 while (pos < haystack_len && (shift = table[(unsigned char)haystack[pos]]) > 0)
(gdb) backtrace
#0 0x0000000100004368 in bm_search_skipn (needle=0x100200370 "</html>", needle_len=7, haystack=0x100300005 "><head></head><body><script type=\"text/javascript\">/* All portions of this software are copyright (c) 2003-2006 Right Media*/var rm_ban_flash=0;var rm_url=\"\";var rm_pop_frequency=0;var rm_pop_id=0;var"..., haystack_len=1048576, table=0x100028758, casesensitive=0, searchtype=0, start_pos=6) at engine.c:72
#1 0x000000010000445a in bm_search (needle=<value temporarily unavailable, due to optimizations>, needle_len=<value temporarily unavailable, due to optimizations>, haystack=<value temporarily unavailable, due to optimizations>, haystack_len=<value temporarily unavailable, due to optimizations>, table=<value temporarily unavailable, due to optimizations>, case_sen=<value temporarily unavailable, due to optimizations>, searchtype=0) at engine.c:133
#2 0x00000001000071bb in extract_htm (s=0x100200080, c_offset=104424960, foundat=0x100300005 "><head></head><body><script type=\"text/javascript\">/* All portions of this software are copyright (c) 2003-2006 Right Media*/var rm_ban_flash=0;var rm_url=\"\";var rm_pop_frequency=0;var rm_pop_id=0;var"..., buflen=1048576, needle=0x100027f20, f_offset=0) at extract.c:586
#3 0x0000000100004d5e in search_chunk (s=0x100200080, buf=0x101000000 "????", i=0x100200590, chunk_size=104857600, f_offset=0) at engine.c:514
#4 0x0000000100004e27 in search_stream (s=0x100200080, i=0x100200590) at engine.c:589
#5 0x000000010000501d in process_file (s=0x100200080) at engine.c:682
#6 0x0000000100001221 in main (argc=<value temporarily unavailable, due to optimizations>, argv=<value temporarily unavailable, due to optimizations>) at main.c:310

Discussion

  • John Musbach

    John Musbach - 2012-05-10

    The image that caused this error can be downloaded (1GB size) at <http://www.filehosting.org/file/details/340722/memory.img>.

     
  • Nobody/Anonymous

    yqxVhg <a href="http://uhoajowjrqvn.com/">uhoajowjrqvn</a>, [url=http://lolbegzqbbki.com/]lolbegzqbbki[/url], [link=http://bjxygertpyjk.com/]bjxygertpyjk[/link], http://jqezfyvzoamy.com/

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks