Ticket #3247 (closed bug: duplicate)

Opened 4 years ago

Last modified 4 years ago

GHCI segfaults when per-thread stack size is larger than max stack size

Reported by: earthy Owned by: simonmar
Priority: normal Milestone: 6.12.1
Component: Runtime System Version: 6.10.2
Keywords: Cc:
Operating System: MacOS X Architecture: x86
Type of failure: Difficulty: Easy (less than 1 hour)
Test Case: Blocked By:
Blocking: Related Tickets:

Description (last modified by simonmar) (diff)

This happened to me this morning;

n142233:thesparse arthurvl$ ghci +RTS -H1024M -k128M -RTS
Segmentation fault
n142233:thesparse arthurvl$ ghci +RTS -H1024M -k8M -RTS
Bus error

Obviously this is a typo, but the response is somewhat unexpected. And yes, the heap-hint is needed, as without the heap hint it turns into:

n142233:thesparse arthurvl$ ghci +RTS -k8M -RTS
Too late for parseStaticFlags: call it before newSession
n142233:thesparse arthurvl$ ghci +RTS -k128M -RTS
Too late for parseStaticFlags: call it before newSession

Change History

Changed 4 years ago by simonmar

  • owner set to simonmar
  • difficulty set to Easy (1 hr)
  • component changed from GHCi to Runtime System
  • description modified (diff)
  • milestone set to 6.12.1

Changed 4 years ago by simonmar

dup of #3156

Changed 4 years ago by simonmar

  • status changed from new to closed
  • resolution set to duplicate

Changed 4 years ago by simonmar

  • difficulty changed from Easy (1 hr) to Easy (less than 1 hour)
Note: See TracTickets for help on using tickets.