Suggestion of DrMinGW?

Discussion of development and patch submission.
neozeed
Posts: 173
Joined: Tue 08 Jul, 2014 4:41 am

Suggestion of DrMinGW?

Postby neozeed » Mon 15 Feb, 2016 2:54 am

I found this for another project, and I think this may be useful to try to track down issues with end users with little to no debugging experience. You just have to build with -g, make one function call, link in one library, and distribute 3 more DLLs (I know. I know..) but the upside is when you get a crash, it'll generate a report file.

Code: Select all

Error occured on Monday, February 15, 2016 at 10:47:01.

PCem.exe caused an Access Violation at location 0050BDD0 in module PCem.exe Reading from location 0CA31F98.

Loading symbols... done.

Registers:
eax=00000000 ebx=03dee5a0 ecx=00000000 edx=0ca31f98 esi=00000000 edi=00000000
eip=0050bdd0 esp=0a88fc24 ebp=018da1e0 iopl=0         nv up ei pl nz na pe nc
cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00010202

AddrPC   Params
0050BDD0 03E186D0 00000001 0A88FC70  PCem.exe!ega_poll
00444F6B 00000028 00000030 000000C0  PCem.exe!givealbuffer
0041F39B 03DEE5A0 7776865C 77755529  PCem.exe!sound_poll
004443C6 77755529 5B3B6B9A 0A88FD24  PCem.exe!timer_process
7776865C 5B3B6B9A 0A88FD24 776F0000  ntdll.dll!_NtTestAlert@0
77755529 01A27BE0 03DEA648 7772C689  ntdll.dll!__LdrpInitialize@8
0055896F 03DEA648 005557A0 775670A0  PCem.exe!startblit
77566DE5 00000000 CBD6E897 775670A0  msvcrt.dll!__getptd_noexit
7756702E 0A88FF94 775D38F4 03DEA648  msvcrt.dll!__beginthread
77567101 03DEA648 775D38D0 864EEC10  msvcrt.dll!__endthread
775D38F4 03DEA648 5B3B68BE 00000000  KERNEL32.DLL!@BaseThreadInitThunk@12
77755E13 FFFFFFFF 7777B7E6 00000000  ntdll.dll!__RtlUserThreadStart
77755DDE 775670A0 03DEA648 00000000  ntdll.dll!__RtlUserThreadStart@8

PCem.exe
ntdll.dll       6.2.10586.103
KERNEL32.DLL    6.2.10586.0
KERNELBASE.dll  6.2.10586.103
ADVAPI32.DLL    6.2.10586.63
msvcrt.dll      7.0.10586.0
alut.dll
sechost.dll     6.2.10586.0
RPCRT4.dll      6.2.10586.0
OpenAL32.dll    0.99.0.28
SspiCli.dll     6.2.10586.0
OLE32.dll       6.2.10586.0
CRYPTBASE.dll   6.2.10586.0
combase.dll     6.2.10586.103
bcryptPrimitives.dll    6.2.10586.0
GDI32.dll       6.2.10586.63
COMDLG32.DLL    6.2.10586.0
USER32.dll      6.2.10586.20
shcore.dll      6.2.10586.0
SHLWAPI.dll     6.2.10586.0
WINMM.DLL       6.2.10586.0
SHELL32.dll     6.2.10586.103
cfgmgr32.dll    6.2.10586.0
COMCTL32.dll    5.82.10586.0
windows.storage.dll     6.2.10586.103
WINMMBASE.dll   6.2.10586.0
kernel.appcore.dll      6.2.10586.0
powrprof.dll    6.2.10586.0
profapi.dll     6.2.10586.0
FirewallAPI.dll 6.2.10586.0
NETAPI32.dll    6.2.10586.0
d3d9.dll        6.2.10586.0
ddraw.dll       6.2.10586.0
exchndl.dll     0.7.7.0
dinput.dll      6.2.10586.0
DAVHLPR.DLL     6.2.10586.0
PSAPI.DLL       6.2.10586.0
dwmapi.dll      6.2.10586.0
mgwhelp.dll     0.7.7.0
DCIMAN32.dll    6.2.10586.3
VERSION.dll     6.2.10586.0
dbghelp.dll     6.3.9600.17029
IMM32.DLL       6.2.10586.0
fwbase.dll      6.2.10586.0
uxtheme.dll     6.2.10586.0
MSCTF.dll       6.2.10586.71
HID.DLL         6.2.10586.0
SETUPAPI.DLL    6.2.10586.0
DEVOBJ.dll      6.2.10586.0
WINTRUST.dll    6.2.10586.0
MSASN1.dll      6.2.10586.0
CRYPT32.dll     6.2.10586.0
MMDevAPI.DLL    6.2.10586.0
PROPSYS.dll     7.0.10586.0
OLEAUT32.dll    6.2.10586.0
wdmaud.drv      6.2.10586.0
AVRT.dll        6.2.10586.0
ksuser.dll      6.2.10586.0
AUDIOSES.DLL    6.2.10586.71
wintypes.dll    6.2.10586.103
msacm32.drv     6.2.10586.0
MSACM32.dll     6.2.10586.0
midimap.dll     6.2.10586.0
clbcatq.dll     2001.12.10941.16384
dsound.dll      6.2.10586.0
igdumdim32.dll  20.19.15.4312
igdusc32.dll    20.19.15.4312

Windows 6.2.9200
DrMingw 0.7.7


The project is over here on github, and I think it may be worth something for release builds, as it'll give far more information than 'I got a blank screen'..

It's just a suggestion, but for building the project it's a pretty minimal change.

Return to “Development”

Who is online

Users browsing this forum: No registered users and 1 guest