Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 410777 - www-client/chromium-18.0.1025.142 with dev-libs/icu-49.1 - segmentation fault in icu_49::RegexMatcher::reset(icu_49::UnicodeString const&) () from /usr/lib64/libicui18n.so.49
Summary: www-client/chromium-18.0.1025.142 with dev-libs/icu-49.1 - segmentation fault...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: Chromium Project
URL:
Whiteboard: ht-wanted
Keywords:
Depends on:
Blocks: CVE-2011-4599
  Show dependency tree
 
Reported: 2012-04-04 14:11 UTC by biohazrd
Modified: 2012-05-07 15:07 UTC (History)
10 users (show)

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


Attachments
emerge info (emerge.info,15.89 KB, text/plain)
2012-04-04 14:13 UTC, biohazrd
Details
gdb output (gdb.output,3.79 KB, text/plain)
2012-04-04 14:14 UTC, biohazrd
Details
Better backtrace (gdb.txt,22.43 KB, text/plain)
2012-04-05 01:31 UTC, Mike Gilbert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description biohazrd 2012-04-04 14:11:51 UTC
Oddly the only site I have found it to crash with is http://bugs.gentoo.org but it consistently segfaults immediately after entering the URL

Reproducible: Always

Steps to Reproduce:
1.start chromium
2.enter bugs.gentoo.org in address bar
3.
Actual Results:  
Segfault crash

Expected Results:  
Open the site for viewing

This happened after an upgrade of dev-libs/icu from 48 to 49.1.  I had done a revdep-rebuild after updating last night and chromium came up to rebuild base on lib icu.
Comment 1 biohazrd 2012-04-04 14:13:11 UTC
Created attachment 307767 [details]
emerge info
Comment 2 biohazrd 2012-04-04 14:14:15 UTC
Created attachment 307769 [details]
gdb output
Comment 3 Norman Back 2012-04-04 16:35:30 UTC
I've had similar experiences with www-client/chromium-18.0.1025.142 and dev-libs/icu-49.1. However for me chromium crashes immediately on startup. Reverting to dev-libs/icu-4.8.1.1-r1 fixes the issue.
Comment 4 Tolga Dalman 2012-04-04 18:28:34 UTC
Broken here, too.
Comment 5 Mike Gilbert gentoo-dev 2012-04-04 18:45:41 UTC
I'm not sure if it would be better to put add <dev-libs/icu-49 dependency to chromium, or add dev-libs/icu-49 back to package.mask.

Thoughts?
Comment 6 Tolga Dalman 2012-04-04 19:01:39 UTC
Unless other regressions pop up, I'd opt for adding a dependency constraint in the chromium ebuild.
Comment 7 Mike Gilbert gentoo-dev 2012-04-04 19:09:03 UTC
  04 Apr 2012; Mike Gilbert <floppym@gentoo.org> -chromium-17.0.963.83.ebuild,
  -chromium-18.0.1025.140.ebuild, chromium-18.0.1025.142.ebuild:
  Depend on <dev-libs/icu-49 for bug 410777. Remove old.

I left chromium-19 alone for now. I'll test it later.
Comment 8 Tolga Dalman 2012-04-04 19:55:00 UTC
Thanks!
Comment 9 Mike Gilbert gentoo-dev 2012-04-04 22:41:10 UTC
chromium-19.0.1084.1 is also affected.

