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: Tobias Brandt <tob.brandt <at> googlemail.com>
Subject: bug#10914: closed (Re: bug#10914: Segfault when creating vector
 >= 2^16)
Date: Wed, 07 Mar 2012 21:54:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#10914: Segfault when creating vector >= 2^16

which was filed against the guile package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 10914 <at> debbugs.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: 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’.

[Message part 3 (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)))



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.