unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Marius Vollmer <mvo@zagadka.de>
Cc: bug-guile@gnu.org
Subject: Re: Segmentation fault in scm_igc
Date: Mon, 08 Mar 2004 00:54:01 +0100	[thread overview]
Message-ID: <87oer8cixy.fsf@zagadka.ping.de> (raw)
In-Reply-To: <877jy0g1lg.fsf@robotron.ath.cx> (David Hansen's message of "Thu, 04 Mar 2004 14:53:47 +0100")

David Hansen <david.hansen@physik.fu-berlin.de> writes:

> Hello,
>
> my first guile code started with a SIGSEGV.  Not sure if
> it's not my fault but looks like a bug to me.

You need to initialize Guile before using it.  For example:

    static void
    inner_main (void *data, int argc, char **argv)
    {
      SCM str = scm_makfrom0str ("hello world");
      /* ... */
    }

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

-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405


_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile


      parent reply	other threads:[~2004-03-07 23:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-04 13:53 Segmentation fault in scm_igc David Hansen
2004-03-07 15:27 ` Neil Jerram
2004-03-07 23:54 ` Marius Vollmer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87oer8cixy.fsf@zagadka.ping.de \
    --to=mvo@zagadka.de \
    --cc=bug-guile@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).