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]

Re:[c++] i686 toolchain additional shared fails


Surprisingly, I can reproduce the report in such a way that
explicitly configuring an i586-pc-linux-gnu target reduces the number
of testsuite failures for dynamically linked executables by four in
comparison to
<http://gcc.gnu.org/ml/libstdc++/2001-01/msg00046.html>, as
demonstrated by the appended logfile. The results for dynamically
linked executables are the same as for Mr. Kosnik's system but the number of
failures for statically linked executables differs by eight in
comparison to <http://gcc.gnu.org/ml/libstdc++/2001-01/msg00042.html>.

A preliminary analysis shows that all the static executable segfault
in __throw, throw_helper and next_stack_level, e.g. in throw
__out_of_range(const char *str) in line 54 for the program
element_access.st-exe. Does exception-handling not work in glibc-2.1.3 when
linked statically for "library-exceptions" (out_of_range etc)?

By the way the results for the gcc- and g++-testsuites are the same
for both targets.

I hope this helps
Peter Schmid

Backtrace for element_access.st-exe: 
Program received signal SIGSEGV, Segmentation fault.
0x80495bc in next_stack_level (pc=0x804bde2, udata=0xbffff48c, 
    caller_udata=0xbffff40c)
Current language:  auto; currently c
(gdb) bt
#0  0x80495bc in next_stack_level (pc=0x804bde2, udata=0xbffff48c, 
    caller_udata=0xbffff40c)
#1  0x80496be in throw_helper (eh=0x8050c20, pc=0x804bde2, 
    my_udata=0xbffff54c, offset_p=0xbffff548)
#2  0x8049a6a in __throw ()
#3  0x804bde3 in _ZSt14__out_of_rangePKc (str=0x804dafa "__n >= this->size()")
    at ../../../../gcc/libstdc++-v3/src/stdexcept.cc:54
#4  0x804c366 in _ZNKSs2atEj (this=0xbffff7bc, __n=21) at basic_string.h:435
#5  0x8049dc6 in _Z6test01v ()
    at ../../../gcc/libstdc++-v3/testsuite/21_strings/element_access.cc:59
#6  0x804a04b in main ()
    at ../../../gcc/libstdc++-v3/testsuite/21_strings/element_access.cc:94
#7  0x4004da4e in __libc_start_main (main=0x804a040 <main>, argc=1, 
    argv=0xbffff85c, init=0x8048ae0 <_init>, fini=0x804d9c4 <_fini>, 
    rtld_fini=0x4000aa20 <_dl_fini>, stack_end=0xbffff854)
    at ../sysdeps/generic/libc-start.c:92


host: Linux 2.4.0-test12 #22 Sun Dec 17 17:24:36 CET 2000 i686
compiler: Reading specs from /home/peter/egcs/build/i586-pc-linux-gnu/libstdc++-v3/../../gcc/specs
Configured with: ../gcc/configure --enable-shared --disable-nls -enable-languages=c,c++ --host=i586-pc-linux-gnu
gcc version 2.97 20010106 (experimental)
g++: No input files
compiler flags: -ggdb3 -DDEBUG_ASSERT -ffunction-sections -fdata-sections
date: 20010107
pass/fail results:  99/2 shared + 91/10 static = 190/12 total

p == pass/fail execution test
     +: pass, -b: build failure, -r: run failure, x: disabled
ctime == time to compile and link
etime == time for executable to run
text == size of the executable text section
data == size of the executable data section
total == size of the executable

p ctime	etime	text	data	total	name	
+  1	0.173	697	24	9925	17_intro/header_ciso646.cc -static
+  2	0.215	697	24	10256	17_intro/header_ciso646.cc 

+  2	0.169	326	24	18456	17_intro/header_cstdio.cc -static
+  1	0.181	326	24	18787	17_intro/header_cstdio.cc 

+  1	0.169	326	24	18195	17_intro/header_cstdlib.cc -static
+  3	0.180	326	24	18526	17_intro/header_cstdlib.cc 

+  2	0.170	338	24	9758	17_intro/header_cstring.cc -static
+  1	0.181	338	24	10089	17_intro/header_cstring.cc 

+  1	0.170	326	24	15133	17_intro/header_ctime.cc -static
+  2	0.181	326	24	15464	17_intro/header_ctime.cc 

+  2	0.173	326	24	19378	17_intro/header_cwchar.cc -static
+  1	0.180	326	24	19709	17_intro/header_cwchar.cc 

+  1	0.170	314	24	8703	17_intro/header_cwctype.cc -static
+  2	0.181	314	24	9034	17_intro/header_cwctype.cc 

+  6	0.169	314	28	185598	17_intro/header_fstream.cc -static
+  6	0.180	314	28	186252	17_intro/header_fstream.cc 

+  4	0.170	314	24	130732	17_intro/header_iomanip.cc -static
+  5	0.184	314	24	131063	17_intro/header_iomanip.cc 

+  4	0.170	314	24	96347	17_intro/header_ios.cc -static
+  4	0.180	314	24	96678	17_intro/header_ios.cc 

+  1	0.171	314	24	20277	17_intro/header_iosfwd.cc -static
+  1	0.182	314	24	20608	17_intro/header_iosfwd.cc 

+  4	0.174	175213	6504	1978422	17_intro/header_iostream.cc -static
+  4	0.181	460	24	128108	17_intro/header_iostream.cc 

+  4	0.171	314	24	126905	17_intro/header_istream.cc -static
+  4	0.180	314	24	127236	17_intro/header_istream.cc 

+  4	0.170	314	24	96355	17_intro/header_ostream.cc -static
+  4	0.180	314	24	96686	17_intro/header_ostream.cc 

+  5	0.169	314	24	126905	17_intro/header_sstream.cc -static
+  4	0.182	314	24	127236	17_intro/header_sstream.cc 

+  4	0.169	314	24	96335	17_intro/header_streambuf.cc -static
+  4	0.181	314	24	96666	17_intro/header_streambuf.cc 

+  11	0.171	175213	6472	2091778	17_intro/headers.cc -static
+  10	0.182	460	28	241855	17_intro/headers.cc 

+  1	0.220	314	24	27472	17_intro/headers_c++.cc -static
+  2	0.181	314	24	27803	17_intro/headers_c++.cc 

+  2	0.170	314	24	27471	17_intro/headers_c.cc -static
+  2	0.181	314	24	27802	17_intro/headers_c.cc 

+  2	0.172	13373	1664	166406	18_support/numeric_limits.cc -static
+  1	0.181	9725	1632	139971	18_support/numeric_limits.cc 

+  3	0.176	20728	1752	212449	20_util/auto_ptr.cc -static
+  5	0.263	17080	1752	186406	20_util/auto_ptr.cc 

-r 8	0.171	33250	1860	477404	21_strings/append.cc -static
+  7	0.185	28189	1728	370367	21_strings/append.cc 

+  8	0.183	39330	1864	550498	21_strings/capacity.cc -static
+  8	0.183	34269	1696	442545	21_strings/capacity.cc 

+  4	0.171	19010	1864	338998	21_strings/char_traits.cc -static
+  5	0.182	13949	1696	229096	21_strings/char_traits.cc 

+  6	0.175	22498	1864	350604	21_strings/compare.cc -static
+  5	0.184	17437	1696	241774	21_strings/compare.cc 

-r 6	0.170	27442	1848	438468	21_strings/ctor_copy_dtor.cc -static
+  6	0.182	22381	1728	330128	21_strings/ctor_copy_dtor.cc 

-r 5	0.179	19842	1860	343130	21_strings/element_access.cc -static
+  5	0.181	14781	1728	234208	21_strings/element_access.cc 

+  5	0.203	23810	1864	353334	21_strings/find.cc -static
+  5	0.184	18749	1696	244356	21_strings/find.cc 

-r 7	0.174	30162	1848	443651	21_strings/insert.cc -static
+  6	0.214	25101	1728	336491	21_strings/insert.cc 

