Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@hasufell
Created June 5, 2021 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hasufell/8ba1e2041dda7163561a759b0446c1fa to your computer and use it in GitHub Desktop.
Save hasufell/8ba1e2041dda7163561a759b0446c1fa to your computer and use it in GitHub Desktop.
$ gdb --ex r --args $(cygpath.exe -w "C:\Users\hasuf\ghcup-hs\dist-newstyle\build\x86_64-windows\ghc-8.10.4\ghcup-0.1.14.2\x\ghcup\build\ghcup\ghcup.exe") -c list
GNU gdb (GDB) 10.2
Copyright (C) 2021 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:
<https://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"...
Reading symbols from C:\Users\hasuf\ghcup-hs\dist-newstyle\build\x86_64-windows\ghc-8.10.4\ghcup-0.1.14.2\x\ghcup\build\ghcup\ghcup.exe...
Starting program: C:\Users\hasuf\ghcup-hs\dist-newstyle\build\x86_64-windows\ghc-8.10.4\ghcup-0.1.14.2\x\ghcup\build\ghcup\ghcup.exe -c list
[New Thread 11580.0x2bd8]
[New Thread 11580.0x27a8]
[New Thread 11580.0x2990]
[New Thread 11580.0x13bc]
[New Thread 11580.0xaf8]
[New Thread 11580.0x2c9c]
warning: HEAP[ghcup.exe]:
warning: Heap block at 000000000319CBD0 modified at 000000000319CBF0 past requested size of 10
Thread 1 received signal SIGTRAP, Trace/breakpoint trap.
0x00007ff99d6aa263 in ntdll!RtlRegisterSecureMemoryCacheCallback ()
from C:\Windows\SYSTEM32\ntdll.dll
(gdb) bt
#0 0x00007ff99d6aa263 in ntdll!RtlRegisterSecureMemoryCacheCallback ()
from C:\Windows\SYSTEM32\ntdll.dll
#1 0x00007ff99d6a68ef in ntdll!RtlZeroHeap ()
from C:\Windows\SYSTEM32\ntdll.dll
#2 0x00007ff99d66cd82 in ntdll!memset () from C:\Windows\SYSTEM32\ntdll.dll
#3 0x00007ff99d6a9111 in ntdll!RtlRegisterSecureMemoryCacheCallback ()
from C:\Windows\SYSTEM32\ntdll.dll
#4 0x00007ff99d5d5cc1 in ntdll!RtlGetCurrentServiceSessionId ()
from C:\Windows\SYSTEM32\ntdll.dll
#5 0x00007ff99d5d5b74 in ntdll!RtlGetCurrentServiceSessionId ()
from C:\Windows\SYSTEM32\ntdll.dll
#6 0x00007ff99d5d47b1 in ntdll!RtlFreeHeap ()
from C:\Windows\SYSTEM32\ntdll.dll
#7 0x00007ff99ca69c9c in msvcrt!free () from C:\Windows\System32\msvcrt.dll
#8 0x0000000001c9c6d3 in runCFinalizers (list=<optimized out>)
at rts\Weak.c:37
#9 0x0000000001c9c769 in runSomeFinalizers (all=all@entry=false)
at rts\Weak.c:248
#10 0x0000000001c61d88 in doIdleGCWork (cap=<optimized out>,
all=all@entry=false) at rts\sm\GC.c:2062
#11 0x0000000001ca07d4 in scheduleYield (task=0x3027ad0, pcap=0x293fbb0)
at rts\Schedule.c:682
#12 schedule (
initialCapability=initialCapability@entry=0x1eba860 <MainCapability>,
task=<optimized out>, task@entry=0x3027ad0) at rts\Schedule.c:307
#13 0x0000000001ca2144 in scheduleWaitThread (tso=0x7ff4fdb05ba8,
ret=ret@entry=0x0, pcap=pcap@entry=0x293fce8) at rts\Schedule.c:2606
#14 0x0000000001c9be2a in rts_evalLazyIO (cap=cap@entry=0x293fce8,
p=p@entry=0x1d17410 <ZCMain_main_closure>, ret=ret@entry=0x0)
at rts\RtsAPI.c:530
#15 0x0000000001c7463b in hs_main (argc=<optimized out>,
argv=<optimized out>, main_closure=0x1d17410 <ZCMain_main_closure>,
rts_config=...) at rts\RtsMain.c:72
#16 0x000000000049c61b in main ()
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment