Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 543972 - sys-libs/uclibc: fclose(stdout) does not throw ENOSPC when piped to /dev/full.
Summary: sys-libs/uclibc: fclose(stdout) does not throw ENOSPC when piped to /dev/full.
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: uclibc-porting
  Show dependency tree
 
Reported: 2015-03-21 00:10 UTC by René Rhéaume
Modified: 2022-01-02 10:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info output (emerge-info.txt,5.35 KB, text/plain)
2015-03-21 00:10 UTC, René Rhéaume
Details
build.log from portage (build.log,80.56 KB, text/x-log)
2015-03-21 00:12 UTC, René Rhéaume
Details
tests/test-suite.log inside work directory (test-suite.log,59.70 KB, text/plain)
2015-03-21 00:13 UTC, René Rhéaume
Details

Note You need to log in before you can comment on or make changes to this bug.
Description René Rhéaume 2015-03-21 00:10:52 UTC
Created attachment 399328 [details]
emerge --info output

As part of a system update, gzip should be updated to version 1.6. However, it fails in its test suite.

Steps to reproduce :
1. FEATURES="test" emerge -1 app-arch/gzip
Comment 1 René Rhéaume 2015-03-21 00:12:10 UTC
Created attachment 399330 [details]
build.log from portage
Comment 2 René Rhéaume 2015-03-21 00:13:52 UTC
Created attachment 399332 [details]
tests/test-suite.log inside work directory
Comment 3 Anthony Basile gentoo-dev 2015-04-21 15:16:00 UTC
For reasons I don't yet understand, its failing the disk full test.

On glibc I get:

# gzip --help >/dev/full 2>/dev/null ; echo $?
1
# gzip --version >/dev/full 2>/dev/null ; echo $?
1


On uclibc I get:

# gzip --help >/dev/full 2>/dev/null ; echo $?
0
# gzip --version >/dev/full 2>/dev/null ; echo $?
0

It fails the same way for all the built functions:

gzip gunzip gzexe zcat zforce zless zmore znew gzip gunzip gzexe zcat zforce zless zmore znew gzip gunzip gzexe zcat zforce zless zmore znew
Comment 4 Anthony Basile gentoo-dev 2015-04-21 15:20:25 UTC
More succinctly you can see the problem with:

glibc:

# echo "hi" > /dev/full
-bash: echo: write error: No space left on device
#  gzip --version > /dev/full
gzip: write error: No space left on device
#

uclibc:

# echo "hi" > /dev/full
-su: echo: write error: No space left on device
# gzip --version > /dev/full
# 


So >/dev/full is working on uclibc, just not for gzip.
Comment 5 Anthony Basile gentoo-dev 2015-04-25 20:03:14 UTC
The following reduced code show the problem:

#include <stdio.h>
#include <errno.h>

int main() {
        printf("sutff\n");
        if (fclose (stdout) != 0)
                error (0, errno, "");
        return 0;
}


On glibc, building this program and running gives

# ./test > /dev/full
./test: : No space left on device
#

while on uclibc it is silent:

# ./test > /dev/full
#
Comment 6 David Seifert gentoo-dev 2022-01-02 10:26:14 UTC
uclibc support in Gentoo has been removed.