This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: File Stream Open Problem with g++ 3.3.3 and libstdc++.so.5
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- To: libstdc++ at gcc dot gnu dot org
- Cc: subrata-basak at mediaring dot com
- Date: Mon, 29 Mar 2004 19:55:32 -0600 (CST)
- Subject: Re: File Stream Open Problem with g++ 3.3.3 and libstdc++.so.5
- Organization: Networks and Infrastructure Lab (IL02/2240), Motorola Labs
> This problem occurs only when I compile my code with
> g++ 3.3.3 and libstdc++.so.5.
FYI, I can't see this problem with your code as compiled on
i386-unknown-freebsd4.9 with FSF gcc 3.3.3 or (pending release) 3.4.0.
Thus, there might be a per-system or per-user-environment (more
likely) or per-platform (less likely, IMHO) issue at play here.
If I artificially set the descriptor limit of my shell down below
1003, then I see your test fail as you report.
It is possible (i.e. I'm fairly sure) that the v2 library used a
different API to obtain FDs from the kernel than the v3. Is it
possible that libc on your platform is enforcing this limit of ~255 FDs?
What is the exact triple (and vendor, if reported as e.g. generic linux)?
Regards,
Loren