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
0001629 [BusyBox] Standards Compliance minor always 12-03-07 07:56 12-08-07 19:47
Reporter sunx View Status public  
Assigned To BusyBox
Priority normal Resolution not fixable  
Status closed   Product Version
Summary 0001629: 1.8.2 command line redirect bug
Description current directory is not empty

ls > 1.txt

but 1.txt is zero lenght


this bug infected all applet

Additional Information
Attached Files  dot_config [^] (18,701 bytes) 12-04-07 04:56

- Relationships

- Notes
(0003009)
vda
12-04-07 01:54

Please post your .config and output of "ldd busybox" command.
 
(0003014)
sunx
12-04-07 04:57
edited on: 12-04-07 04:59

the attachment is .config
binary is static linking

gcc 3.3.2
glibc 2.3.2
but , i think glibc viersion is not important

 
(0003024)
vda
12-04-07 10:51

It's CONFIG_STATIC=y + glibc.

With your .config:

$ make
  HOSTCC scripts/basic/fixdep
  HOSTCC scripts/basic/split-include
  HOSTCC scripts/basic/docproc
  HOSTCC scripts/kconfig/conf.o
  HOSTCC scripts/kconfig/kxgettext.o
  HOSTCC scripts/kconfig/mconf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/lex.zconf.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC scripts/kconfig/zconf.tab.o
  HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s Config.in
#
# using defaults found in .config
#
  SPLIT include/autoconf.h -> include/config/*
  GEN include/bbconfigopts.h
  HOSTCC applets/usage
  GEN include/usage_compressed.h
  CC applets/applets.o
applets/applets.c:15:2: warning: #warning Static linking against glibc produces buggy executables
applets/applets.c:16:2: warning: #warning (glibc does not cope well with ld --gc-sections).
applets/applets.c:17:2: warning: #warning See sources.redhat.com/bugzilla/show_bug.cgi?id=3400
applets/applets.c:18:2: warning: #warning Note that glibc is unsuitable for static linking anyway.
applets/applets.c:19:2: warning: #warning If you still want to do it, remove -Wl,--gc-sections
applets/applets.c:20:2: warning: #warning from top-level Makefile and remove this warning.
applets/applets.c:21:2: error: #error Aborting compilation.
make[1]: *** [applets/applets.o] Error 1
make: *** [applets] Error 2

This warning says it all. I suppose you didn't read it.
 
(0003029)
sunx
12-04-07 21:18

yes, i saw it
and checked top-level Makefile, but there has no gc-sections
so, i comment the "#error" line in applets/applets.c

what should i do ? , please help me
 
(0003034)
sunx
12-05-07 17:20

i got it now, modify script/trylink

anyway thanks
 
(0003069)
vda
12-08-07 19:47

It's in scripts/trylink now, not in the Makefile
 

- Issue History
Date Modified Username Field Change
12-03-07 07:56 sunx New Issue
12-03-07 07:56 sunx Status new => assigned
12-03-07 07:56 sunx Assigned To  => BusyBox
12-04-07 01:54 vda Note Added: 0003009
12-04-07 01:54 vda Status assigned => feedback
12-04-07 04:56 sunx File Added: dot_config
12-04-07 04:57 sunx Note Added: 0003014
12-04-07 04:58 sunx Note Added: 0003019
12-04-07 04:58 sunx Note Deleted: 0003019
12-04-07 04:59 sunx Note Edited: 0003014
12-04-07 10:51 vda Note Added: 0003024
12-04-07 10:52 vda Status feedback => closed
12-04-07 10:52 vda Resolution open => unable to reproduce
12-04-07 21:18 sunx Status closed => feedback
12-04-07 21:18 sunx Resolution unable to reproduce => reopened
12-04-07 21:18 sunx Note Added: 0003029
12-05-07 17:20 sunx Note Added: 0003034
12-08-07 19:47 vda Status feedback => closed
12-08-07 19:47 vda Note Added: 0003069
12-08-07 19:47 vda Resolution reopened => not fixable


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker