public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/8840: 3.2.1: sort (v.begin (), v.end (), loc) dumps core
@ 2002-12-11  9:04 bkoz
  0 siblings, 0 replies; 8+ messages in thread
From: bkoz @ 2002-12-11  9:04 UTC (permalink / raw)
  To: franz.gans.entenhausen, gcc-bugs, gcc-prs, nobody

Synopsis: 3.2.1: sort (v.begin (), v.end (), loc) dumps core

State-Changed-From-To: analyzed->feedback
State-Changed-By: bkoz
State-Changed-When: Wed Dec 11 09:04:22 2002
State-Changed-Why:
    Yes, you'll have to upgrade to 2.2.5. We should perhaps test for this in configure.in, and disable gnu locales on older glibcs, now that glibc-2.3.x is out and known to work.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8840


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: libstdc++/8840: 3.2.1: sort (v.begin (), v.end (), loc) dumps core
@ 2003-01-06 20:43 bkoz
  0 siblings, 0 replies; 8+ messages in thread
From: bkoz @ 2003-01-06 20:43 UTC (permalink / raw)
  To: franz.gans.entenhausen, gcc-bugs, gcc-prs, nobody

Synopsis: 3.2.1: sort (v.begin (), v.end (), loc) dumps core

State-Changed-From-To: feedback->closed
State-Changed-By: bkoz
State-Changed-When: Mon Jan  6 12:43:47 2003
State-Changed-Why:
    Seeingly resolved.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8840


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: libstdc++/8840: 3.2.1: sort (v.begin (), v.end (), loc) dumps core
@ 2002-12-06  9:16 Paolo Carlini
  0 siblings, 0 replies; 8+ messages in thread
From: Paolo Carlini @ 2002-12-06  9:16 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR libstdc++/8840; it has been noted by GNATS.

From: Paolo Carlini <pcarlini@unitus.it>
To: franz.gans.entenhausen@t-online.de,  gcc-gnats@gcc.gnu.org, 
 gcc-prs@gcc.gnu.org,  gcc-bugs@gcc.gnu.org,  nobody@gcc.gnu.org
Cc:  
Subject: Re: libstdc++/8840: 3.2.1: sort (v.begin (), v.end (), loc) dumps
 core
Date: Fri, 06 Dec 2002 18:07:35 +0100

 [submitter provided this additional information (Paolo)]
 
 I have locally installed 2.2.5. After creating the de_DE locale with
 localedef and some ld.so-trouble the example *works!* I will do
 extensive testing later.
 
 glibc 2.3.1 is in progress. I will keep you informed.
 
 Best regards
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8840
 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: libstdc++/8840: 3.2.1: sort (v.begin (), v.end (), loc) dumps core
@ 2002-12-06  6:06 Franz Gans
  0 siblings, 0 replies; 8+ messages in thread
From: Franz Gans @ 2002-12-06  6:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1872 bytes --]

The following reply was made to PR libstdc++/8840; it has been noted by GNATS.

From: Franz Gans <franz.gans.entenhausen@t-online.de>
To: paolo@gcc.gnu.org,  franz.gans.entenhausen@t-online.de, 
 gcc-bugs@gcc.gnu.org,  gcc-prs@gcc.gnu.org,  nobody@gcc.gnu.org, 
 paolo@gcc.gnu.org,  gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: libstdc++/8840: 3.2.1: sort (v.begin (), v.end (), loc) dumps
 core
Date: Fri, 06 Dec 2002 14:56:35 +0100

 paolo@gcc.gnu.org wrote:
 > Synopsis: 3.2.1: sort (v.begin (), v.end (), loc) dumps core
 > 
 > Responsible-Changed-From-To: unassigned->paolo
 > Responsible-Changed-By: paolo
 > Responsible-Changed-When: Fri Dec  6 04:14:20 2002
 > Responsible-Changed-Why:
 >     Analyzed.
 > State-Changed-From-To: open->feedback
 > State-Changed-By: paolo
 > State-Changed-When: Fri Dec  6 04:14:20 2002
 > State-Changed-Why:
 >     Unfortunately, I cannot reproduce it on my x86-linux system:
 >     paolo:~> a.out
 >     m p ö
 >     m p ö
 >     paolo:~> setenv LC_ALL de_DE
 >     paolo:~> a.out
 >     m p ö
 >     m ö p
 >     Which version of glibc are you using? Not 2.3.x, I suppose.
 > 
 > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8840
 > 
 Its
 
 softw1@localhost:~> rpm -qli glibc|more
 Name        : glibc                        Relocations: (not relocateable)
 Version     : 2.2.4                             Vendor: SuSE AG, 
 Nuernberg, Germ
 
 any
 Release     : 77                            Build Date: Die 01 Okt 2002 
 18:10:55
 
   CEST
 Install date: Die 26 Nov 2002 11:03:11 CET      Build Host: ting.suse.de
 Group       : System Environment/Libraries   Source RPM: 
 glibc-2.2.4-77.src.rpm
 Size        : 60691218                         License: LGPL/GPL
 Packager    : feedback@suse.de
 Summary     : Shared libraries (from the C library package)
 
 Do I have to upgrade to 2.2.5?
 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: libstdc++/8840: 3.2.1: sort (v.begin (), v.end (), loc) dumps core
@ 2002-12-06  6:06 Paolo Carlini
  0 siblings, 0 replies; 8+ messages in thread
From: Paolo Carlini @ 2002-12-06  6:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR libstdc++/8840; it has been noted by GNATS.

From: Paolo Carlini <pcarlini@unitus.it>
To: Franz Gans <franz.gans.entenhausen@t-online.de>
Cc: paolo@gcc.gnu.org,  gcc-bugs@gcc.gnu.org,  gcc-prs@gcc.gnu.org, 
 nobody@gcc.gnu.org,  gcc-gnats@gcc.gnu.org
Subject: Re: libstdc++/8840: 3.2.1: sort (v.begin (), v.end (), loc) dumps
 core
Date: Fri, 06 Dec 2002 15:04:51 +0100

 Franz Gans wrote:
 
 > Do I have to upgrade to 2.2.5?
 
 Well, right now now I cannot tell for sure if the problem is due to a 
 bug in glibc2.2.4, fixed in 2.2.5.
 
 However, from my own experience, upgrading from 2.2.4 to 2.2.5 is safe 
 and worthy, in general.
 
 Also, it would be nice if you could test your code on a glibc2.3.x 
 system like mine.
 
 Ciao,
 Paolo.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8840
 
 
 
 
 
 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: libstdc++/8840: 3.2.1: sort (v.begin (), v.end (), loc) dumps core
@ 2002-12-06  6:05 paolo
  0 siblings, 0 replies; 8+ messages in thread
From: paolo @ 2002-12-06  6:05 UTC (permalink / raw)
  To: franz.gans.entenhausen, gcc-bugs, gcc-prs, nobody, paolo

Synopsis: 3.2.1: sort (v.begin (), v.end (), loc) dumps core

Responsible-Changed-From-To: paolo->unassigned
Responsible-Changed-By: paolo
Responsible-Changed-When: Fri Dec  6 06:05:35 2002
Responsible-Changed-Why:
    .
State-Changed-From-To: feedback->analyzed
State-Changed-By: paolo
State-Changed-When: Fri Dec  6 06:05:35 2002
State-Changed-Why:
    Feedback received: glibc2.2.4.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8840


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: libstdc++/8840: 3.2.1: sort (v.begin (), v.end (), loc) dumps core
@ 2002-12-06  4:14 paolo
  0 siblings, 0 replies; 8+ messages in thread
From: paolo @ 2002-12-06  4:14 UTC (permalink / raw)
  To: franz.gans.entenhausen, gcc-bugs, gcc-prs, nobody, paolo

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 684 bytes --]

Synopsis: 3.2.1: sort (v.begin (), v.end (), loc) dumps core

Responsible-Changed-From-To: unassigned->paolo
Responsible-Changed-By: paolo
Responsible-Changed-When: Fri Dec  6 04:14:20 2002
Responsible-Changed-Why:
    Analyzed.
State-Changed-From-To: open->feedback
State-Changed-By: paolo
State-Changed-When: Fri Dec  6 04:14:20 2002
State-Changed-Why:
    Unfortunately, I cannot reproduce it on my x86-linux system:
    paolo:~> a.out
    m p ö
    m p ö
    paolo:~> setenv LC_ALL de_DE
    paolo:~> a.out
    m p ö
    m ö p
    Which version of glibc are you using? Not 2.3.x, I suppose.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8840


^ permalink raw reply	[flat|nested] 8+ messages in thread

* libstdc++/8840: 3.2.1: sort (v.begin (), v.end (), loc) dumps core
@ 2002-12-06  3:16 franz.gans.entenhausen
  0 siblings, 0 replies; 8+ messages in thread
From: franz.gans.entenhausen @ 2002-12-06  3:16 UTC (permalink / raw)
  To: gcc-gnats

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 5915 bytes --]


>Number:         8840
>Category:       libstdc++
>Synopsis:       3.2.1: sort (v.begin (), v.end (), loc) dumps core
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 06 03:16:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Franz Gans
>Release:        unknown-1.0
>Organization:
>Environment:
SuSE Linux 7.3
Linux xxxxxx 2.4.16-4GB #1 Mit Okt 30 14:20:02 CET 2002 i686 unknown
gcc -v
Reading specs from /usr5/xhome/softw1/install-3.2.1/lib/gcc-lib/i686-pc-linux-gn
u/3.2.1/specs
Configured with: ../gcc-3.2.1/configure --prefix=/usr5/xhome/softw1/install-3.2.1 --enable-threads --enable-shared
Thread model: posix
gcc version 3.2.1
>Description:
With a german locale (de_DE) the letters "mpö" are sorted as 'm', 'ö' (like oe) and 'p'. bcc32 gives the correct result. gcc 3.2.1 gives a segmentation violation while gcc 3.2 seems to simply ignore any
locale setting. In a gdb session one sees

Program received signal SIGSEGV, Segmentation fault.
0x4017f031 in __strcoll_l () from /lib/libc.so.6
(gdb) bt
#0  0x4017f031 in __strcoll_l () from /lib/libc.so.6
#1  0x4009eb20 in std::collate<char>::_M_compare(char const*, char const*) const
 (this=0x0, __one=0x0, __two=0x0) at collate_members.cc:47
#2  0x4007d990 in std::collate<char>::do_compare(char const*, char const*, char
const*, char const*) const (this=0x0, __lo1=0x0, __hi1=0x0, __lo2=0x0,
    __hi2=0x0)
    at /usr5/xhome/softw1/build/objdir-3.2.1/i686-pc-linux-gnu/libstdc++-v3/incl
ude/bits/basic_string.h:781
#3  0x08049d10 in bool std::locale::operator()<char, std::char_traits<char>, std
::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocat
or<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocato
r<char> > const&) const (this=0x0, __s1=@0x0, __s2=@0x0)
    at /usr5/xhome/softw1/install-3.2.1/include/c++/3.2.1/bits/locale_facets.h:8
