chicken-janitors
[Top][All Lists]
Advanced

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

[Chicken-janitors] #442: Reloading .so files


From: Chicken Trac
Subject: [Chicken-janitors] #442: Reloading .so files
Date: Tue, 07 Dec 2010 12:45:21 -0000

#442: Reloading .so files
---------------------+------------------------------------------------------
 Reporter:  mario    |       Owner:       
     Type:  defect   |      Status:  new  
 Priority:  major    |   Milestone:  4.7.0
Component:  unknown  |     Version:  4.6.x
 Keywords:           |  
---------------------+------------------------------------------------------
 It seems that .so files cannot be properly reloaded when the loader is
 compiled.

 Below you can see the steps to reproduce the problem.

 Christian said he cannot reproduce the problem with 4.6.3 on macos.

 I tried it on Linux with 4.4.0, 4.6.3 (dev-snapshot tarball) and
 c157ff502829c6f2856df4a963d81a88ee241ebf (experimental).

 {{{
 $ ls -l
 total 12
 -rw-r--r-- 1 mario mario 13 Dez  7 08:46 bar.scm
 -rw-r--r-- 1 mario mario 13 Dez  7 08:46 foo.scm
 -rw-r--r-- 1 mario mario 77 Dez  7 08:47 loader.scm

 $ cat foo.scm
 (print 'foo)

 $ cat bar.scm
 (print 'bar)

 $ cat loader.scm
 (use posix)

 (let loop ()
   (load "foo")
   (load "bar")
   (sleep 1)
   (loop))

 $ csi -s loader.scm
 foo
 bar
 foo
 bar
 foo
 bar
 foo
 bar
 foo
 bar
 ...


 $ csc -s foo.scm
 $ csc -s bar.scm

 $ ls -l foo.so bar.so
 -rwxr-xr-x 1 mario mario 8257 Dez  7 08:52 bar.so
 -rwxr-xr-x 1 mario mario 8257 Dez  7 08:52 foo.so

 $ csi -s loader.scm
 foo
 bar
 foo
 bar
 foo
 bar
 foo
 bar
 foo
 bar
 foo
 bar
 ...

 $ csc loader.scm

 $ ls -l loader
 -rwxr-xr-x 1 mario mario 11459 Dez  7 08:50 loader

 $ ./loader
 foo
 bar
 bar
 bar
 bar
 bar
 bar
 bar
 bar
 ...


 $ rm *.so

 $ ./loader
 foo
 bar
 foo
 bar
 foo
 bar
 foo
 bar
 foo
 bar
 foo
 bar
 ...

 }}}

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/442>
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]