guile-devel
[Top][All Lists]
Advanced

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

Re: Program received signal SIGSEGV, Segmentation fault.


From: Bruce Korb
Subject: Re: Program received signal SIGSEGV, Segmentation fault.
Date: Fri, 16 Nov 2012 12:20:46 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121025 Thunderbird/16.0.2

> "AG_SCM_STR02SCM()" is a Guile-version dependent macro:
> 
> $ fgrep GUILE_VERSION ../config.h
> #define GUILE_VERSION 200005
> 
> an edited extract from my version dependent wrapper header:
> 

> #elif GUILE_VERSION < 200000
> # define AG_SCM_STR02SCM(_s)          scm_from_locale_string(_s)
> 
> #elif GUILE_VERSION < 201000
> # define AG_SCM_STR02SCM(_s)          scm_from_utf8_string(_s)
> 
> [...]
>> figure out what caused the SIGSEGV.  I don't even know what function you
> 
> scm_from_locale_string().  I had a stack trace that disappeared
> from the email.  (Typo of some sort.  Sorry.)

Actually, it was scm_from_utf8_string, since GUILE_VERSION was 200005

 -- C Function: SCM scm_from_latin1_string (const char *str)
 -- C Function: SCM scm_from_utf8_string (const char *str)
 -- C Function: SCM scm_from_utf32_string (const scm_t_wchar *str)
     Return a scheme string from the null-terminated C string STR,
     which is ISO-8859-1-, UTF-8-, or UTF-32-encoded.  These functions
     should be used to convert hard-coded C string constants into
     Scheme strings.




reply via email to

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