Bug 1279 - Buildroot compiled Busybox and Coreutils LFS issues
Summary: Buildroot compiled Busybox and Coreutils LFS issues
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: PC Linux
: P5 normal
Target Milestone: 2010.05
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-13 14:04 UTC by Richard Weinberger
Modified: 2013-11-28 18:30 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
Buildroot configuration (18.95 KB, application/x-config)
2010-03-13 14:04 UTC, Richard Weinberger
Details
Busybox configuration (generated) (23.91 KB, application/x-config)
2010-03-13 14:05 UTC, Richard Weinberger
Details
uClibc config (generated) (5.63 KB, application/x-config)
2010-03-13 14:06 UTC, Richard Weinberger
Details
strace busybox's ls (2.27 KB, text/plain)
2010-03-13 14:06 UTC, Richard Weinberger
Details
strace coreutils's ls (3.04 KB, text/plain)
2010-03-13 14:07 UTC, Richard Weinberger
Details
strace testtool (2.46 KB, text/plain)
2010-03-13 14:07 UTC, Richard Weinberger
Details
the testtool (755 bytes, text/x-csrc)
2010-03-13 14:07 UTC, Richard Weinberger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Weinberger 2010-03-13 14:04:49 UTC
Created attachment 1225 [details]
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.
Comment 1 Richard Weinberger 2010-03-13 14:05:41 UTC
Created attachment 1231 [details]
Busybox configuration (generated)
Comment 2 Richard Weinberger 2010-03-13 14:06:10 UTC
Created attachment 1237 [details]
uClibc config (generated)
Comment 3 Richard Weinberger 2010-03-13 14:06:47 UTC
Created attachment 1243 [details]
strace busybox's ls
Comment 4 Richard Weinberger 2010-03-13 14:07:11 UTC
Created attachment 1249 [details]
strace coreutils's ls
Comment 5 Richard Weinberger 2010-03-13 14:07:30 UTC
Created attachment 1255 [details]
strace testtool
Comment 6 Richard Weinberger 2010-03-13 14:07:53 UTC
Created attachment 1261 [details]
the testtool
Comment 7 Gustavo Zacarias 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.