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
0000017 [BusyBox] Other major always 01-16-05 10:01 09-26-05 21:17
Reporter malekith View Status public  
Assigned To BusyBox
Priority normal Resolution fixed  
Status closed   Product Version 1.00
Summary 0000017: 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
Additional Information
Attached Files  busybox-fix_64_archs.patch [^] (384 bytes) 01-16-05 10:02

- Relationships

- Notes
(0000578)
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


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker