Gentoo Archives: gentoo-user

From: Michael Mol <mikemol@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] libv8 segfault
Date: Wed, 23 Jan 2013 16:11:40
Message-Id: CA+czFiCtsR4jqO-QbbxHcxUoF9kG1PfJz83QrXPt_YSNNhWfbQ@mail.gmail.com
In Reply to: Re: [gentoo-user] libv8 segfault by Nilesh Govindrajan
1 On Wed, Jan 23, 2013 at 11:07 AM, Nilesh Govindrajan <me@××××××××.com> wrote:
2 > On Wednesday 23 January 2013 09:29:22 PM IST, Michael Mol wrote:
3 >> On Wed, Jan 23, 2013 at 10:52 AM, Nilesh Govindrajan <me@××××××××.com> wrote:
4 >>> I tried compiling all versions of chromium (-O3, but it always worked
5 >>> previously) & v8 (tried -O3 & -O2 too)
6 >>> but it always segfaults when I try to open the settings page.
7 >>>
8 >>> CrRendererMain[6059]: segfault at 500000000 ip 00007f0d0834970c sp
9 >>> 00007fff71d91a60 error 4 in libv8.so.3.15.11[7f0d08181000+45d000]
10 >>>
11 >>> Quite interestingly, the binary version of chrome works without hitches,
12 >>> which I don't want to run because I'm a little paranoid about it ;-)
13 >>> And that also means that there is no hardware fault.
14 >>>
15 >>> dev-lang/v8-3.15.11.5
16 >>> www-client/chromium-24.0.1312.56 (I'm at present using the google chrome
17 >>> beta, but chromium 25 doesn't work either).
18 >>>
19 >>> Flags:
20 >>> CFLAGS="-O3 -march=core2 -mtune=core2 -msse -msse2 -mssse3 -mmmx -pipe"
21 >>> CXXFLAGS="${CFLAGS}"
22 >>> LDFLAGS="-Wl,-O1 -Wl,--as-needed"
23 >>>
24 >>> Just replace that O3 with O2 for v8.
25 >>>
26 >>> Anybody knows what's going on here?
27 >>
28 >> What USE flags are enabled for chromium? You haven't specified that
29 >> you're using the custom-cflags USE flag, so whatever's in your global
30 >> CFLAGS setting is largely irrelevant.
31 >>
32 >> Also, you don't need to specify --as-needed; that's default, now. I
33 >> don't know what those other flags are doing.
34 >>
35 >> Start with revdep-rebuild, see if that fixes it. If not, you probably
36 >> ought to re-emerge chromium and its direct dependencies. Given your
37 >> recent experience with overclocking and the rather correct warnings
38 >> about silent data corruption, you may need to re-emerge a lot more
39 >> than that.
40 >>
41 >> --
42 >> :wq
43 >>
44 >
45 > I didn't merge anything while I was playing with overclocking.
46 > custom-cflags is enabled.
47 > I found the LDFLAGS on Gentoo Wiki as safe LDFLAGS for optimal
48 > performance.
49
50 Well, then that wiki page is out of date. :)
51
52 --
53 :wq