GNU bug report logs - #18004
export does not check that its arguments are symbols or pairs of symbols

Previous Next

Package: guile;

Reported by: Tobias Brandt <tob.brandt <at> gmail.com>

Date: Sat, 12 Jul 2014 17:21:01 UTC

Severity: normal

Done: Mark H Weaver <mhw <at> netris.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tobias Brandt <tob.brandt <at> gmail.com>
To: bug-guile <at> gnu.org
Subject: export does not check that its arguments are symbols or pairs of
 symbols
Date: Sat, 12 Jul 2014 16:59:01 +0200
[Message part 1 (text/plain, inline)]
Guile happily compiles the following module:

(define-module (test))
(define (foo) #t)
(export (foo))

This exports foo as (), because (foo) = (foo . ()) and export treats pairs
as renaming.

If you use this module, readline breaks because it looks up the module's
exported symbols and then tries to call (symbol->string '()):

scheme@(guile-user)> (use-modules (test))
scheme@(guile-user)> x<TAB>
While reading expression:
ERROR: In procedure symbol->string: Wrong type argument in position 1
(expecting symbol): ()
[Message part 2 (text/html, inline)]

This bug report was last modified 10 years and 317 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.