GNU bug report logs - #9857
starting repl from C broken

Previous Next

Package: guile;

Reported by: Tristan Colgate <tcolgate <at> gmail.com>

Date: Mon, 24 Oct 2011 12:39:02 UTC

Severity: normal

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

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: Andy Wingo <wingo <at> pobox.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#9857: closed (starting repl from C broken)
Date: Wed, 16 Nov 2011 18:46:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 16 Nov 2011 19:44:49 +0100
with message-id <87lirflxem.fsf <at> pobox.com>
and subject line Re: bug#9857: starting repl from C broken
has caused the debbugs.gnu.org bug report #9857,
regarding starting repl from C broken
to be marked as done.

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


-- 
9857: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9857
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Tristan Colgate <tcolgate <at> gmail.com>
To: bug-guile <at> gnu.org
Subject: starting repl from C broken
Date: Mon, 24 Oct 2011 12:29:23 +0100
Hi,

The folliowing fails for me on current master:

#include <libguile.h>

static void
inner_main (void *closure, int argc, char **argv)
{
 scm_c_use_module("system repl repl");
 scm_c_eval_string("(start-repl)");
}

int
main (int argc, char **argv)
{
 scm_boot_guile (argc, argv, inner_main, 0);
 return 0; /* never reached */
}

I get:

Backtrace:
In ice-9/boot-9.scm:
 162: 14 [catch #t #<catch-closure ed3680> ...]
 170: 13 [#<procedure e8f6e0 ()>]
In unknown file:
  ?: 12 [catch-closure]
  ?: 11 [call-with-input-string "(start-repl)" ...]
In ice-9/boot-9.scm:
2082: 10 [save-module-excursion #<procedure 11cf240 at
ice-9/eval-string.scm:65:9 ()>]
In ice-9/eval-string.scm:
 44: 9 [read-and-eval #<input: string ce2680> #:lang ...]
 37: 8 [lp (start-repl)]
In system/repl/repl.scm:
 135: 7 [start-repl # # #f]
In system/repl/common.scm:
 135: 6 [make-repl # #f]
In system/base/language.scm:
 58: 5 [lookup-language #]
In ice-9/boot-9.scm:
2476: 4 [#<procedure e832a0 at ice-9/boot-9.scm:2464:4 (name
#:optional autoload version #:key ensure)> # ...]
2733: 3 [try-module-autoload (language # spec) #f]
 550: 2 [map #<procedure e86a20 at ice-9/boot-9.scm:2733:31 (elt)> (language #)]
2734: 1 [#<procedure e86a20 at ice-9/boot-9.scm:2733:31 (elt)> #]
In unknown file:
  ?: 0 [symbol->string #]

ERROR: In procedure symbol->string:
ERROR: In procedure symbol->string: Wrong type argument in position 1
(expecting symbol): #<<language> name: scheme title: Scheme reader:
#<procedure 104a020 at language/scheme/spec.scm:34:16 (port env)>
printer: #<procedure write (_ #:optional _)> parser: #f compilers:
((tree-il . #<procedure compile-tree-il (x e opts)>)) decompilers:
((tree-il . #<procedure decompile-tree-il (x env opts)>)) evaluator:
#<procedure 1050dc0 at language/scheme/spec.scm:45:16 (x module)>
joiner: #f make-default-environment: #<procedure 1050d40 at
language/scheme/spec.scm:48:16 ()>>

Some code along these lines has been working OK on 2.0+ for a while,
not quite sure when it broke.

--
Tristan Colgate-McFarlane
----
  "You can get all your daily vitamins from 52 pints of guiness, and a
glass of milk"



-- 
Tristan Colgate-McFarlane
----
  "You can get all your daily vitamins from 52 pints of guiness, and a
glass of milk"


[Message part 3 (message/rfc822, inline)]
From: Andy Wingo <wingo <at> pobox.com>
To: Tristan Colgate <tcolgate <at> gmail.com>
Cc: 9857-done <at> debbugs.gnu.org
Subject: Re: bug#9857: starting repl from C broken
Date: Wed, 16 Nov 2011 19:44:49 +0100
On Mon 24 Oct 2011 13:29, Tristan Colgate <tcolgate <at> gmail.com> writes:

> Hi,
>
> The folliowing fails for me on current master:
>
> #include <libguile.h>
>
> static void
> inner_main (void *closure, int argc, char **argv)
> {
>  scm_c_use_module("system repl repl");
>  scm_c_eval_string("(start-repl)");
> }
>

Sorry we didn't get this in time for 2.0.3.  It is now fixed on
stable-2.0, I think.

Andy
-- 
http://wingolog.org/


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

Previous Next


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