For me, the segfault is triggered immediately after logging into bugs.gentoo.org.
Comment 10 biohazrd 2012-04-05 00:18:49 UTC
(In reply to comment #5)
> I'm not sure if it would be better to put add <dev-libs/icu-49 dependency to
> chromium, or add dev-libs/icu-49 back to package.mask.
> 
> Thoughts?

My vote would be to mask dev-libs/icu-49.1 for now as libreoffice-bin is built against .48 and breaks (I gave up after about 3 symlinks to the new .49 so's and just installed the compiled verion of libreoffice.  Other packages probably need some time to be tested with 49.1 before unmasking as well.

Thanks for jumping on this so quickly.
Comment 11 Mike Gilbert gentoo-dev 2012-04-05 00:45:42 UTC
(In reply to comment #10)

Can you file a bug for that libreoffice-bin issue? It should probably depend on =dev-libs/icu-4.8*.
Comment 12 Mike Gilbert gentoo-dev 2012-04-05 01:31:38 UTC
Created attachment 307851 [details]
Better backtrace
Comment 13 Mike Gilbert gentoo-dev 2012-04-05 01:32:54 UTC
Oh, my backtrace is from 19.0.1084.1.
Comment 14 Jouni Rinne 2012-04-05 04:07:16 UTC
(In reply to comment #10)
> (In reply to comment #5)
> > I'm not sure if it would be better to put add <dev-libs/icu-49 dependency to
> > chromium, or add dev-libs/icu-49 back to package.mask.
> > 
> > Thoughts?
> 
> My vote would be to mask dev-libs/icu-49.1 for now as libreoffice-bin is
> built against .48 and breaks (I gave up after about 3 symlinks to the new
> .49 so's and just installed the compiled verion of libreoffice.  Other
> packages probably need some time to be tested with 49.1 before unmasking as
> well.
> 
> Thanks for jumping on this so quickly.

Stable version of libreoffice (3.4.5.2) breaks too, and refuses to compile with icu-49.1
Comment 15 hiyuh 2012-04-05 06:39:47 UTC
(In reply to comment #14)
> (In reply to comment #10)
> > (In reply to comment #5)
> > > I'm not sure if it would be better to put add <dev-libs/icu-49 dependency to
> > > chromium, or add dev-libs/icu-49 back to package.mask.
> > > 
> > > Thoughts?
> > 
> > My vote would be to mask dev-libs/icu-49.1 for now as libreoffice-bin is
> > built against .48 and breaks (I gave up after about 3 symlinks to the new
> > .49 so's and just installed the compiled verion of libreoffice.  Other
> > packages probably need some time to be tested with 49.1 before unmasking as
> > well.
> > 
> > Thanks for jumping on this so quickly.
> 
> Stable version of libreoffice (3.4.5.2) breaks too, and refuses to compile
> with icu-49.1

i don't use both of chromium and libreoffice though, i have

$ equery depends dev-libs/icu
 * These packages depend on dev-libs/icu:
dev-db/sqlite-3.7.11 (icu ? dev-libs/icu)
dev-libs/libxml2-2.7.8-r5 (icu ? dev-libs/icu)
dev-util/dwdiff-2.0.2 (dev-libs/icu)

w/ dev-libs/icu-49.1.

masking bumped library in global package.mask to avoid some specific package segfaults? is icu-49.1 really broken?
Comment 16 Martin Jansa 2012-04-05 06:43:20 UTC
(In reply to comment #14)
> (In reply to comment #10)
> > (In reply to comment #5)
> > > I'm not sure if it would be better to put add <dev-libs/icu-49 dependency to
> > > chromium, or add dev-libs/icu-49 back to package.mask.
> > > 
> > > Thoughts?
> > 
> > My vote would be to mask dev-libs/icu-49.1 for now as libreoffice-bin is
> > built against .48 and breaks (I gave up after about 3 symlinks to the new
> > .49 so's and just installed the compiled verion of libreoffice.  Other
> > packages probably need some time to be tested with 49.1 before unmasking as
> > well.
> > 
> > Thanks for jumping on this so quickly.
> 
> Stable version of libreoffice (3.4.5.2) breaks too, and refuses to compile
> with icu-49.1

testing app-office/libreoffice-3.5.2.2 builds fine with icu-49.1, not sure about runtime

IIRC I've seen similar crashes with chromium after previous icu upgrade too, why is it so picky about lib like icu :/
Comment 17 Nikos Chantziaras 2012-04-05 09:15:52 UTC
libreoffice-3.5.2.2 builds and works fine with 49.1.  libreoffice-3.4.5.2 refused to build *before* I updated to icu-49.1.
Comment 18 Nikos Chantziaras 2012-04-05 09:58:25 UTC
I just discovered that there's something going on with KDE.  I've updated to 4.8.2, and during emerge, every single package produces a multiple copies of this warning:

Unable to load library icui18n "Cannot load library icui18n: (libicui18n.so.48: cannot open shared object file: No such file or directory)"

It does build though and run though (running 4.8.2 right now.)
Comment 19 Jory A. Pratt gentoo-dev 2012-04-05 13:58:38 UTC
(In reply to comment #18)
> I just discovered that there's something going on with KDE.  I've updated to
> 4.8.2, and during emerge, every single package produces a multiple copies of
> this warning:
> 
> Unable to load library icui18n "Cannot load library icui18n:
> (libicui18n.so.48: cannot open shared object file: No such file or
> directory)"
> 
> It does build though and run though (running 4.8.2 right now.)

This would be caused from missing revdep-rebuild after the icu update.
Comment 20 Nikos Chantziaras 2012-04-05 14:16:08 UTC
(In reply to comment #19)
> (In reply to comment #18)
> > I just discovered that there's something going on with KDE.  I've updated to
> > 4.8.2, and during emerge, every single package produces a multiple copies of
> > this warning:
> > 
> > Unable to load library icui18n "Cannot load library icui18n:
> > (libicui18n.so.48: cannot open shared object file: No such file or
> > directory)"
> > 
> > It does build though and run though (running 4.8.2 right now.)
> 
> This would be caused from missing revdep-rebuild after the icu update.

I already ran it when I first upgraded to icu 49.1.  If I run it again (revdep-rebuild -i) it passes cleanly.  So this can't be it.

Maybe something is trying to dlopen the library?
Comment 21 Mike Gilbert gentoo-dev 2012-04-05 18:47:32 UTC
(In reply to comment #15)
> masking bumped library in global package.mask to avoid some specific package
> segfaults? is icu-49.1 really broken?

Sorry about that. Anyway, probably best to leave it masked at this point.
Comment 22 Mike Gilbert gentoo-dev 2012-04-07 02:08:28 UTC
I reported the issue to Chromium upstream.
Comment 23 Drake Donahue 2012-04-10 15:53:47 UTC
on a 6 day old amd64~ system; a world update was done before icu-49 was hard masked; a world update done after icu-49 was masked, partially failed because of icu-49* dependencies. revdep-rebuild could not correct this. gedit and epiphany failed. After a reboot gnome3 failed entirely displaying only background wallpaper. Unmerging chromium, unmasking icu, emerging icu (49.1.1), emerging -uND world restored normal functioning. emerge chromium caused icu-48* and chromium-18* to reinstall and killed chromium, gedit, epiphany, and gnome (at next startx) to fail. Unmasking chromium, emerge icu-49.1.1, emerge -uND world, emerge chromium restored all functions. Except: chromium-19* will open https://bugs.gentoo.org but will spontaneously close when login is attempted. login to other secure sites succeeds.
Comment 24 Heiko 2012-05-06 09:44:07 UTC
Just to sort things out, I'd like to refer to the upstream bug:
  http://code.google.com/p/chromium/issues/detail?id=122125
and the fix mentioned there:
"
Ok, digging further on why the failure code is returned on that particular regexp, it turned out to be an icu problem, specifically:
  http://bugs.icu-project.org/trac/ticket/9283
So using the corresponding "fix"
  http://bugs.icu-project.org/trac/changeset/31782/icu/trunk/source/i18n/regexcmp.cpp
makes chromium work on autofill again.
"

Just writing from within chromium with icu-49 and that patch applied :)
Comment 25 Heiko 2012-05-06 09:48:34 UTC
Looks like there are two upstream bugs regarding that issue. One from April 5th, the only one the search returned to me earlier this day, and the one linked in this bug's description from April 6th.

About libreoffice: At least librecalc works for me with icu-49.1.1 (even without the patch).
Comment 26 Arfrever Frehtes Taifersar Arahesis 2012-05-06 19:17:15 UTC
dev-libs/icu-49.1.1-r1 is now in gentoo-x86.
Comment 27 Mike Gilbert gentoo-dev 2012-05-06 19:30:05 UTC
(In reply to comment #26)
> dev-libs/icu-49.1.1-r1 is now in gentoo-x86.

Let's give it a shot then; I plan to test each Chromium major version, starting with 20 and working back to 18. Help/additional reports would be appreciated.
Comment 28 Mike Gilbert gentoo-dev 2012-05-06 21:17:55 UTC
I have verified that the following chromium versions do not segfault when built against dev-libs/icu-49.1.1-r1.

18.0.1025.168
19.0.1084.41
20.0.1123.2

I will give it a day for others to test, and then remove the dependency on <dev-libs/icu-49.
Comment 29 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2012-05-07 15:07:46 UTC
(In reply to comment #28)
> I have verified that the following chromium versions do not segfault when
> built against dev-libs/icu-49.1.1-r1.
> 
> 18.0.1025.168
> 19.0.1084.41
> 20.0.1123.2
> 
> I will give it a day for others to test, and then remove the dependency on
> <dev-libs/icu-49.

Thanks for the work, tested here. I committed dependency changes.