BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000847 [BusyBox] Other minor always 04-22-06 18:31 06-11-06 10:41
Reporter alemc View Status public  
Assigned To BusyBox
Priority normal Resolution fixed  
Status closed   Product Version 1.1.x
Summary 0000847: 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.
Additional Information
Attached Files  busybox-1.1.2.conf [^] (15,490 bytes) 04-22-06 18:31
 tmp.txt [^] (71,754 bytes) 04-22-06 18:32
 busybox.fix_bb_strlen.00.diff [^] (631 bytes) 04-24-06 04:57

- Relationships

- Notes
(0001323)
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..
 
(0001324)
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?
 
(0001325)
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
 
(0001326)
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!
 
(0001342)
asierllano
05-04-06 09:28

The same problem happened to me with uClibc-0.9.28 and gcc-4.1.0 (for me it did not segfault, it only halted), and the provided patch fixes the problem.
 
(0001415)
bernhardf
06-11-06 10:41

Fixed in svn.

Thanks for the heads-up.
 

- 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
05-04-06 09:28 asierllano Note Added: 0001342
06-11-06 10:41 bernhardf Status assigned => closed
06-11-06 10:41 bernhardf Note Added: 0001415
06-11-06 10:41 bernhardf Resolution open => fixed
06-11-06 10:41 bernhardf Fixed in Version  => 1.2.x


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker