Opened 2 years ago

#13389 new bug

Strange behaviours of memory with GHCi under Windows and Linux

Reported by: vanto Owned by:
Priority: normal Milestone:
Component: GHCi Version: 8.0.2
Keywords: Cc: Phyx-
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Other Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

With Windows :

Initially the memory in the computer is at 34% use. I open 30 consoles Windows of GHCi. The memory grows until 70% use. I decided to crash a console with this function

f x = x**6 + f x

Suddenly the % of memory fall to around 35%. Then I decided to open 30 others consoles Windows GHCi. The memory grows to 83% use. I crashed a console with the same function and the memory fall to 41%. Then I looked at the task manager and I see 29 process of GHC had a memory between 444K and 356K, and 30 process of GHC had a memory between 34704K and 20160K. I decided to made a crash dump file with a process of GHC with 440K of memory. When the crash dump file begin, the memory of the process grows to 80376K and stay until the dump file stop to write.

With Linux :

I repeted the same behaviour. Initially the memry had 29% use. After the crash of GHCi the memory fall to 8% use. I looked at the task manager and somes process of GHC had 40Kio and others 8192o. I decided to stop (not to kill) a process of GHC and then to continue it. After that the memory of the process grows to 75Mio.

Hope this help!

Change History (0)

Note: See TracTickets for help on using tickets.