chicken-janitors
[Top][All Lists]
Advanced

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

[Chicken-janitors] Re: [Chicken-bugs] #348: Chicken should use proper C


From: Chicken Scheme
Subject: [Chicken-janitors] Re: [Chicken-bugs] #348: Chicken should use proper C types for struct stat members
Date: Fri, 09 Nov 2007 19:29:58 -0000

#348: Chicken should use proper C types for struct stat members
---------------------------------------+------------------------------------
Reporter:  sjamaan                     |        Owner:  felix         
    Type:  defect                      |       Status:  new           
Priority:  major                       |    Component:  core libraries
 Version:  2.7                         |   Resolution:                
Keywords:  typing, C interface, posix  |  
---------------------------------------+------------------------------------
Comment (by certainty):

 Hi,

 i do experience the same issue here. In 2.735 (file-size) returned a
 flonum. Then i rebuilt
 the current trunk which is 2.636. The next time i tried to issue (file-
 size) it segfaulted.
 I've tested it on a 32Bit gnu linux. I've tried to make a minimal program
 to see what's going on:
 (use posix)
 (define (foo)
   (file-size "some-file-bigger-than-1G"))
 (foo)

 I compiled and ran it and it did *not* segfault. But
 (use posix)
 (define (foo)
   (file-size "some-file-bigger-than-1G"))
 (display (foo)

 *does* segfault. Maybe i'm overlooking sth here (maybe optimization so
 that the first program doesn't actually execute the file-size code?).

 greets

-- 
Ticket URL: <http://trac.callcc.org/ticket/348#comment:2>
Chicken Scheme <http://www.call-with-current-continuation.org/>
The CHICKEN Scheme-to-C compiler

reply via email to

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