GNU bug report logs - #10914
Segfault when creating vector >= 2^16

Previous Next

Package: guile;

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

Date: Wed, 29 Feb 2012 23:59:01 UTC

Severity: normal

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: tracker <at> debbugs.gnu.org
Subject: bug#10914: closed (Segfault when creating vector >= 2^16)
Date: Wed, 07 Mar 2012 21:54:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 07 Mar 2012 22:52:35 +0100
with message-id <871up4gjto.fsf <at> gnu.org>
and subject line Re: bug#10914: Segfault when creating vector >= 2^16
has caused the debbugs.gnu.org bug report #10914,
regarding Segfault when creating vector >= 2^16
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
10914: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10914
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Tobias Brandt <tob.brandt <at> googlemail.com>
To: bug-guile <at> gnu.org
Subject: Segfault when creating vector >= 2^16
Date: Thu, 1 Mar 2012 00:57:41 +0100
Guile segfaults when a vector is created with size >= 2^16 = 65535.
Observe:

scheme@(guile-user)> (define v1 (make-vector 65534))
scheme@(guile-user)> (define v2 (make-vector 65535))
Segmentation fault

It also fails for greater sizes.

Curiously enough, this works:
scheme@(guile-user)> (define v2 (list->vector (iota 65535)))


[Message part 3 (message/rfc822, inline)]
From: ludo <at> gnu.org (Ludovic Courtès)
To: Tobias Brandt <tob.brandt <at> googlemail.com>
Cc: 10914-done <at> debbugs.gnu.org
Subject: Re: bug#10914: Segfault when creating vector >= 2^16
Date: Wed, 07 Mar 2012 22:52:35 +0100
Hi Tobias,

Tobias Brandt <tob.brandt <at> googlemail.com> skribis:

> If nobody can reproduce this error in HEAD, I suggest closing
> the bug. There is probably something wrong with my setup.

To my surprise, the bug did exist in HEAD (I had tested only 2.0.)
It is fixed in c336514976ed3f2b2b20c56149ede7f5ec549c52.

But really, HEAD is for the brave.  It currently aborts in the middle of
./check-guile for me.  ;-)

Thanks,
Ludo’.


This bug report was last modified 13 years and 79 days ago.

Previous Next


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