chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] segfault bug in string->number


From: felix winkelmann
Subject: Re: [Chicken-users] segfault bug in string->number
Date: Thu, 1 Feb 2007 20:31:08 +0100

On 2/1/07, Robin Lee Powell <address@hidden> wrote:

The following output occurs:

address@hidden> csc -O2 -d0 /tmp/stn.scm ; /tmp/stn
4107
#f
5065
zsh: segmentation fault  /tmp/stn

I'm not going to try to patch it, because I *loathe* C.  In fact,
I'm using Scheme largely *because* I loathe C (I'm replacing bits of
C in the project I'm working on with it).

And right you are about loathing it, because otherwise you might even
make mistakes like this:

% darcs diff runtime.c
7278c7278
<   C_memcpy(sptr = buffer, C_c_string(str), n);
---
  C_memcpy(sptr = buffer, C_c_string(str), n > (STRING_BUFFER_SIZE - 1) ? 
STRING_BUFFER_SIZE : n);


cheers,
felix




reply via email to

[Prev in Thread] Current Thread [Next in Thread]