1 /* From: Denis Vlasenko <vda.linux@googlemail.com>
2 * With certain combination of .config options fclose() does not
3 * remove FILE* pointer from _stdio_openlist. As a result, subsequent
4 * fopen() may allocate new FILE structure exactly in place of one
5 * freed by previous fclose(), which then makes _stdio_openlist
6 * circularlt looped. The following program will enter infinite loop
7 * trying to walk _stdio_openlist in exit():
13 int main(int argc, char *argv[])
16 fp = fopen("/dev/null", "r");
18 fp = fopen("/dev/zero", "r");