madsbuvi / MTY_CL

A custom tripcode searcher, written using OpenCL. Primarily targeting the GCN architectures (Radeon HD 77xx and later).
37 stars 1 forks source link

Crash upon found tripcode #16

Open chinatsu opened 8 years ago

chinatsu commented 8 years ago

It seems like MTY_CL crashes upon finding a matching tripcode, it doesn't always reach the point where it outputs the tripcode, but searching for a short target crashes the program almost immediately. In comparison, searching for an 8 char target makes the program run for a long time. I believe I have done the right things in regards to disabling DEP for mty_cl.exe, and my AMD driver is version 15.12. Do you have any ideas?

Here are some gdb logs, the current 0.52 release:

GNU gdb (GDB) 7.7.50.20140303-cvs
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-w64-mingw32".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".

This binary was built by Equation Solution <http://www.Equation.com>.
(gdb) file mty_cl
Reading symbols from mty_cl...done.
(gdb) run
Starting program: C:\mtycl\mty_cl.exe
[New Thread 4656.0x18bc]
warning: `C:\Windows\SYSTEM32\ntdll.dll': Shared library architecture i386:x86-64 is not compatible with target architecture i386.
warning: `C:\Windows\SYSTEM32\wow64.dll': Shared library architecture i386:x86-64 is not compatible with target architecture i386.
warning: `C:\Windows\SYSTEM32\wow64win.dll': Shared library architecture i386:x86-64 is not compatible with target architecture i386.
warning: `C:\Windows\SYSTEM32\wow64cpu.dll': Shared library architecture i386:x86-64 is not compatible with target architecture i386.
warning: Could not load shared library symbols for WOW64_IMAGE_SECTION.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for WOW64_IMAGE_SECTION.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for NOT_AN_IMAGE.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for NOT_AN_IMAGE.
Do you need "set solib-search-path" or "set sysroot"?
[New Thread 4656.0x1814]
[New Thread 4656.0x87c]
[New Thread 4656.0x1f10]
[New Thread 4656.0x1ca8]
[New Thread 4656.0x1bf4]
[New Thread 4656.0x1274]
[New Thread 4656.0x1fbc]
[New Thread 4656.0x1550]
[New Thread 4656.0x1fb8]
[New Thread 4656.0x590]
[New Thread 4656.0x18a4]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 4656.0x1fb8]
0x0000002b in ?? ()

0.42 -g (from a closed issue which I was hoping is related to mine)

GNU gdb (GDB) 7.7.50.20140303-cvs
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-w64-mingw32".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".

This binary was built by Equation Solution <http://www.Equation.com>.
(gdb) file mty_cl_amd.exe
Reading symbols from mty_cl_amd.exe...done.
(gdb) run
Starting program: C:\mtycl2\mty_cl_amd.exe
[New Thread 5960.0x19fc]
warning: `C:\Windows\SYSTEM32\ntdll.dll': Shared library architecture i386:x86-64 is not compatible with target architecture i386.
warning: `C:\Windows\SYSTEM32\wow64.dll': Shared library architecture i386:x86-64 is not compatible with target architecture i386.
warning: `C:\Windows\SYSTEM32\wow64win.dll': Shared library architecture i386:x86-64 is not compatible with target architecture i386.
warning: `C:\Windows\SYSTEM32\wow64cpu.dll': Shared library architecture i386:x86-64 is not compatible with target architecture i386.
warning: Could not load shared library symbols for WOW64_IMAGE_SECTION.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for WOW64_IMAGE_SECTION.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for NOT_AN_IMAGE.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for NOT_AN_IMAGE.
Do you need "set solib-search-path" or "set sysroot"?
[New Thread 5960.0x1c58]
[New Thread 5960.0x1bec]
[New Thread 5960.0x1f5c]
[New Thread 5960.0x734]
[New Thread 5960.0x1e1c]
[New Thread 5960.0x18c4]
[New Thread 5960.0x1714]
[New Thread 5960.0x12fc]
[New Thread 5960.0x1c50]
[New Thread 5960.0x1968]
[New Thread 5960.0x1d50]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 5960.0x1c50]
0x0000002b in ?? ()
chinatsu commented 8 years ago

Actually, scratch the "upon found tripcode" thing. I just attempted running it with the large sample target, in which mty_cl did find one and then ran for a bit longer. I assume there's something else that always triggers it.