[BusyBox 0000847]: Compile all sources at once results in segfaulting busybox

bugs at busybox.net bugs at busybox.net
Tue Apr 25 03:27:34 UTC 2006


A NOTE has been added to this issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=847 
====================================================================== 
Reported By:                alemc
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   847
Category:                   Other
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             04-22-2006 18:31 PDT
Last Modified:              04-24-2006 20:27 PDT
====================================================================== 
Summary:                    Compile all sources at once results in segfaulting
busybox
Description: 
At least on my debian mixed stable/testing/couple of unstable packages
system, using the 'compile all sources at once' option looks like it
builds successfully, but ./busybox sh results in a segfault.  The config
which works with the 'compile all sources at once', but fails when
'compile all sources at once' is enabled, is attached, along with my list
of installed packages so you can see what library versions I am using.  I
am using glibc, not uClibc.  If I can can provide any more information
that would help, I am happy to do so.
====================================================================== 

---------------------------------------------------------------------- 
 bernhardf - 04-24-06 02:07  
---------------------------------------------------------------------- 
I cannot find the package for i386 which contains i586-linux-gcc.

Where does that compiler come from?
What's the i586-linux-gcc -v ?

I cannot reproduce this miscompilation with the compilers available via
testing on i386.. 

---------------------------------------------------------------------- 
 bernhardf - 04-24-06 03:30  
---------------------------------------------------------------------- 
Looks like it's getting the bb_strlen wrong (again).

For me, if i run ash then it just sits there and does nothing. Is this the
issue you were seeing? 

---------------------------------------------------------------------- 
 bernhardf - 04-24-06 04:58  
---------------------------------------------------------------------- 
Can you please apply the attached busybox.fix_bb_strlen.00.diff and make
clean && make and retest and let me know if that does fix it for you?

TIA 

---------------------------------------------------------------------- 
 alemc - 04-24-06 20:27  
---------------------------------------------------------------------- 
Oh, it's a symlink to gcc-3.3, and I made /usr/lib/gcc-lib/i586-linux a
symlink to i486-linux.  The other binary symlinks are:

cpp, ar, ld, and strip (i586-linux-cpp to cpp-3.3, and the rest to the
non-versioned binaries of the same name (e.g. i586-linux-ar to ar).

I was getting segfaults rather than just sitting (that is busbox died with
a segfault), however the patch fixed it.

Thanks! 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
04-22-06 18:31  alemc          New Issue                                    
04-22-06 18:31  alemc          Status                   new => assigned     
04-22-06 18:31  alemc          Assigned To               => BusyBox         
04-22-06 18:31  alemc          File Added: busybox-1.1.2.conf                   

04-22-06 18:32  alemc          File Added: tmp.txt                          
04-24-06 02:07  bernhardf      Note Added: 0001323                          
04-24-06 03:30  bernhardf      Note Added: 0001324                          
04-24-06 04:57  bernhardf      File Added: busybox.fix_bb_strlen.00.diff        
           
04-24-06 04:58  bernhardf      Note Added: 0001325                          
04-24-06 20:27  alemc          Note Added: 0001326                          
======================================================================




More information about the busybox-cvs mailing list