unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#58154: fluid-ref* with negative index segfaults
@ 2022-09-28 22:33 Maxime Devos
  2022-09-30 14:39 ` lloda
  0 siblings, 1 reply; 2+ messages in thread
From: Maxime Devos @ 2022-09-28 22:33 UTC (permalink / raw)
  To: 58154


[-- Attachment #1.1.1: Type: text/plain, Size: 865 bytes --]

antipode@antipode ~$ guile -c '(fluid-ref* (make-fluid) -1)'
Backtrace:
In ice-9/boot-9.scm:
   1752:10  6 (with-exception-handler _ _ #:unwind? _ # _)
In unknown file:
            5 (apply-smob/0 #<thunk 7fdfaaa642e0>)
In ice-9/boot-9.scm:
     724:2  4 (call-with-prompt ("prompt") #<procedure 7fdfaaa76cc0 …> …)
In ice-9/eval.scm:
     619:8  3 (_ #(#(#<directory (guile-user) 7fdfaaa69c80>)))
In ice-9/command-line.scm:
    185:19  2 (_ #<input: string 7fdfaaa63850>)
In unknown file:
            1 (eval (fluid-ref* (make-fluid) -1) #<directory (guile-u…>)
            0 (fluid-ref* #<fluid 7fdfaaa77e20> -1)

ERROR: In procedure fluid-ref*:
Value out of range Segmentatiefout

While the negative index was bogus, I don't think segfaulting is the 
answer, a 'Value out of range' exceptio nwould have sufficed.

Greetings,
Maxime.

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 929 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#58154: fluid-ref* with negative index segfaults
  2022-09-28 22:33 bug#58154: fluid-ref* with negative index segfaults Maxime Devos
@ 2022-09-30 14:39 ` lloda
  0 siblings, 0 replies; 2+ messages in thread
From: lloda @ 2022-09-30 14:39 UTC (permalink / raw)
  To: Maxime Devos; +Cc: 58154-done


Fixed in c0004442b7691f59a0e37869ef288eb26382ad9e. Thank you!






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-30 14:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-28 22:33 bug#58154: fluid-ref* with negative index segfaults Maxime Devos
2022-09-30 14:39 ` lloda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).