This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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: libstdc++/6784: SEGV using istream >> operator under gcc-3.1/sun-sparc-solaris2.6



bkoz@gcc.gnu.org wrote:

> Synopsis: SEGV using istream >> operator under gcc-3.1/sun-sparc-solaris2.6
> 
> State-Changed-From-To: open->analyzed
> State-Changed-By: bkoz
> State-Changed-When: Thu May 23 08:37:20 2002
> State-Changed-Why:
>     Why? I don't have access to a Solaris 2.6 box so you'll have to be more descriptive. Does the libstdc++ test suite run? Any extra fails there?
>     
>     -benjamin
> 
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6784
> 
> 


OK. Just managed to run the libstdc++ tests

I'm using the following dejagnu...

% runtest --version
Expect version is	5.37.2
Tcl version is		8.3
Framework version is	1.4.2


	sparc-sun-solaris2.8:


XPASS: 22_locale/collate_members_wchar_t.cc execution test
XPASS: 22_locale/money_get_members_wchar_t.cc execution test
XPASS: 22_locale/money_put_members_wchar_t.cc execution test
XPASS: 22_locale/moneypunct_members_wchar_t.cc execution test
XPASS: 22_locale/num_get_members_wchar_t.cc execution test
XPASS: 22_locale/num_put_members_wchar_t.cc execution test
XPASS: 22_locale/numpunct_members_wchar_t.cc execution test
XPASS: 22_locale/time_get_members_wchar_t.cc execution test
XPASS: 22_locale/time_put_members_wchar_t.cc execution test
FAIL: 27_io/istream_extractor_arith.cc execution test
FAIL: thread/pthread1.cc (test for excess errors)
WARNING: thread/pthread1.cc compilation failed to produce executable
FAIL: thread/pthread2.cc (test for excess errors)
WARNING: thread/pthread2.cc compilation failed to produce executable
FAIL: thread/pthread3.cc (test for excess errors)
WARNING: thread/pthread3.cc compilation failed to produce executable
FAIL: thread/pthread4.cc (test for excess errors)
WARNING: thread/pthread4.cc compilation failed to produce executable
FAIL: thread/pthread5.cc (test for excess errors)
WARNING: thread/pthread5.cc compilation failed to produce executable
FAIL: thread/pthread6.cc (test for excess errors)
WARNING: thread/pthread6.cc compilation failed to produce executable

                 === libstdc++-v3 Summary ===

# of expected passes            362
# of unexpected failures        7
# of unexpected successes       9
# of expected failures          16

The pthreads ones can't seem to find things like pthread_mutex_init

while compiling.

27_io/istream_extractor_arith.cc SEGV's in

#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
#3  0x00039670 in void std::__convert_to_v<long double>(char const*, long 
double&, std::_Ios_Iostate&, int* const&, int) (
     __s=0x6752c 
"12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"..., 

     __v=@0xffbef9f8, __err=@0xffbef948) at c++locale.cc:192
Segmentation fault (core dumped)

	sun-sparc-solaris2.6


FAIL: 21_strings/inserters_extractors.cc execution test
XPASS: 22_locale/collate_members_wchar_t.cc execution test
XPASS: 22_locale/money_get_members_wchar_t.cc execution test
XPASS: 22_locale/money_put_members_wchar_t.cc execution test
XPASS: 22_locale/moneypunct_members_wchar_t.cc execution test
XPASS: 22_locale/num_get_members_wchar_t.cc execution test
XPASS: 22_locale/num_put_members_wchar_t.cc execution test
XPASS: 22_locale/numpunct_members_wchar_t.cc execution test
XPASS: 22_locale/time_get_members_wchar_t.cc execution test
XPASS: 22_locale/time_put_members_wchar_t.cc execution test
FAIL: 24_iterators/istream_iterator.cc execution test
FAIL: 26_numerics/complex_inserters_extractors.cc execution test
FAIL: 27_io/instantiations.cc execution test
FAIL: 27_io/istream_extractor_arith.cc execution test
FAIL: 27_io/istream_extractor_char.cc execution test
FAIL: 27_io/istream_extractor_other.cc execution test
FAIL: 27_io/istream_manip.cc execution test
FAIL: 27_io/istream_seeks.cc execution test
FAIL: 27_io/istream_sentry.cc execution test
FAIL: 27_io/istream_unformatted.cc execution test
FAIL: 27_io/istringstream_members.cc execution test
FAIL: 27_io/ostream_inserter_arith.cc execution test
FAIL: 27_io/ostream_inserter_other.cc execution test
FAIL: 27_io/stringstream_members.cc execution test
FAIL: thread/pthread1.cc (test for excess errors)
WARNING: thread/pthread1.cc compilation failed to produce executable
FAIL: thread/pthread2.cc (test for excess errors)
WARNING: thread/pthread2.cc compilation failed to produce executable
FAIL: thread/pthread3.cc (test for excess errors)
WARNING: thread/pthread3.cc compilation failed to produce executable
FAIL: thread/pthread4.cc (test for excess errors)
WARNING: thread/pthread4.cc compilation failed to produce executable
FAIL: thread/pthread5.cc (test for excess errors)
WARNING: thread/pthread5.cc compilation failed to produce executable
FAIL: thread/pthread6.cc (test for excess errors)
WARNING: thread/pthread6.cc compilation failed to produce executable

                 === libstdc++-v3 Summary ===

# of expected passes            348
# of unexpected failures        21
# of unexpected successes       9
# of expected failures          16

21_strings/inserters_extractors.cc SEGVs in

#0  0x0002a8e0 in std::istream::sentry::sentry(std::istream&, bool) (
     this=0xeffff7e7, __in=@0xeffffa40, __noskipws=115)
     at 
/disks/primo4/workplaces/andrewp/gnu/gcc-3.1-standard-build/sparc-sun-solaris2.6/libstdc++-v3/include/sparc-sun-solaris2.6/bits/ctype_inline.h:40
#1  0x0002eef0 in std::basic_istream<char, std::char_traits<char> >& 
std::operator>><char, std::char_traits<char>, std::allocator<char> 
 >(std::basic_istream<char, std::char_traits<char> >&, std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >&) (__in=@0xeffffa40, 
__str=@0xeffffb38)
     at 
/disks/primo4/workplaces/andrewp/gnu/gcc-3.1-standard-build/sparc-sun-solaris2.6/libstdc++-v3/include/bits/istream.tcc:1133
#2  0x000114dc in test01() ()
     at 
/disks/arlene/gnu/gcc-3.1/libstdc++-v3/testsuite/21_strings/inserters_extractors.cc:54
#3  0x00013420 in main ()
     at 
/disks/arlene/gnu/gcc-3.1/libstdc++-v3/testsuite/21_strings/inserters_extractors.cc:346

much like where I saw the failure (in ctype_inline.h)

Let me know how I can provide you with more information.

Cheers,
  Andrew.

-- 
        Andrew Pollard - Senior Software Engineer (APF)
    Brooks-PRI Automation - Planning and Logistics Solutions
Email: Andrew.Pollard@brooks-pri.com - Tel: +44 (0)118 9215603


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