https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88750
Bug ID: 88750 Summary: [9.0 regression] runtime error in statically binaries Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: juergen.reuter at desy dot de Target Milestone: --- This is really tricky, in our test-suite, we do have a static test. You can get our code from http://whizard.tp.nt.uni-siegen.de/tarballs/whizard-nightly-latest.tar.gz You need gfortran [gcc/g++ for interfaces] as well as the OCaml compiler. Then you do ./configure, make -j4, make -j4 check. The check you can also just perform `make check` in the build/tests/functional_tests directory. There are two tests, static_1.run and static_2.run which you can separately run as `make check TESTS="static_1.run static_2.run". Both segfault now as static_2.exe(65376,0x1186ee5c0) malloc: *** error for object 0x115f18ee0: pointer being freed was not allocated static_2.exe(65376,0x1186ee5c0) malloc: *** set a breakpoint in malloc_error_break to debug ./static_2.run: line 25: 65376 Abort trap: 6 ./$exe $exe.sin --logfile $exe.log --no-library --no-logging --no-model --no-banner --rebuild They have been linked using gfortran. The operating system is MAC OS X 10.14.2 and XCode 10.1. I couldn't yet reproduce this on Linux, and I haven't yet been able to boil this down to a simpler example. Unfortunately, on MAC OS X I somehow cannot even run gdb properly. I hope you can help.