libstdc++/6784: SEGV using istream >> operator under gcc-3.1/sun-sparc-solaris2.6

Phil Edwards phil@jaj.com
Fri May 24 10:13:00 GMT 2002


On Fri, May 24, 2002 at 09:27:42AM -0700, Benjamin Kosnik wrote:
> 
> > #0  0xff30c620 in number () from /usr/lib/libc.so.1
> > #1  0xff30c290 in __doscan_u () from /usr/lib/libc.so.1
> > #2  0xff310e90 in sscanf () from /usr/lib/libc.so.1
> 
> Ooooh yeah. I remember this. This is a bug in libc's sscanf and extreme
> input. You'll have to talk to Sun.

I should put this in the system-specific FAQs, then.

The nearest bug I could find in Sun's contract database was 4517988, which
is SPARC-specific (i.e., x86/Solaris works) and present in Solaris 8.
It causes sscanf to segv on long input.  I assume that's the bug we're
talking about here, although the reported didn't experience it on Sol 8.


Phil

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams



More information about the Gcc-bugs mailing list