[BusyBox 0000017]: awk fails on 64 bit archs

bugs at busybox.net bugs at busybox.net
Tue Sep 27 04:17:06 UTC 2005


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=17 
====================================================================== 
Reported By:                malekith
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   17
Category:                   Other
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             01-16-2005 10:01 PST
Last Modified:              09-26-2005 21:17 PDT
====================================================================== 
Summary:                    awk fails on 64 bit archs
Description: 
awk.c source code uses long and assumes it is 32 bit. for this reason:

busybox awk ' /root=\/dev\// { gsub(/.*root=\/dev\//,NIL,$0); gsub(/
.*/,NIL,$0); print $0; } ' /proc/cmdline)"

fails on amd64 with Too few args for builtin message (it expects -2
arguments...).

I'll attach a patch to fix this particular problem (busybox is used by PLD
Linux initrd, so this one is crucial for me), but probably you just should
get rid of long references from awk.c.

cheers

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

---------------------------------------------------------------------- 
 vapier - 09-26-05 21:17  
---------------------------------------------------------------------- 
changed all the occurences of 'unsigned long' to 'uint32_t' in the source

this fixed it for me on amd64 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-16-05 10:01  malekith       New Issue                                    
01-16-05 10:02  malekith       File Added: busybox-fix_64_archs.patch           
        
03-16-05 12:26  andersen       Assigned To              andersen => BusyBox 
09-26-05 21:17  vapier         Note Added: 0000578                          
09-26-05 21:17  vapier         Status                   assigned => closed  
09-26-05 21:17  vapier         Resolution               open => fixed       
======================================================================




More information about the busybox-cvs mailing list