+  11	0.201	184637	6408	2152962	21_strings/inserters_extractors.cc -static
+  11	0.263	33613	2688	433364	21_strings/inserters_extractors.cc 

+  6	0.180	27202	1864	388687	21_strings/invariants.cc -static
+  6	0.180	22141	1696	280440	21_strings/invariants.cc 

+  6	0.171	33810	1864	413431	21_strings/nonmember.cc -static
+  6	0.180	28749	1696	305163	21_strings/nonmember.cc 

+  4	0.171	20850	1864	346307	21_strings/operations.cc -static
+  4	0.188	15789	1696	237253	21_strings/operations.cc 

+  6	0.169	29954	1864	459362	21_strings/replace.cc -static
+  6	0.180	24893	1696	351053	21_strings/replace.cc 

+  5	0.170	19842	1864	342174	21_strings/rfind.cc -static
+  5	0.183	14781	1696	232532	21_strings/rfind.cc 

-r 5	0.172	23090	1860	388395	21_strings/substr.cc -static
+  5	0.183	18029	1728	279780	21_strings/substr.cc 

+  7	0.174	176909	6464	2068556	22_locale/codecvt_char_char.cc -static
+  7	0.180	11832	1688	320911	22_locale/codecvt_char_char.cc 

+  6	0.170	314	28	185612	22_locale/codecvt_unicode_char.cc -static
+  6	0.183	314	28	186266	22_locale/codecvt_unicode_char.cc 

+  6	0.169	314	28	185618	22_locale/codecvt_unicode_wchar_t.cc -static
+  6	0.183	314	28	186272	22_locale/codecvt_unicode_wchar_t.cc 

+  6	0.170	314	28	185612	22_locale/codecvt_wchar_t_char.cc -static
+  6	0.182	314	28	186266	22_locale/codecvt_wchar_t_char.cc 

+  5	0.170	314	28	185600	22_locale/ctor_copy_dtor.cc -static
+  5	0.182	314	28	186254	22_locale/ctor_copy_dtor.cc 

+  7	0.205	177085	6816	2054175	22_locale/ctype.cc -static
+  6	0.181	11149	2016	308935	22_locale/ctype.cc 

+  7	0.170	178973	6560	2052467	22_locale/ctype_char_members.cc -static
+  6	0.184	12797	1792	297211	22_locale/ctype_char_members.cc 

+  5	0.169	314	28	185614	22_locale/ctype_wchar_t_members.cc -static
+  6	0.180	314	28	186268	22_locale/ctype_wchar_t_members.cc 

+  12	0.171	192861	8328	2271821	22_locale/facet.cc -static
+  11	0.181	43869	5120	566251	22_locale/facet.cc 

+  7	0.171	179757	6592	2091003	22_locale/global_templates.cc -static
+  7	0.180	15341	1856	347296	22_locale/global_templates.cc 

+  7	0.171	180077	6592	2094522	22_locale/operators.cc -static
+  7	0.180	16413	1856	352370	22_locale/operators.cc 

+  7	0.171	179853	6560	2070267	22_locale/static_members.cc -static
+  7	0.181	15965	1824	327521	22_locale/static_members.cc 

-r 7	0.172	186077	6536	2106004	23_containers/bitset_ctor.cc -static
+  7	0.181	22477	1824	359250	23_containers/bitset_ctor.cc 

+  9	0.829	197789	6536	2141015	23_containers/bitset_shift.cc -static
+  9	0.847	32701	1824	391744	23_containers/bitset_shift.cc 

-b 7	0.847	0	0	0	23_containers/map_operators.cc -static
-b 7	0.847	0	0	0	23_containers/map_operators.cc 

+  7	0.000	183421	6440	2086826	23_containers/multiset.cc -static
+  6	0.000	17549	1696	334408	23_containers/multiset.cc 

-b 4	0.000	0	0	0	23_containers/set_operators.cc -static
-b 5	0.000	0	0	0	23_containers/set_operators.cc 

+  4	0.170	21149	1696	289105	23_containers/vector_capacity.cc -static
+  4	0.181	17501	1696	263463	23_containers/vector_capacity.cc 

+  10	0.171	210580	6416	2299713	23_containers/vector_ctor.cc -static
+  9	0.180	44637	1696	545129	23_containers/vector_ctor.cc 

-r 4	0.173	177652	6448	1961919	23_containers/vector_element_access.cc -static
+  4	0.181	11709	1728	207575	23_containers/vector_element_access.cc 

+  6	0.172	29485	1696	426922	23_containers/vector_modifiers.cc -static
+  6	0.180	25837	1696	401280	23_containers/vector_modifiers.cc 

+  7	0.173	182509	6472	2074042	24_iterators/istreambuf_iterator.cc -static
+  7	0.184	22733	2144	337968	24_iterators/istreambuf_iterator.cc 

+  10	0.171	43954	1864	598971	24_iterators/iterator.cc -static
+  10	0.181	38893	1696	490190	24_iterators/iterator.cc 

+  4	0.176	2149	24	93307	25_algorithms/lower_bound.cc -static
+  3	0.182	2149	24	93638	25_algorithms/lower_bound.cc 

+  2	0.169	837	24	61331	25_algorithms/min_max.cc -static
+  3	0.184	837	24	61662	25_algorithms/min_max.cc 

+  8	0.000	179405	6440	2116444	26_numerics/binary_closure.cc -static
+  9	0.000	13720	1688	366031	26_numerics/binary_closure.cc 

+  2	0.170	703	24	29092	26_numerics/buggy_complex.cc -static
+  3	0.183	703	24	29423	26_numerics/buggy_complex.cc 

+  2	0.201	871	24	21677	26_numerics/c_math.cc -static
+  2	0.219	871	24	22064	26_numerics/c_math.cc 

+  9	0.186	192573	6472	2150375	26_numerics/complex_inserters_extractors.cc -static
+  7	0.184	26205	2144	342552	26_numerics/complex_inserters_extractors.cc 

+  2	0.185	1647	24	31778	26_numerics/complex_value.cc -static
+  2	0.179	1647	24	32165	26_numerics/complex_value.cc 

+  6	0.170	14504	1688	264309	26_numerics/valarray.cc -static
+  6	0.180	10856	1688	238355	26_numerics/valarray.cc 

+  9	0.173	187188	6572	2106321	27_io/filebuf.cc -static
+  8	0.183	27117	2080	370575	27_io/filebuf.cc 

+  7	0.172	177732	6464	2076489	27_io/filebuf_members.cc -static
+  7	0.184	15901	1952	335376	27_io/filebuf_members.cc 

+  4	0.169	1995	24	101739	27_io/fpos.cc -static
+  4	0.182	1995	24	102070	27_io/fpos.cc 

+  7	0.426	177556	6464	2073857	27_io/ifstream_members.cc -static
+  7	0.476	16237	1952	333097	27_io/ifstream_members.cc 

+  6	0.202	180173	6472	2057015	27_io/ios_base_callbacks.cc -static
+  7	0.180	19229	1952	317016	27_io/ios_base_callbacks.cc 

+  6	0.171	179085	6504	2050111	27_io/ios_base_members_static.cc -static
+  6	0.181	17085	1984	308598	27_io/ios_base_members_static.cc 

+  7	0.174	178541	6472	2056671	27_io/ios_base_storage.cc -static
+  6	0.182	18541	2144	320256	27_io/ios_base_storage.cc 

+  6	0.173	180173	6472	2053302	27_io/ios_ctor.cc -static
+  7	0.214	18925	1952	312705	27_io/ios_ctor.cc 

+  10	777.000	184941	6536	2143554	27_io/ios_manip_basefield.cc -static
+  9	777.000	26685	2368	411997	27_io/ios_manip_basefield.cc 

+  11	0.000	185229	6536	2148331	27_io/ios_manip_fmtflags.cc -static
+  9	0.000	28381	2464	419417	27_io/ios_manip_fmtflags.cc 

