-
-
Save achadwick/01c6a1b519a36dcdbe0a to your computer and use it in GitHub Desktop.
gdb try 2 for winpthreads issue Alexpux/MINGW-packages#709
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ pacman -Q mingw-w64-i686-gcc mingw-w64-i686-gdb | |
mingw-w64-i686-gcc 5.2.0-3 | |
mingw-w64-i686-gdb 7.9.1-3 | |
$ /mingw32/bin/python2.7 /mingw32/bin/mypaint -c /tmp/freshmypaintconfig | |
ERROR: mypaint: Failed to load MyPaint's C extension. This probably means that MyPaint was not correctly installed, or was built incorrectly. | |
Traceback (most recent call last): | |
File "C:/msys64/mingw32/bin/mypaint", line 191, in get_paths | |
from lib import mypaintlib | |
File "C:/msys64/mingw32/share/mypaint/lib/mypaintlib.py", line 28, in <module> | |
_mypaintlib = swig_import_helper() | |
File "C:/msys64/mingw32/share/mypaint/lib/mypaintlib.py", line 20, in swig_import_helper | |
import _mypaintlib | |
ImportError: DLL load failed: Invalid access to memory location. | |
INFO: mypaint: script: 'C:/msys64/mingw32/bin/mypaint' | |
INFO: mypaint: deduced prefix: u'C:/msys64/mingw32' | |
INFO: mypaint: lib_shared: u'C:/msys64/mingw32/share/mypaint' | |
INFO: mypaint: lib_compiled: u'C:/msys64/mingw32/lib/mypaint' | |
INFO: mypaint: sys.path: [u'C:/msys64/mingw32/share', u'C:/msys64/mingw32/lib/mypaint', u'C:/msys64/mingw32/share/mypaint', 'C:/msys64/mingw32/bin', 'C:/msys64/mingw32/lib/python27.zip', 'C:/msys64/mingw32/lib/python2.7', 'C:/msys64/mingw32/lib/python2.7/plat-win32', 'C:/msys64/mingw32/lib/python2.7/lib-tk', 'C:/msys64/mingw32/lib/python2.7/lib-old', 'C:/msys64/mingw32/lib/python2.7/lib-dynload', 'C:/building/msys32/mingw32', 'C:/msys64/mingw32/lib/python2.7/site-packages'] | |
Segmentation fault | |
$ gdb -ex r --args /mingw32/bin/python2.7 /mingw32/bin/mypaint -c /tmp/freshmypaintconfig | |
GNU gdb (GDB) 7.9.1 | |
Copyright (C) 2015 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 "i686-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"... | |
Traceback (most recent call last): | |
File "<string>", line 4, in <module> | |
File "c:\msys64\mingw32\share\gdb/python/../../gcc-5.2.0/python/libstdcxx/v6/printers.py", line 1267, in register_libstdcxx_printers | |
gdb.printing.register_pretty_printer(obj, libstdcxx_printer) | |
File "c:\msys64\mingw32\share\gdb/python/gdb/printing.py", line 152, in register_pretty_printer | |
printer.name) | |
RuntimeError: pretty-printer already registered: libstdc++-v6 | |
c:\msys64\mingw32\bin\../etc/gdbinit:6: Error in sourced command file: | |
Error while executing Python code. | |
Reading symbols from C:/msys64/mingw32/bin/python2.7...(no debugging symbols found)...done. | |
Starting program: C:\msys64\mingw32\bin\python2.7.exe C:/msys64/mingw32/bin/mypaint -c C:/msys64/tmp/freshmypaintconfig | |
[New Thread 3496.0xdac] | |
warning: Python failed to load the default activation context | |
Program received signal SIGSEGV, Segmentation fault. | |
0x64b42ddb in ?? () from C:\msys64\mingw32\bin\libwinpthread-1.dll | |
(gdb) bt | |
#0 0x64b42ddb in ?? () from C:\msys64\mingw32\bin\libwinpthread-1.dll | |
#1 0x6380cbc1 in ?? () from C:\msys64\mingw32\bin\libgomp-1.dll | |
#2 0x638125a4 in ?? () from C:\msys64\mingw32\bin\libgomp-1.dll | |
#3 0x6380ecda in ?? () from C:\msys64\mingw32\bin\libgomp-1.dll | |
#4 0x6380136a in ?? () from C:\msys64\mingw32\bin\libgomp-1.dll | |
#5 0x63801423 in ?? () from C:\msys64\mingw32\bin\libgomp-1.dll | |
#6 0x77158d44 in ntdll!RtlQueryEnvironmentVariable () | |
from C:\Windows\SysWOW64\ntdll.dll | |
#7 0x63800000 in ?? () | |
#8 0x7715c26b in ntdll!LdrResSearchResource () | |
from C:\Windows\SysWOW64\ntdll.dll | |
#9 0x63801400 in ?? () from C:\msys64\mingw32\bin\libgomp-1.dll | |
#10 0x7715aee1 in ntdll!RtlFormatCurrentUserKeyPath () | |
from C:\Windows\SysWOW64\ntdll.dll | |
#11 0x7715aff8 in ntdll!LdrLoadDll () from C:\Windows\SysWOW64\ntdll.dll | |
#12 0x75932ca8 in LoadLibraryExW () from C:\Windows\syswow64\KernelBase.dll | |
#13 0x75932d05 in LoadLibraryExA () from C:\Windows\syswow64\KernelBase.dll | |
#14 0x6d101450 in libpython2.7!_PyComplex_FormatAdvanced () | |
from C:\msys64\mingw32\bin\libpython2.7.dll | |
(gdb) q | |
A debugging session is active. | |
Inferior 1 [process 3496] will be killed. | |
Quit anyway? (y or n) [answered Y; input not from terminal] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment