chicken-janitors
[Top][All Lists]
Advanced

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

Re: [Chicken-janitors] #975: Segmentation fault when accessing/setting m


From: Chicken Trac
Subject: Re: [Chicken-janitors] #975: Segmentation fault when accessing/setting moderately large SRFI-4 vectors
Date: Sun, 17 Feb 2013 04:23:55 -0000

#975: Segmentation fault when accessing/setting moderately large SRFI-4 vectors
-----------------------+----------------------------------------------------
  Reporter:  iraikov   |       Owner:        
      Type:  defect    |      Status:  closed
  Priority:  critical  |   Milestone:  4.9.0 
 Component:  compiler  |     Version:  4.8.x 
Resolution:  invalid   |    Keywords:        
-----------------------+----------------------------------------------------

Comment(by iraikov):

 Hehe, I had quietly fixed my code, and I was waiting to see if somebody
 notices the slightly displaced paren here :-) For my penitence, I will
 implement 100 tail-recursive algorithms...

 Replying to [comment:4 felix]:
 > Ivan,
 >
 > No, chicken does not rely on TCO from the C compiler (that's the whole
 point of using cheney-on-the-mta). Chicken will also not magically make
 non-tail-recursive code tail-recursive:
 >
 > {{{
 > --- ../srfi-4-utils-test.scm~ 2013-02-15 16:00:54.953867621 +0100
 > +++ ../srfi-4-utils-test.scm  2013-02-15 16:07:40.085861499 +0100
 > @@ -46,8 +46,9 @@
 >                (vblit! a i q b k)
 >                (if (< j r)
 >                    (vblit! a j r b k))))
 > +      )
 >        b
 > -      ))
 > +      )
 >    )
 > }}}
 >
 > I promise not to tell anybody about this.

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/975#comment:5>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.

reply via email to

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