58
#4  0x08049d6b in void std::__insertion_sort<__gnu_cxx::__normal_iterator<std::s
tring*, std::vector<std::string, std::allocator<std::string> > >, std::locale>(_
_gnu_cxx::__normal_iterator<std::string*, std::vector<std::string, std::allocato
r<std::string> > >, __gnu_cxx::__normal_iterator<std::string*, std::vector<std::
string, std::allocator<std::string> > >, std::locale) (__first=
      {<iterator<std::random_access_iterator_tag,std::basic_string<char, std::ch
ar_traits<char>, std::allocator<char> >,int,std::basic_string<char, std::char_tr
aits<char>, std::allocator<char> >*,std::basic_string<char, std::char_traits<cha
r>, std::allocator<char> >&>> = {<No data fields>}, _M_current = 0x804f944},
    __last=
      {<iterator<std::random_access_iterator_tag,std::basic_string<char, std::ch
ar_traits<char>, std::allocator<char> >,int,std::basic_string<char, std::char_tr
aits<char>, std::allocator<char> >*,std::basic_string<char, std::char_traits<cha
r>, std::allocator<char> >&>> = {<No data fields>}, _M_current = 0x804f924},
    __comp=Internal: global symbol `_ZNSt6locale4noneE' found in ../../../../gcc
-3.2.1/libstdc++-v3/src/locale.cc psymtab but not in symtab.
_ZNSt6locale4noneE may be an inlined function, or may be a template function
(if a template, try specifying an instantiation: _ZNSt6locale4noneE<type>).
)
    at /usr5/xhome/softw1/install-3.2.1/include/c++/3.2.1/bits/stl_iterator.h:59
3
#5  0x080498d5 in void std::__final_insertion_sort<__gnu_cxx::__normal_iterator<
std::string*, std::vector<std::string, std::allocator<std::string> > >, std::loc
ale>(__gnu_cxx::__normal_iterator<std::string*, std::vector<std::string, std::al
locator<std::string> > >, __gnu_cxx::__normal_iterator<std::string*, std::vector
<std::string, std::allocator<std::string> > >, std::locale) (__first=
      {<iterator<std::random_access_iterator_tag,std::basic_string<char, std::ch
ar_traits<char>, std::allocator<char> >,int,std::basic_string<char, std::char_tr
aits<char>, std::allocator<char> >*,std::basic_string<char, std::char_traits<cha
r>, std::allocator<char> >&>> = {<No data fields>}, _M_current = 0xbffff400},
    __last=
      {<iterator<std::random_access_iterator_tag,std::basic_string<char, std::ch
ar_traits<char>, std::allocator<char> >,int,std::basic_string<char, std::char_tr
aits<char>, std::allocator<char> >*,std::basic_string<char, std::char_traits<cha
r>, std::allocator<char> >&>> = {<No data fields>}, _M_current = 0x804f944},
    __comp=Cannot access memory at address 0x0
)
    at /usr5/xhome/softw1/install-3.2.1/include/c++/3.2.1/bits/stl_algo.h:2079
#6  0x0804909f in main ()
    at /usr5/xhome/softw1/install-3.2.1/include/c++/3.2.1/bits/stl_algo.h:2210
#7  0x4011f7ee in __libc_start_main () from /lib/libc.so.6
>How-To-Repeat:
g++ -O -g locale-sort-bug-3.2.1.cc   [fails even w/o -O and -g]
a.out
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="locale-sort-bug-3.2.1.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="locale-sort-bug-3.2.1.cc"

Ly8NCi8vIDIwMDItMTItMDUgbG9jYWxlLXNvcnQtYnVnLTMuMi4xLmNjDQovLw0KDQojaW5jbHVk
ZSA8aW9zdHJlYW0+DQojaW5jbHVkZSA8c3RyaW5nPg0KI2luY2x1ZGUgPGl0ZXJhdG9yPg0KI2lu
Y2x1ZGUgPHZlY3Rvcj4NCiNpbmNsdWRlIDxsb2NhbGU+DQoNCmludCBtYWluICgpDQp7DQogICB1
c2luZyBuYW1lc3BhY2Ugc3RkOw0KDQogICBsb2NhbGUgbG9jICgiIik7ICAvLyBEZWZhdWx0IGxv
Y2FsZQ0KDQogICB2ZWN0b3I8c3RyaW5nPiB2Ow0KICAgdi5wdXNoX2JhY2sgKCJtIik7DQogICB2
LnB1c2hfYmFjayAoInAiKTsNCiAgIHYucHVzaF9iYWNrICgi9iIpOw0KDQogICBjb3B5KHYuYmVn
aW4oKSwgdi5lbmQoKSwgb3N0cmVhbV9pdGVyYXRvcjxzdHJpbmc+KGNvdXQsIiAiKSk7DQogICBj
b3V0IDw8IGVuZGw7DQoNCiAgICAvLyBTb3J0IHRoZSBzdHJpbmdzIHVzaW5nIHRoZSBsb2NhbGUg
YXMgYSBjb21wYXJpdG9yDQogICBzb3J0KHYuYmVnaW4oKSx2LmVuZCgpLGxvYyk7DQoNCiAgIGNv
cHkodi5iZWdpbigpLHYuZW5kKCksIG9zdHJlYW1faXRlcmF0b3I8c3RyaW5nPihjb3V0LCIgIikp
Ow0KDQogICBjb3V0IDw8IGVuZGw7DQp9DQo=


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-01-06 20:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-11  9:04 libstdc++/8840: 3.2.1: sort (v.begin (), v.end (), loc) dumps core bkoz
  -- strict thread matches above, loose matches on Subject: below --
2003-01-06 20:43 bkoz
2002-12-06  9:16 Paolo Carlini
2002-12-06  6:06 Franz Gans
2002-12-06  6:06 Paolo Carlini
2002-12-06  6:05 paolo
2002-12-06  4:14 paolo
2002-12-06  3:16 franz.gans.entenhausen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).