Skip to contentSkip to conversation

New: Buildroot compiled Busybox and Coreutils LFS issues

Buildroot bugzilla at busybox.net 1 participant 9 messages Mar 13, 2010 – Nov 28, 2013

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=1279

Summary: Buildroot compiled Busybox and Coreutils LFS issues
Product: buildroot
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: richard-bugs at nod.at
CC: buildroot at uclibc.org
Estimated Hours: 0.0

Created an attachment (id=1225)
--> (https://bugs.busybox.net/attachment.cgi?id=1225)
Buildroot configuration

I set up a very basic root filesystem with large file support (BR2_LARGEFILE=y) using Buildroot.
But ls from both Busybox and Coreutils fails on large directories. In my case /mnt, which is a 1.4TB cifs share. On a smaller(~100GB) one it works fine.

Strace shows that ls fires fstat() instead of fstat64(). So I wore a small testtool, which uses the fstat() library call. It worked perfectly. According to strace my tool uses fstat64().

It seems that Buildroot messes something up while building Busybox and Coreutils with large file support.

Config files, strace logs and my testtool are attached.

I reproduced this issue with Buildroot 2010.02 and snapshot from yesterday.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 1279] Buildroot compiled Busybox and Coreutils LFS issues

https://bugs.busybox.net/show_bug.cgi?id=1279

--- Comment #1 from Richard Weinberger <[email protected]> 2010-03-13 14:05:41 UTC --- Created an attachment (id=1231)
--> (https://bugs.busybox.net/attachment.cgi?id=1231)
Busybox configuration (generated)

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 1279] Buildroot compiled Busybox and Coreutils LFS issues

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=1279

--- Comment #2 from Richard Weinberger <[email protected]> 2010-03-13 14:06:10 UTC --- Created an attachment (id=1237)
--> (https://bugs.busybox.net/attachment.cgi?id=1237)
uClibc config (generated)

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#3 lore raw

[Buildroot] [Bug 1279] Buildroot compiled Busybox and Coreutils LFS issues

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=1279

--- Comment #3 from Richard Weinberger <[email protected]> 2010-03-13 14:06:47 UTC --- Created an attachment (id=1243)
--> (https://bugs.busybox.net/attachment.cgi?id=1243)
strace busybox's ls

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#4 lore raw

[Buildroot] [Bug 1279] Buildroot compiled Busybox and Coreutils LFS issues

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=1279

--- Comment #4 from Richard Weinberger <[email protected]> 2010-03-13 14:07:11 UTC --- Created an attachment (id=1249)
--> (https://bugs.busybox.net/attachment.cgi?id=1249)
strace coreutils's ls

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#5 lore raw

[Buildroot] [Bug 1279] Buildroot compiled Busybox and Coreutils LFS issues

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=1279

--- Comment #5 from Richard Weinberger <[email protected]> 2010-03-13 14:07:30 UTC --- Created an attachment (id=1255)
--> (https://bugs.busybox.net/attachment.cgi?id=1255)
strace testtool

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#6 lore raw

[Buildroot] [Bug 1279] Buildroot compiled Busybox and Coreutils LFS issues

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=1279

--- Comment #6 from Richard Weinberger <[email protected]> 2010-03-13 14:07:53 UTC --- Created an attachment (id=1261)
--> (https://bugs.busybox.net/attachment.cgi?id=1261)
the testtool

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#7 lore raw

[Buildroot] [Bug 1279] Buildroot compiled Busybox and Coreutils LFS issues

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=1279

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |2010.05

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#8 lore raw

[Buildroot] [Bug 1279] Buildroot compiled Busybox and Coreutils LFS issues

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=1279

Gustavo Zacarias <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #7 from Gustavo Zacarias <[email protected]> 2013-11-28 18:30:42 UTC --- Working just fine with qemu_x86_defconfig + LARGEFILE + cifs-utils + strace (and tweaked kernel with CONFIG_CIFS=m against a 2 TB share).
Strace shows busybox ls using *stat64 all along.
Didn't try coreutils ls but i guess this was fixed along some time ago because of the bug age.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.