unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: David Hansen <david.hansen@physik.fu-berlin.de>
Subject: Segmentation fault in scm_igc
Date: Thu, 04 Mar 2004 14:53:47 +0100	[thread overview]
Message-ID: <877jy0g1lg.fsf@robotron.ath.cx> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1759 bytes --]


Hello,

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

,----[ gtst.c ]
| // -*- compile-command: "gcc -g -Wall `guile-config compile` `guile-config link` gtst.c -o gtst" -*-
| 
| #include <libguile.h>
| 
| int
| main (void)
| {
|         SCM str = scm_makfrom0str ("hello world");
|         return 0;
| }
`----

,----[ gdb ]
| (gdb) run
| Starting program: /home/dhansen/tmp/gtst 
| 
| Program received signal SIGSEGV, Segmentation fault.
| [Switching to Thread 16384 (LWP 15966)]
| 0x4004d398 in scm_igc (what=0x0) at gc.c:1069
| (gdb) bt
| #0  0x4004d398 in scm_igc (what=0x0) at gc.c:1069
| #1  0x4004e54b in check_mtrigger (what=0x0) at gc.c:1959
| #2  0x4004e60a in scm_must_malloc (size=12, what=0x400a8231 "scm_allocate_string") at gc.c:2005
| #3  0x400807da in scm_allocate_string (len=11) at strings.c:241
| #4  0x400806f3 in scm_mem2string (src=0x8048614 "hello world", len=10) at strings.c:209
| #5  0x40080757 in scm_makfrom0str (src=0x8048614 "hello world") at strings.c:221
| #6  0x080484f0 in main () at gtst.c:8
| (gdb) 
`----

,----[ guile --version ]
| Guile 1.6.4
| Copyright (c) 1995, 1996, 1997, 2000, 2001, 2002, 2003 Free Software Foundation
| Guile may be distributed under the terms of the GNU General Public Licence;
| certain other uses are permitted as well.  For details, see the file
| `COPYING', which is included in the Guile distribution.
| There is no warranty, to the extent permitted by law.
`----

I just installed guile-1.6.4 myself using

$ ./configure --prefix=$HOME --with-threads --enable-debug-freelist --enable-debug-malloc --enable-guile-debug --disable-deprecated

I'm not on any lists, so if there's something interesting
for me please Cc: to me.

David

[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]

[-- Attachment #2: Type: text/plain, Size: 136 bytes --]

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

             reply	other threads:[~2004-03-04 13:53 UTC|newest]

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

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=877jy0g1lg.fsf@robotron.ath.cx \
    --to=david.hansen@physik.fu-berlin.de \
    /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).