-r 5	0.172	179421	6440	2004631	27_io/ios_members.cc -static
+  5	0.182	15117	1760	257491	27_io/ios_members.cc 

+  5	0.173	314	24	126888	27_io/istream.cc -static
+  4	0.181	314	24	127219	27_io/istream.cc 

+  11	1.000	195885	6952	2149889	27_io/istream_extractor_arith.cc -static
+  10	1.000	40781	3392	425043	27_io/istream_extractor_arith.cc 

+  7	0.170	184333	6472	2066866	27_io/istream_extractor_char.cc -static
+  6	0.182	24013	2080	328501	27_io/istream_extractor_char.cc 

+  8	0.171	185300	6444	2126693	27_io/istream_extractor_other.cc -static
+  8	0.182	25453	2048	389223	27_io/istream_extractor_other.cc 

+  7	0.171	180221	6472	2062137	27_io/istream_manip.cc -static
+  6	0.180	20541	2144	326405	27_io/istream_manip.cc 

+  10	0.174	186333	6408	2134785	27_io/istream_seeks.cc -static
+  9	0.184	30717	2368	405589	27_io/istream_seeks.cc 

+  7	0.171	179053	6472	2055274	27_io/istream_sentry.cc -static
+  6	0.181	18125	2048	315103	27_io/istream_sentry.cc 

+  11	0.241	191581	6440	2150663	27_io/istream_unformatted.cc -static
+  10	0.254	35437	2464	422321	27_io/istream_unformatted.cc 

+  7	0.170	180765	6440	2089200	27_io/istringstream_members.cc -static
+  7	0.181	22077	2144	355192	27_io/istringstream_members.cc 

+  12	0.000	175597	6472	2111182	27_io/narrow_stream_objects.cc -static
+  11	0.000	939	28	262730	27_io/narrow_stream_objects.cc 

+  7	0.476	177700	6464	2073199	27_io/ofstream_members.cc -static
+  7	0.536	16253	1952	332311	27_io/ofstream_members.cc 

+  4	0.172	314	24	96338	27_io/ostream.cc -static
+  4	0.181	314	24	96669	27_io/ostream.cc 

+  10	0.181	189933	6536	2155235	27_io/ostream_inserter_arith.cc -static
+  10	0.192	33245	2560	426304	27_io/ostream_inserter_arith.cc 

+  10	0.348	187149	6408	2144008	27_io/ostream_inserter_char.cc -static
+  9	0.362	32941	2304	417642	27_io/ostream_inserter_char.cc 

+  8	0.215	179165	6408	2102451	27_io/ostream_inserter_other.cc -static
+  8	0.193	22717	2368	372593	27_io/ostream_inserter_other.cc 

+  8	0.171	182269	6472	2091911	27_io/ostream_manip.cc -static
+  7	0.180	24861	2144	359426	27_io/ostream_manip.cc 

+  9	0.171	177533	6408	2095324	27_io/ostream_seeks.cc -static
+  8	0.184	21245	2304	364777	27_io/ostream_seeks.cc 

+  6	0.170	178733	6504	2056313	27_io/ostream_unformatted.cc -static
+  6	0.181	18493	2176	319465	27_io/ostream_unformatted.cc 

+  6	0.173	185293	6664	2039549	27_io/streambuf.cc -static
+  6	0.181	23517	2144	298976	27_io/streambuf.cc 

+  8	0.174	194221	6464	2098509	27_io/stringbuf.cc -static
+  7	0.182	34541	1856	361792	27_io/stringbuf.cc 

+  8	0.171	183421	7048	2115349	27_io/stringstream.cc -static
+  8	0.182	28077	3104	386684	27_io/stringstream.cc 

+  11	0.170	175261	6472	2092015	27_io/wide_stream_objects.cc -static
+  11	0.180	508	28	242092	27_io/wide_stream_objects.cc 

+  8	0.170	175213	6504	2086785	ext/headers.cc -static
+  8	0.182	460	24	236473	ext/headers.cc 

testrun == 1279 seconds


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