chicken-janitors
[Top][All Lists]
Advanced

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

[Chicken-janitors] #43: bus error on 64-bit install_name_tool


From: Chicken Trac
Subject: [Chicken-janitors] #43: bus error on 64-bit install_name_tool
Date: Wed, 17 Jun 2009 21:04:21 -0000

#43: bus error on 64-bit install_name_tool
--------------------------+-------------------------------------------------
 Reporter:  zbigniew      |       Owner:     
     Type:  defect        |      Status:  new
 Priority:  minor         |   Milestone:     
Component:  build system  |     Version:     
 Keywords:                |  
--------------------------+-------------------------------------------------
 When changing a library name to one that is longer, and the .so file is
 too short, install_name_tool segfaults.  This is rare and I can only
 reproduce it on a 64-bit build with one or two files.  It may be a bug in
 the tools.  The least intrusive change is to add a bit of minimum header
 padding on 64-bit systems.  (Patch attached.)  The chosen pad size of 128
 is experimentally determined (32 is the minimum that works for me, and I
 added some fudge).  It can be increased if required, at the cost of
 slightly bigger output files.

 {{{
 make PLATFORM=macosx ARCH=x86-64 NURSERY=1048576 \
   CHICKEN=$HOME/local/chicken-4/bin/chicken \
   PREFIX=$HOME/local.64/chicken-4 install

 [...]
 install_name_tool -change libchicken.dylib
 /Users/jim/local.64/chicken-4/lib/libchicken.dylib
 /Users/jim/local.64/chicken-4/lib/chicken/4/foreign.import.so
 install_name_tool -change libchicken.dylib
 /Users/jim/local.64/chicken-4/lib/libchicken.dylib
 /Users/jim/local.64/chicken-4/lib/chicken/4/scheme.import.so
 install_name_tool -change libchicken.dylib
 /Users/jim/local.64/chicken-4/lib/libchicken.dylib
 /Users/jim/local.64/chicken-4/lib/chicken/4/csi.import.so
 make[1]: *** [install] Bus error
 }}}

-- 
Ticket URL: <http://www.irp.oist.jp/trac/chicken/ticket/43>
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]