GNU bug report logs -
#51445
Better error message for OOM
Previous Next
Full log
View this message in rfc822 format
This is more of a feature request. Apologies if this is an annoying
request.
So I made a pretty noobie-like mistake a few days ago using (guix
records). When one tries to create a <record-configuration>, he
invariably creates an infinite number of records. The guile compiler
eventually runs out of memory and stops compiling with an error
message like:
fish: Job 1, 'guile break-guile-compiler.scm' terminated by signal SIGKILL (Forced quit)
I submitted this "bug" report to bug-guix <at> gnu.org as well.
http://issues.guix.gnu.org/51383
It probably will not be fixed at the (guix records) macro level
anytime soon, so I am submitting it here in case guile developers are
interested in improving their compiler error messages. I came across
this compiler error while debugging my 1,000 line program. Trying to
figure out what was wrong without any hints from appropriate error
messages was slightly confusing.
Here is the bad code:
(use-modules (guix records))
(define-record-type* <record-configuration>
record-configuration make-record-configuration
record-configuration?
(command record-configuration-command
;; the error is here is on the next line
(default (record-configuration))))
(record-configuration)
Thanks,
Joshua
This bug report was last modified 1 year and 130 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.