
#14192: Change to 1TB VIRT allocation makes it impossible to core-dump Haskell programs -------------------------------------+------------------------------------- Reporter: nh2 | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Runtime System | Version: 8.0.2 Resolution: | Keywords: gdb, | debugging Operating System: Unknown/Multiple | Architecture: Type of failure: Runtime | Unknown/Multiple performance bug | Test Case: Blocked By: | Blocking: Related Tickets: #9706 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by simonmar): Ah, so this is something to do with gdb's generate-core-file. Ordinary core dumps work just fine, e.g. if I send SIGQUIT to the process by hitting `^\`: {{{
ghc --version The Glorious Glasgow Haskell Compilation System, version 8.0.2 ghc foo.hs ./foo ^\Quit (core dumped) ls -l core -rw------- 1 smarlow smarlow 1589248 Sep 8 07:26 core gdb foo core GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1 Copyright (C) 2016 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-linux-gnu". 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"... Reading symbols from foo...done. [New LWP 21001] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Core was generated by `./foo'. Program terminated with signal SIGQUIT, Quit. #0 0x00007fcd7124c573 in __select_nocancel () at ../sysdeps/unix/syscall- template.S:84 84 ../sysdeps/unix/syscall-template.S: No such file or directory. }}}
-- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14192#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler