sandsifter icon indicating copy to clipboard operation
sandsifter copied to clipboard

Injector hang

Open m3gat0nn4ge opened this issue 8 years ago • 4 comments

Hi,

Injector seems to be hanging on Fedora 23 after ~1B instruction tests, selinux is in permissive mode, cpu is Intel(R) Core(TM) i7-4800MQ CPU @ 2.70GHz.

I've tried twice, going to attach using strace this time and see if anything is happening but in the meantime, any ideas?

thanks

injector hang

m3gat0nn4ge avatar Jul 30 '17 23:07 m3gat0nn4ge

Ok .. so it seems to be stopping at the exact same point so I guess it has completed checking all the possible combinations. Attaching with strace gave me a stack of the following:

17738 --- SIGSEGV {si_signo=SIGSEGV, si_code=SI_KERNEL, si_addr=NULL} --- 17738 rt_sigreturn({mask=[]}) = 0 17738 --- SIGSEGV {si_signo=SIGSEGV, si_code=SI_KERNEL, si_addr=NULL} --- 17738 rt_sigreturn({mask=[]}) = 0 17738 --- SIGSEGV {si_signo=SIGSEGV, si_code=SI_KERNEL, si_addr=NULL} --- 17738 rt_sigreturn({mask=[]}) = 0 17738 --- SIGSEGV {si_signo=SIGSEGV, si_code=SI_KERNEL, si_addr=NULL} --- 17738 rt_sigreturn({mask=[]}) = 0 17738 --- SIGSEGV {si_signo=SIGSEGV, si_code=SI_KERNEL, si_addr=NULL} --- 17738 rt_sigreturn({mask=[]}) = 0

m3gat0nn4ge avatar Jul 31 '17 06:07 m3gat0nn4ge

This time I also left the terminal active while killing the injector process and saw a stack of output. The summarize command doesn't work however:

Traceback (most recent call last): File "./summarize.py", line 751, in <module> textbox.draw() File "/home/me/Documents/sandsifter/gui/gui.py", line 68, in draw self.gui.box(self.window, self.x, self.y, self.w, self.h, self.color) File "/home/me/Documents/sandsifter/gui/gui.py", line 175, in box window.addch(y + h - 1, x + i, curses.ACS_HLINE, color) _curses.error: addch() returned ERR

m3gat0nn4ge avatar Jul 31 '17 06:07 m3gat0nn4ge

@m3gat0nn4ge: For the last error, try using a slightly bigger terminal window.

Anything smaller than 97x40 will probably always lead to the same error, as the draw_infobox function currently works with fixed values:

  • it draws one box from offset (37,3) with width 60 (at https://github.com/xoreaxeaxeax/sandsifter/blob/master/summarize.py#L605)
  • it writes the help strings to y-offsets 33-39 (at https://github.com/xoreaxeaxeax/sandsifter/blob/master/summarize.py#L755 and the following lines)

rupran avatar Jul 31 '17 12:07 rupran

Thanks @rupran .. summarize is working, now to analyze the results...

m3gat0nn4ge avatar Aug 01 '17 08:08 m3gat0nn4ge