Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99192 - libstdc++ crashes when sequence of 1 passed to std::unique in <gcc-4
Summary: libstdc++ crashes when sequence of 1 passed to std::unique in <gcc-4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-16 03:51 UTC by basic
Modified: 2005-12-06 23:03 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
trace (ttmkfdir.trace,1.31 KB, text/plain)
2005-07-16 03:53 UTC, basic
Details
patch (ttmkfdir.patch,510 bytes, patch)
2005-07-16 03:59 UTC, basic
Details | Diff
emerge info (info.txt,2.87 KB, text/plain)
2005-07-16 12:43 UTC, basic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description basic 2005-07-16 03:51:34 UTC
ttmkfdir segfaults with twmoefonts. Stack trace and patch coming up.

Reproducible: Always
Steps to Reproduce:
1. emerge ttmkfdir
2. emerge twmoefonts
3. ttmkfdir -d /usr/share/fonts/twmoefonts

Actual Results:  
segfault. 

Expected Results:  
not segfault?
Comment 1 basic 2005-07-16 03:53:42 UTC
Created attachment 63516 [details]
trace

Did a recompile with CFLAGS="$CFLAGS -gdwarf-2" FEATURES=nostrip and ran it
under gdb using "gdb --args ttmkfdir -d /usr/share/fonts/twmoefonts", I got
this backtrace
Comment 2 basic 2005-07-16 03:59:05 UTC
Created attachment 63517 [details, diff]
patch

with this patch it doesn't segfault, though I'm not sure if it's a ttmkfdir bug
or a libstdc++ bug ...
Comment 3 Joshua Baergen (RETIRED) gentoo-dev 2005-07-16 07:53:19 UTC
Just so we have it, attaching your `emerge info` and giving us the version
number of the involved packages would be helpful.
Comment 4 basic 2005-07-16 12:43:31 UTC
Created attachment 63565 [details]
emerge info

ttmkfdir version 3.0.9-r3
twmoefonts 0.1-r1
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2005-07-16 13:21:58 UTC
Is there a possibility that it's a broken font?
Comment 6 basic 2005-07-17 00:22:23 UTC
even if it is a broken font, should it not segfault? Maybe the fix should be
libstdc++, since it would seem that when a sequence of one is passed to
std::unique it crashes...
Comment 7 basic 2005-07-17 00:44:48 UTC
I just tried compiling with gcc 4.0.0 (installed it a while ago to test it), it
doesn't segfault, it seems to be a bug in gcc3.3.5? The patch posted just works
around the issue.
Comment 8 Donnie Berkholz (RETIRED) gentoo-dev 2005-07-18 00:11:55 UTC
Passing it to toolchain folks.
Comment 9 basic 2005-12-06 23:00:30 UTC
installed gcc-3.4.4-r1 and reinstalled ttmkfdir-3.0.9-r3 and tested with
twmoefonts. No crash. Since gcc-3.4.4 is now in stable, this can be considered
fixed?
Comment 10 Mark Loeser (RETIRED) gentoo-dev 2005-12-06 23:03:28 UTC
Sounds good to me, thanks.