GNU bug report logs - #24454
GOOPS problem with GNU Guile 2.1.4

Previous Next

Package: guile;

Reported by: Jan Wedekind <jan <at> wedesoft.de>

Date: Sat, 17 Sep 2016 20:48:02 UTC

Severity: normal

Done: Andy Wingo <wingo <at> pobox.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 24454 in the body.
You can then email your comments to 24454 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#24454; Package guile. (Sat, 17 Sep 2016 20:48:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jan Wedekind <jan <at> wedesoft.de>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Sat, 17 Sep 2016 20:48:02 GMT) Full text and rfc822 format available.

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

From: Jan Wedekind <jan <at> wedesoft.de>
To: bug-guile <at> gnu.org
Subject: GOOPS problem with GNU Guile 2.1.4 
Date: Sat, 17 Sep 2016 21:43:32 +0100 (BST)
Hi,

The following program works fine under GNU Guile 2.0.12:

    (use-modules (oop goops))
    (define-generic native-type)
    (define-method (native-type (i <integer>) . args) 0)
    (define-method (native-type (i <real>) . args) 1)
    (define-method (native-type (b <boolean>) . args) 2)

    (native-type 1)
    (native-type 1.3)
    (native-type #f)
    (native-type 1 1.2)
    (native-type 1.4 2)
    (native-type 1.4 2 3)
    (native-type 1.4 1.5)
    (native-type #f #t)

However under GNU Guile 2.1.4 [1] it fails with an error in 
"multiple-arity-dispatcher":

    oop/goops.scm:1336:2: oop/goops.scm:1336:2: In procedure vector-ref: Value out of range: 3

    Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.

Getting the backtrace didn't work:

    ,bt
    In oop/goops.scm:
    While executing meta-command:
    ERROR: In procedure vector-set!: Value out of range: 5

Regards
Jan

[1] http://alpha.gnu.org/gnu/guile/guile-2.1.4.tar.xz




Reply sent to Andy Wingo <wingo <at> pobox.com>:
You have taken responsibility. (Wed, 22 Feb 2017 22:13:01 GMT) Full text and rfc822 format available.

Notification sent to Jan Wedekind <jan <at> wedesoft.de>:
bug acknowledged by developer. (Wed, 22 Feb 2017 22:13:02 GMT) Full text and rfc822 format available.

Message #10 received at 24454-done <at> debbugs.gnu.org (full text, mbox):

From: Andy Wingo <wingo <at> pobox.com>
To: Jan Wedekind <jan <at> wedesoft.de>
Cc: 24454-done <at> debbugs.gnu.org
Subject: Re: bug#24454: GOOPS problem with GNU Guile 2.1.4
Date: Wed, 22 Feb 2017 23:11:55 +0100
On Sat 17 Sep 2016 22:43, Jan Wedekind <jan <at> wedesoft.de> writes:

> The following program works fine under GNU Guile 2.0.12:
>
>     (use-modules (oop goops))
>     (define-generic native-type)
>     (define-method (native-type (i <integer>) . args) 0)
>     (define-method (native-type (i <real>) . args) 1)
>     (define-method (native-type (b <boolean>) . args) 2)
>
>     (native-type 1)
>     (native-type 1.3)
>     (native-type #f)
>     (native-type 1 1.2)
>     (native-type 1.4 2)
>     (native-type 1.4 2 3)
>     (native-type 1.4 1.5)
>     (native-type #f #t)
>
> However under GNU Guile 2.1.4 [1] it fails with an error in
> "multiple-arity-dispatcher":

Thanks for the bug report!  Fixed in master.

> Getting the backtrace didn't work:

Oops :P  I fixed this too.

Cheers,

Andy




Information forwarded to bug-guile <at> gnu.org:
bug#24454; Package guile. (Sun, 26 Feb 2017 09:48:02 GMT) Full text and rfc822 format available.

Message #13 received at 24454-done <at> debbugs.gnu.org (full text, mbox):

From: Jan Wedekind <jan <at> wedesoft.de>
To: Andy Wingo <wingo <at> pobox.com>
Cc: 24454-done <at> debbugs.gnu.org
Subject: Re: bug#24454: GOOPS problem with GNU Guile 2.1.4
Date: Sun, 26 Feb 2017 09:47:41 +0000 (GMT)
On Wed, 22 Feb 2017, Andy Wingo wrote:

> On Sat 17 Sep 2016 22:43, Jan Wedekind <jan <at> wedesoft.de> writes:
>
>> The following program works fine under GNU Guile 2.0.12:
>>
>>     (use-modules (oop goops))
>>     (define-generic native-type)
>>     (define-method (native-type (i <integer>) . args) 0)
>>     (define-method (native-type (i <real>) . args) 1)
>>     (define-method (native-type (b <boolean>) . args) 2)
>>
>>     (native-type 1)
>>     (native-type 1.3)
>>     (native-type #f)
>>     (native-type 1 1.2)
>>     (native-type 1.4 2)
>>     (native-type 1.4 2 3)
>>     (native-type 1.4 1.5)
>>     (native-type #f #t)
>>
>> However under GNU Guile 2.1.4 [1] it fails with an error in
>> "multiple-arity-dispatcher":
>
> Thanks for the bug report!  Fixed in master.
>
>> Getting the backtrace didn't work:
>
> Oops :P  I fixed this too.
>
> Cheers,
>
> Andy

Thanks for fixing it. I can confirm that it works now.

Regards
Jan

"The purpose of abstraction is not to be vague, but to create a new semantic level
in which one can be absolutely precise." - Dijkstra






bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 26 Mar 2017 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 87 days ago.

Previous Next


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