[BusyBox 0001629]: 1.8.2 command line redirect bug

bugs at busybox.net bugs at busybox.net
Tue Dec 4 18:52:10 UTC 2007


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=1629 
====================================================================== 
Reported By:                sunx
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   1629
Category:                   Standards Compliance
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             12-03-2007 07:56 PST
Last Modified:              12-04-2007 10:52 PST
====================================================================== 
Summary:                    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


====================================================================== 

---------------------------------------------------------------------- 
 vda - 12-04-07 01:54  
---------------------------------------------------------------------- 
Please post your .config and output of "ldd busybox" command. 

---------------------------------------------------------------------- 
 sunx - 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

 

---------------------------------------------------------------------- 
 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. 

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  
======================================================================




More information about the busybox-cvs mailing list