* Strange reader bug (string->number)
@ 2009-08-02 13:26 Kjetil S. Matheussen
2009-08-02 16:28 ` Bug reporting system (Re: Strange reader bug (string->number)) Kjetil S. Matheussen
2009-08-04 18:38 ` Strange reader bug (string->number) Andy Wingo
0 siblings, 2 replies; 6+ messages in thread
From: Kjetil S. Matheussen @ 2009-08-02 13:26 UTC (permalink / raw)
To: bug-guile
The following bug causes some problems
with Snd: (At least the realtime extension of Snd)
*****************************
$ echo "'(4194304 262144 1.0f)" >test.scm
$ guile -l test.scm
Backtrace:
In unknown file:
?: 0* [primitive-load "test.scm"]
<unnamed port>: In procedure string->number in expression (primitive-load name):
<unnamed port>: Value out of range: 444
$
*****************************
* Tested with Guile 1.8.6 and 1.8.0. Same behaviour for both.
* It only happens when using "guile -f <filename>" from the
command line or evaluating (load <filename>) in the REPL.
* Evaluating '(4194304 262144 1.0f) in the REPL causes no error.
* Examples of lists not causing an error:
'(4194304 262144 1.0)
'(262144 1.0f)
'(4194304 1.0f)
'(1 2 3.0f)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Bug reporting system (Re: Strange reader bug (string->number))
2009-08-02 13:26 Strange reader bug (string->number) Kjetil S. Matheussen
@ 2009-08-02 16:28 ` Kjetil S. Matheussen
2009-08-03 9:33 ` Marijn Schouten (hkBst)
2009-08-04 18:38 ` Strange reader bug (string->number) Andy Wingo
1 sibling, 1 reply; 6+ messages in thread
From: Kjetil S. Matheussen @ 2009-08-02 16:28 UTC (permalink / raw)
To: Kjetil S. Matheussen; +Cc: bug-guile
On Sun, 2 Aug 2009, Kjetil S. Matheussen wrote:
>
>
> The following bug causes some problems
> with Snd: (At least the realtime extension of Snd)
>
I have tried to add this bug to the bug reporting system at
https://savannah.gnu.org/bugs/?group=guile#top
but I can't find out how to submit a new bug...?
Shouldn't there some kind of "submit new bug" button
somewhere?
Also, it would be nice if you added a link to the
bug tracker from Guile's homepage. It was hard to find.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bug reporting system (Re: Strange reader bug (string->number))
2009-08-02 16:28 ` Bug reporting system (Re: Strange reader bug (string->number)) Kjetil S. Matheussen
@ 2009-08-03 9:33 ` Marijn Schouten (hkBst)
2009-08-03 19:12 ` Kjetil S. Matheussen
0 siblings, 1 reply; 6+ messages in thread
From: Marijn Schouten (hkBst) @ 2009-08-03 9:33 UTC (permalink / raw)
To: Kjetil S. Matheussen; +Cc: bug-guile
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Kjetil S. Matheussen wrote:
>
>
> On Sun, 2 Aug 2009, Kjetil S. Matheussen wrote:
>
>>
>>
>> The following bug causes some problems
>> with Snd: (At least the realtime extension of Snd)
>>
>
> I have tried to add this bug to the bug reporting system at
> https://savannah.gnu.org/bugs/?group=guile#top
> but I can't find out how to submit a new bug...?
>
> Shouldn't there some kind of "submit new bug" button
> somewhere?
>
Under Bugs, you can Submit.
Marijn
- --
If you cannot read my mind, then listen to what I say.
Marijn Schouten (hkBst), Gentoo Lisp project, Gentoo ML
<http://www.gentoo.org/proj/en/lisp/>, #gentoo-{lisp,ml} on FreeNode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkp2rnYACgkQp/VmCx0OL2w6vQCgiaIOWXR0YWnuO17kAGR/YN3x
F0gAn11Aalf7vVijW8+rq0bP801wvONG
=OKOM
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bug reporting system (Re: Strange reader bug (string->number))
2009-08-03 9:33 ` Marijn Schouten (hkBst)
@ 2009-08-03 19:12 ` Kjetil S. Matheussen
0 siblings, 0 replies; 6+ messages in thread
From: Kjetil S. Matheussen @ 2009-08-03 19:12 UTC (permalink / raw)
To: Marijn Schouten (hkBst); +Cc: bug-guile, Kjetil S. Matheussen
On Mon, 3 Aug 2009, Marijn Schouten (hkBst) wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Kjetil S. Matheussen wrote:
>>
>>
>> On Sun, 2 Aug 2009, Kjetil S. Matheussen wrote:
>>
>>>
>>>
>>> The following bug causes some problems
>>> with Snd: (At least the realtime extension of Snd)
>>>
>>
>> I have tried to add this bug to the bug reporting system at
>> https://savannah.gnu.org/bugs/?group=guile#top
>> but I can't find out how to submit a new bug...?
>>
>> Shouldn't there some kind of "submit new bug" button
>> somewhere?
>>
>
> Under Bugs, you can Submit.
>
Thanks, didn't see that. And I _did_ try very hard
to find it! :-)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Strange reader bug (string->number)
2009-08-02 13:26 Strange reader bug (string->number) Kjetil S. Matheussen
2009-08-02 16:28 ` Bug reporting system (Re: Strange reader bug (string->number)) Kjetil S. Matheussen
@ 2009-08-04 18:38 ` Andy Wingo
2009-08-05 10:56 ` Kjetil S. Matheussen
1 sibling, 1 reply; 6+ messages in thread
From: Andy Wingo @ 2009-08-04 18:38 UTC (permalink / raw)
To: Kjetil S. Matheussen; +Cc: bug-guile
Hi Kjetil,
On Sun 02 Aug 2009 15:26, "Kjetil S. Matheussen" <k.s.matheussen@notam02.no> writes:
> The following bug causes some problems
> with Snd: (At least the realtime extension of Snd)
>
>
> *****************************
> $ echo "'(4194304 262144 1.0f)" >test.scm
> $ guile -l test.scm
Fixed in 1.9, and backported to 1.8. Thanks for the report!
commit ee0ddd21211757664092eaec631c4c76f4aae74f
Author: Andy Wingo <wingo@pobox.com>
Date: Tue Aug 4 20:29:09 2009 +0200
fix buffer overrun reading partial numbers: 1.0f, 1.0/, and 1.0+
* libguile/numbers.c (mem2decimal_from_point, mem2ureal, mem2complex):
Fix a number of cases where, for invalid numbers, we could read past
the end of the buffer. This happened in e.g. "1.0+", "1/" and "1.0f".
But I couldn't figure out how to test for these, given that the
behavior depended on the contents of uninitialized memory in the
reader buffer. We'll just have to be happy with this.
Thanks to Kjetil S. Matheussen for the report.
Andy
--
http://wingolog.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Strange reader bug (string->number)
2009-08-04 18:38 ` Strange reader bug (string->number) Andy Wingo
@ 2009-08-05 10:56 ` Kjetil S. Matheussen
0 siblings, 0 replies; 6+ messages in thread
From: Kjetil S. Matheussen @ 2009-08-05 10:56 UTC (permalink / raw)
To: Andy Wingo; +Cc: bug-guile, Kjetil S. Matheussen
On Tue, 4 Aug 2009, Andy Wingo wrote:
> Hi Kjetil,
>
> On Sun 02 Aug 2009 15:26, "Kjetil S. Matheussen" <k.s.matheussen@notam02.no> writes:
>
>> The following bug causes some problems
>> with Snd: (At least the realtime extension of Snd)
>>
>>
>> *****************************
>> $ echo "'(4194304 262144 1.0f)" >test.scm
>> $ guile -l test.scm
>
> Fixed in 1.9, and backported to 1.8. Thanks for the report!
>
Wow, that was quick. :-) Thanks!
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-08-05 10:56 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-02 13:26 Strange reader bug (string->number) Kjetil S. Matheussen
2009-08-02 16:28 ` Bug reporting system (Re: Strange reader bug (string->number)) Kjetil S. Matheussen
2009-08-03 9:33 ` Marijn Schouten (hkBst)
2009-08-03 19:12 ` Kjetil S. Matheussen
2009-08-04 18:38 ` Strange reader bug (string->number) Andy Wingo
2009-08-05 10:56 ` Kjetil S. Matheussen
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).