Bug 52181 - Eglib is not built with large file support
Summary: Eglib is not built with large file support
Alias: None
Product: Runtime
Classification: Mono
Component: JIT ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-02-01 14:01 UTC by voxlympha
Modified: 2017-08-18 20:40 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description voxlympha 2017-02-01 14:01:28 UTC
It appears that eglib is not built with large file support.

This is seen when trying to list the files on a filesystem with 64-bit inodes returning empty lists. (Or in the case of filesystems that have files with 64-bit inodes and 32-bit ones mixed in, incomplete/partial file listings)

I believe the cause of this is the autoconf configure.ac (eglib/configure.ac) not checking and then setting the appropriate build flags (Eg. -D_FILE_OFFSET_BITS=64). This then causes readdir to be called instead of readdir64 (Along with other file-related calls) and returning EOVERFLOW.
Comment 1 Miguel de Icaza [MSFT] 2017-08-18 20:40:28 UTC
This should be now handled as we merged the eglib configure checks into the mono runtime checis.

In checkin: