pastebin - collaborative debugging tool
nrubsig.kpaste.net RSS


gcc releases/gcc-13.1.0 crash compiling x86_64-pc-cygwin/bits/extc++.h.gch/O2g.gch
Posted by Anonymous on Mon 18th Mar 2024 10:50
raw | new post
modification of post by Anonymous (view diff)

  1. Compile with:
  2. $ git -c 'checkout.workers=16' clone -b releases/gcc-13.1.0 --single-branch ../gcc.bundle
  3. $ cd gcc
  4. $ configure
  5. $ yes | make -j8 all
  6.  
  7. Log output:
  8. ---- snip ----
  9. /cygdrive/m/builds/gcc20240317_50m/gcc/host-x86_64-pc-cygwin/gcc/xgcc -shared-libgcc -B/cygdrive/m/builds/gcc20240317_50m/gcc/host-x86_64-pc-cygwin/gcc -nostdinc++ -L/cygdrive/m/builds/gcc20240317_50m/gcc/x86_64-pc-cygwin/libstdc++-v3/src -L/cygdrive/m/builds/gcc20240317_50m/gcc/x86_64-pc-cygwin/libstdc++-v3/src/.libs -L/cygdrive/m/builds/gcc20240317_50m/gcc/x86_64-pc-cygwin/libstdc++-v3/libsupc++/.libs -B/usr/local/x86_64-pc-cygwin/bin/ -B/usr/local/x86_64-pc-cygwin/lib/ -isystem /usr/local/x86_64-pc-cygwin/include -isystem /usr/local/x86_64-pc-cygwin/sys-include   -fno-checking -x c++-header -nostdinc++ -g -O2  -I/cygdrive/m/builds/gcc20240317_50m/gcc/x86_64-pc-cygwin/libstdc++-v3/include/x86_64-pc-cygwin -I/cygdrive/m/builds/gcc20240317_50m/gcc/x86_64-pc-cygwin/libstdc++-v3/include -I/cygdrive/m/builds/gcc20240317_50m/gcc/libstdc++-v3/libsupc++  -O2 -g /cygdrive/m/builds/gcc20240317_50m/gcc/libstdc++-v3/include/precompiled/stdtr1c++.h -o x86_64-pc-cygwin/bits/stdtr1c++.h.gch/O2g.gch
  10. mkdir -p ./x86_64-pc-cygwin/bits/extc++.h.gch
  11. /cygdrive/m/builds/gcc20240317_50m/gcc/host-x86_64-pc-cygwin/gcc/xgcc -shared-libgcc -B/cygdrive/m/builds/gcc20240317_50m/gcc/host-x86_64-pc-cygwin/gcc -nostdinc++ -L/cygdrive/m/builds/gcc20240317_50m/gcc/x86_64-pc-cygwin/libstdc++-v3/src -L/cygdrive/m/builds/gcc20240317_50m/gcc/x86_64-pc-cygwin/libstdc++-v3/src/.libs -L/cygdrive/m/builds/gcc20240317_50m/gcc/x86_64-pc-cygwin/libstdc++-v3/libsupc++/.libs -B/usr/local/x86_64-pc-cygwin/bin/ -B/usr/local/x86_64-pc-cygwin/lib/ -isystem /usr/local/x86_64-pc-cygwin/include -isystem /usr/local/x86_64-pc-cygwin/sys-include   -fno-checking -x c++-header -nostdinc++ -g -O2  -I/cygdrive/m/builds/gcc20240317_50m/gcc/x86_64-pc-cygwin/libstdc++-v3/include/x86_64-pc-cygwin -I/cygdrive/m/builds/gcc20240317_50m/gcc/x86_64-pc-cygwin/libstdc++-v3/include -I/cygdrive/m/builds/gcc20240317_50m/gcc/libstdc++-v3/libsupc++  -O2 -g /cygdrive/m/builds/gcc20240317_50m/gcc/libstdc++-v3/include/precompiled/extc++.h -o x86_64-pc-cygwin/bits/extc++.h.gch/O2g.gch
  12. *** starting 'dumper "M:/builds/gcc20240317_50m/gcc/host-x86_64-pc-cygwin/gcc/cc1plus.exe" 8244' for pid 0, tid 1164
  13. make[5]: *** [Makefile:1938: x86_64-pc-cygwin/bits/extc++.h.gch/O2g.gch] Error 1
  14. make[5]: Leaving directory '/cygdrive/m/builds/gcc20240317_50m/gcc/x86_64-pc-cygwin/libstdc++-v3/include'
  15. make[4]: *** [Makefile:576: all-recursive] Error 1
  16. make[4]: Leaving directory '/cygdrive/m/builds/gcc20240317_50m/gcc/x86_64-pc-cygwin/libstdc++-v3'
  17. make[3]: *** [Makefile:501: all] Error 2
  18. make[3]: Leaving directory '/cygdrive/m/builds/gcc20240317_50m/gcc/x86_64-pc-cygwin/libstdc++-v3'
  19. make[2]: *** [Makefile:18286: all-stage1-target-libstdc++-v3] Error 2
  20. make[2]: Leaving directory '/cygdrive/m/builds/gcc20240317_50m/gcc'
  21. make[1]: *** [Makefile:25094: stage1-bubble] Error 2
  22. make[1]: Leaving directory '/cygdrive/m/builds/gcc20240317_50m/gcc'
  23. make: *** [Makefile:1080: all] Error 2
  24. ---- snip ----
  25.  
  26. Stack trace:
  27. ---- snip ----
  28. roland_mainz@wingrendel02 /cygdrive/m/builds/gcc20240317_50m/gcc/x86_64-pc-cygwin/libstdc++-v3/include
  29. $ gdb ../../../host-x86_64-pc-cygwin/gcc/cc1plus.exe cc1plus.exe.core
  30. GNU gdb (GDB) (Cygwin 13.2-1) 13.2
  31. [snip]
  32. [New Thread 0x48c]
  33. [New Thread 0x18c4]
  34. [New Thread 0x1370]
  35. #0  0x00007ffaa106d664 in ntdll!ZwDelayExecution () from C:/Windows/SYSTEM32/ntdll.dll
  36. [Current thread is 1 (Thread 0x48c)]
  37. (gdb) bt
  38. #0  0x00007ffaa106d664 in ntdll!ZwDelayExecution () from C:/Windows/SYSTEM32/ntdll.dll
  39. #1  0x00007ffa9ec9b62e in SleepEx () from C:/Windows/System32/KERNELBASE.dll
  40. #2  0x00007ffa9429e567 in secure_getenv () from C:/cygwin64/bin/cygwin1.dll
  41. #3  0x00007ffa942a01cc in secure_getenv () from C:/cygwin64/bin/cygwin1.dll
  42. #4  0x00007ffaa10723af in ntdll!.chkstk () from C:/Windows/SYSTEM32/ntdll.dll
  43. #5  0x00007ffaa10214b4 in ntdll!RtlRaiseException () from C:/Windows/SYSTEM32/ntdll.dll
  44. #6  0x00007ffaa1070ebe in ntdll!KiUserExceptionDispatcher () from C:/Windows/SYSTEM32/ntdll.dll
  45. #7  0x0000000100cba6ce in gt_pch_p_13string_concat (this_obj=0x6ffffd85ccb8, x_p=0x6ffff7b4ebe0, op=0x100be765e <relocate_ptrs(void*, void*, void*)>, cookie=0x7ffffc7a0) at gtype-desc.cc:8199
  46. #8  0x0000000100be801c in gt_pch_save (f=0xa000b5060) at ../.././gcc/ggc-common.cc:641
  47. #9  0x000000010092e332 in c_common_write_pch () at ../.././gcc/c-family/c-pch.cc:175
  48. #10 0x00000001005846da in c_parse_final_cleanups () at ../.././gcc/cp/decl2.cc:4935
  49. #11 0x000000010092ca4d in c_common_parse_file () at ../.././gcc/c-family/c-opts.cc:1266
  50. #12 0x000000010102e259 in compile_file () at ../.././gcc/toplev.cc:444
  51. #13 0x0000000101031ba0 in do_compile (no_backend=false) at ../.././gcc/toplev.cc:2125
  52. #14 0x0000000101031ffb in toplev::main (this=0x7ffffcc2a, argc=44, argv=0xa00020b70) at ../.././gcc/toplev.cc:2277
  53. #15 0x00000001027d2164 in main (argc=44, argv=0xa00020b70) at ../.././gcc/main.cc:39
  54. ---- snip ----
  55.  
  56. IRC debate, including workaround:
  57. ---- snip ----
  58. 11:20:48   jakub | nrubsig: bugs should be reported to bugzilla, not here; I'm afraid I have hundreds of bugs to look at for targets I care about, so unless you can reproduce  
  59.                  | it on other targets, it will have to be somebody who cares about Windows to analyze it                                                                        
  60. 11:22:39     <-- | mcdarienzo (~mcdarienz@67-1-156-28.tcso.qwest.net) has quit (Ping timeout: 480 seconds)                                                                      
  61. 11:24:43  d0ggie | pch is broken on windows as allocation using the fixed address might not succeed in general and there is fixed retry loop using delay that kills all          
  62.                  | performance benefits                                                                                                                                          
  63. 11:26:55 nrubsig | d0ggie: OUCH. Where is that documented ?                                                                                                                      
  64. 11:27:13 jwakely | it probably isn't                                                                                                                                            
  65. 11:27:54 jwakely | but maybe --disable-libstdcxx-pch should be the default on Windows                                                                                            
  66. 11:28:42 jwakely | (and maybe everywhere else too ;-)                                                                                                                            
  67. 11:28:45  d0ggie | hmm.. actually, cygwin mght not use win32 code so then the next best thing is to update cygwin and disable aslr et. al.                                      
  68. 11:28:49    sam_ | jwakely++                                                                                                                                                    
  69. 11:31:06     --> | mcdarienzo (~mcdarienz@67-1-156-28.tcso.qwest.net) has joined #gcc                                                                                            
  70. 11:31:52   jakub | note, since a few years PCH does support relocation (meant e.g. for Linux PIE support), but it needs extra target support which likely isn't done for Windows
  71. 11:33:28  d0ggie | but if you want to look at it, the related cygwin emulation code might look a bit cryptic but it is not spread across the entire project but a few files
  72. ---- snip ----

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at