unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Mike Gran <spk121@yahoo.com>
To: "Ludovic Courtès" <ludo@gnu.org>, guile-devel@gnu.org
Subject: Re: master with threaded gc
Date: Mon, 21 Sep 2009 10:21:26 -0700 (PDT)	[thread overview]
Message-ID: <213173.30591.qm@web37907.mail.mud.yahoo.com> (raw)
In-Reply-To: <878wg8l2ja.fsf@gnu.org>

> From: Ludovic Courtès <ludo@gnu.org>
>> Greg Troxel writes:
> 
[...]
> 
> > Program terminated with signal 11, Segmentation fault.
> > #0  0x00007f7ffd6cac90 in strcmp () from /usr/lib/libc.so.12
> > (gdb) bt
> > #0  0x00007f7ffd6cac90 in strcmp () from /usr/lib/libc.so.12
> > #1  0x00007f7ffd65f23e in _citrus_iconv_open () from /usr/lib/libc.so.12
> > #2  0x00007f7ffd64dc6f in iconv_open () from /usr/lib/libc.so.12
> > #3  0x00007f7ffdbd075f in rpl_iconv_open (tocode=0x7f7ffdbd4a2b "UTF-8", 
> fromcode=0x7f7ffdbded05 "ISO-8859-1") at iconv_open.c:111
> > #4  0x00007f7ffdbcf22f in mem_iconveh (src=0x6a3530 " - arguments: ", 
> srclen=14, from_codeset=0x7f7ffdbded05 "ISO-8859-1", to_codeset=0x7f7ffc4290ec 
> "646", 
> 
> Does it help to use GNU libiconv instead of NetBSD’s libc for iconv(3)?
> 
> Does libunistring’s ‘configure’ complain about the lack of libiconv?

FWIW, rpl_iconv_open() is the gnulib wrapper to iconv_open.  It is
supposed to try various alternative names for codesets until it finds
one that works with the underlying system iconv_open.  But the line it 
crashes at (iconv_open.c:111) is just an ordinary call to iconv_open, 
so the strcmp segfault is unexpected.

It could be that the tocode string "UTF-8" is being GC'd before 
it is tested because the port is GC'd, but that seems unlikely.

There is another curious thing, which may be unrelated

>> #6  0x00007f7ffdb80605 in scm_lfwrite_str (str=0x6e4720, port=0x5bcba0) at ports.c:1276
>> #7  0x00007f7ffdb848fc in iprin1 (exp=0xfffffffffffffff8, port=0x5bcba0, pstate=0xdd6770) at print.c:723
>> #8  0x00007f7ffdb84f18 in scm_prin1 (exp=0x6e4720, port=0x5bcba0, writingp=0) at print.c:890

In the above, 'exp' is an SCM string that is being passed down from func to 
func.  It is weird that its address jumps from 0x6e4720 to 
0xfffffffffffffff8 then back to 0x6e4720.  That shouldn't happen.

-Mike





  reply	other threads:[~2009-09-21 17:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-21 15:44 master with threaded gc Greg Troxel
2009-09-21 15:51 ` Ludovic Courtès
2009-09-21 17:21   ` Mike Gran [this message]
2009-09-22  2:14     ` Ken Raeburn
2009-09-22 14:36       ` Greg Troxel

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=213173.30591.qm@web37907.mail.mud.yahoo.com \
    --to=spk121@yahoo.com \
    --cc=guile-devel@gnu.org \
    --cc=ludo@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).