This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: File Stream Open Problem with g++ 3.3.3 and libstdc++.so.5


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]