[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: John Darrington
Subject: MemopMemmmmo
Date: Sat, 17 Mar 2012 13:44:14 +0000
User-agent: Mutt/1.5.18 (2008-05-17)

I've noticed that it's very easy to cause PSPP to crash with 
"memory exhausted" by trying to run a procedure such as MEANS
or EXAMINE with a categorical variable which contains many distinct

Clearly running such a procedure is stupid thing to do, and probably
means the user doesn't know what he's doing.  However it could also
be an innocent mistake (like a wrong click in the gui).  But whatever,
.. I think it's bad when a wrong input causes a crash.

I think it might improve matters if we made the function
settings_get_workspace_cases a little more intelligent.  This function
returns  a recommendation on how much memory a procedure can malloc.
At very least, it shouldn't recommend mallocing more memory than is 
currently available in core.  Maybe it should also be somewhat adaptive in
the sense that it doesn't return more than 50% of the available memory.

What do you think?


PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See or any PGP keyserver for public key.

Attachment: signature.asc
Description: Digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]