Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 407881 - app-benchmarks/i7z-0.27-r1: i7z_GUI segfaults
Summary: app-benchmarks/i7z-0.27-r1: i7z_GUI segfaults
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Justin Lecher (RETIRED)
URL: http://code.google.com/p/i7z/issues/d...
Whiteboard:
Keywords:
Depends on:
Blocks: 407787
  Show dependency tree
 
Reported: 2012-03-12 08:10 UTC by Franz Trischberger
Modified: 2013-03-27 19:27 UTC (History)
1 user (show)

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


Attachments
bt (bt,1.20 KB, text/plain)
2012-03-24 11:32 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Franz Trischberger 2012-03-12 08:10:47 UTC
#0  0x000000000040454c in Print_Information_Processor(int*, int*) ()
#1  0x0000000000405f73 in MyWidget::MyWidget(QWidget*) ()
#2  0x0000000000403d0b in main ()

i7z-0.27.1 fixes this.

Reproducible: Always
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2012-03-12 09:50:29 UTC
Please give me a complete bt
http://www.gentoo.org/proj/en/qa/backtraces.xml
Comment 2 Franz Trischberger 2012-03-12 10:58:30 UTC
#0  Print_Information_Processor (nehalem=0x7fffffffb178, sandy_bridge=0xffffb17c) at ../helper_functions.c:431
#1  0x0000000000405f73 in MyWidget::MyWidget (this=0x7fffffffb9e0, parent=<optimized out>) at GUI_i7z.cpp:462
#2  0x0000000000403d0b in main (argc=1, argv=0x7fffffffbda8) at GUI_i7z.cpp:679

But I found out something interesting:
-O2 is causing the errors! I now built with -O0, -O1 and -O3 (!), all running fine - just -O2 is causing the segfault.

===============================

# uname -a
Linux desktop_franz 3.2.9-gentoo #1 SMP Sat Mar 3 08:45:19 CET 2012 x86_64 Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz GenuineIntel GNU/Linux

===============================

# cave info i7z
Package Manager Information:
    Package Name              paludis
    Package Version           0.72.2
    Build Date                2012-03-03T08:27:04+0100
    Built with CXX            x86_64-pc-linux-gnu-g++ 4.6.2
    Built with CXXFLAGS        -march=corei7-avx -O2 -pipe -pedantic
    Built with LDFLAGS        -Wl,-O1 -Wl,--as-needed

Environment Information:
    Format                    paludis
    Config dir                /etc/paludis
    Root                      /
    System Root               /
    World file                /var/db/pkg/world

Repository gentoo:
    format                    e
    location                  /var/paludis/repositories/gentoo
    builddir                  /var/tmp/paludis
    cache                     /var/paludis/repositories/gentoo/metadata/cache
    distdir                   /var/distfiles
    eapi_when_unknown         0
    eapi_when_unspecified     0
    eclassdirs                /var/paludis/repositories/gentoo/eclass
    layout                    traditional
    manifest_hashes           RMD160 SHA1 SHA256
    names_cache               /var/paludis/repositories/gentoo/.cache/names
    newsdir                   /var/paludis/repositories/gentoo/metadata/news
    profile_eapi_when_unspecified 0
    profile_layout            traditional
    profiles                  /etc/make.profile  /var/paludis/repositories/local/profiles
    securitydir               /var/paludis/repositories/gentoo/metadata/glsa
    setsdir                   /var/paludis/repositories/gentoo/sets
    sync                      rsync://rsync.uni-muenster.de/ rsync://rsync.de.gentoo.org/gentoo-portage
    sync_options              
    thin_manifests            false
    use_manifest              use
    write_cache               /var/cache/paludis/metadata
    Package information
        app-shells/bash       4.1_p9
        dev-java/java-config  2.1.11-r3
        dev-lang/python       2.7.2-r3 3.1.4-r3 3.2.2
        dev-util/ccache       (none)
        dev-util/cmake        2.8.6-r4
        dev-util/pkgconfig    0.26
        sys-apps/baselayout   2.0.3
        sys-apps/openrc       0.9.8.4
        sys-apps/sandbox      2.5
        sys-devel/autoconf    2.13 2.68
        sys-devel/automake    1.11.1
        sys-devel/binutils    2.22.52.0.1
        sys-devel/gcc         4.6.2
        sys-devel/gcc-config  1.5-r2
        sys-devel/libtool     2.4-r1
        sys-devel/make        3.82-r1
        sys-freebsd/freebsd-lib (none)
        sys-kernel/linux-headers 3.2-r1
        sys-libs/glibc        2.14.1-r2
        sys-libs/uclibc       (none)

Extra Information for app-benchmarks/i7z-0.27-r1::installed:
        >>> Running ebuild phase killold as paludisbuild:paludisbuild...
        >>> Starting builtin_killold
        >>> Done builtin_killold
        >>> Completed ebuild phase killold
        >>> Running ebuild phases initmisc infovars info as paludisbuild:paludisbuild...
        >>> Starting builtin_initmisc
        bunzip2 < /var/db/pkg/app-benchmarks/i7z-0.27-r1/environment.bz2 > /var/tmp/paludis/environment-app-benchmarks-i7z-0.27-r1-24429
        ebuild_scrub_environment /var/tmp/paludis/environment-app-benchmarks-i7z-0.27-r1-24429
        ebuild_safe_source /var/tmp/paludis/environment-app-benchmarks-i7z-0.27-r1-24429
        rm /var/tmp/paludis/environment-app-benchmarks-i7z-0.27-r1-24429
        >>> Done builtin_initmisc
        >>> Starting builtin_infovars
        ACCEPT_KEYWORDS=amd64
        CBUILD=x86_64-pc-linux-gnu
        CFLAGS=-march=corei7-avx -O2 -pipe -ggdb -O0
        CHOST=x86_64-pc-linux-gnu
        CONFIG_PROTECT=/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb 
        CONFIG_PROTECT_MASK=/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c 
        CPPFLAGS=
        CTARGET=
        CXXFLAGS=-march=corei7-avx -O2 -pipe -ggdb -O0
        DISTDIR=/var/db/pkg/app-benchmarks/i7z-0.27-r1
        FEATURES=
        FFLAGS=
        GENTOO_MIRRORS=
        INSTALL_MASK=
        LANG=
        LC_ALL=C
        LDFLAGS=-Wl,-O1 -Wl,--as-needed
        LINGUAS=de
        MAKEOPTS=-j10
        PORTAGE_COMPRESS=
        PORTAGE_COMPRESS_FLAGS=
        PORTAGE_CONFIGROOT=
        PORTAGE_RSYNC_EXTRA_OPTS=
        PORTAGE_RSYNC_OPTS=
        PORTAGE_TMPDIR=/var/tmp/paludis
        PORTDIR=/var/db/pkg/app-benchmarks/i7z-0.27-r1
        PORTDIR_OVERLAY=
        SYNC=
        USE=X amd64 alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mmap_emul alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2_modules_actions apache2_modules_alias apache2_modules_auth_basic apache2_modules_authn_alias apache2_modules_authn_anon apache2_modules_authn_dbm apache2_modules_authn_default apache2_modules_authn_file apache2_modules_authz_dbm apache2_modules_authz_default apache2_modules_authz_groupfile apache2_modules_authz_host apache2_modules_authz_owner apache2_modules_authz_user apache2_modules_autoindex apache2_modules_cache apache2_modules_cgi apache2_modules_cgid apache2_modules_dav apache2_modules_dav_fs apache2_modules_dav_lock apache2_modules_deflate apache2_modules_dir apache2_modules_disk_cache apache2_modules_env apache2_modules_expires apache2_modules_ext_filter apache2_modules_file_cache apache2_modules_filter apache2_modules_headers apache2_modules_include apache2_modules_info apache2_modules_log_config apache2_modules_logio apache2_modules_mem_cache apache2_modules_mime apache2_modules_mime_magic apache2_modules_negotiation apache2_modules_rewrite apache2_modules_setenvif apache2_modules_speling apache2_modules_status apache2_modules_unique_id apache2_modules_userdir apache2_modules_usertrack apache2_modules_vhost_alias calligra_features_braindump calligra_features_flow calligra_features_karbon calligra_features_kexi calligra_features_krita calligra_features_plan calligra_features_stage calligra_features_tables calligra_features_words cameras_ptp2 collectd_plugins_df collectd_plugins_interface collectd_plugins_irq collectd_plugins_load collectd_plugins_memory collectd_plugins_rrdtool collectd_plugins_swap collectd_plugins_syslog elibc_glibc gpsd_protocols_aivdm gpsd_protocols_ashtech gpsd_protocols_earthmate gpsd_protocols_evermore gpsd_protocols_fv18 gpsd_protocols_garmin gpsd_protocols_garmintxt gpsd_protocols_gpsclock gpsd_protocols_itrax gpsd_protocols_mtk3301 gpsd_protocols_navcom gpsd_protocols_nmea gpsd_protocols_ntrip gpsd_protocols_oceanserver gpsd_protocols_oldstyle gpsd_protocols_oncore gpsd_protocols_rtcm104v2 gpsd_protocols_rtcm104v3 gpsd_protocols_sirf gpsd_protocols_superstar2 gpsd_protocols_timing gpsd_protocols_tnt gpsd_protocols_tripmate gpsd_protocols_tsip gpsd_protocols_ubx input_devices_evdev input_devices_wacom kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text linguas_de php_targets_php5-3 ruby_targets_ruby18 sane_backends_epson sane_backends_epson2 userland_GNU video_cards_i965 video_cards_intel xtables_addons_account xtables_addons_chaos xtables_addons_condition xtables_addons_delude xtables_addons_dhcpmac xtables_addons_fuzzy xtables_addons_geoip xtables_addons_iface xtables_addons_ipmark xtables_addons_ipp2p xtables_addons_ipset xtables_addons_ipv4options xtables_addons_length2 xtables_addons_logmark xtables_addons_lscan xtables_addons_pknock xtables_addons_psd xtables_addons_quota2 xtables_addons_rawnat xtables_addons_steal xtables_addons_sysrq xtables_addons_tarpit xtables_addons_tee amd64 
        >>> Done builtin_infovars
        >>> Starting pkg_info
        >>> Done pkg_info
        >>> Completed ebuild phases initmisc infovars info
        >>> Running ebuild phase tidyup as paludisbuild:paludisbuild...
        >>> Starting builtin_tidyup
        rm -fr /var/tmp/paludis/app-benchmarks-i7z-0.27-r1-info
        >>> Done builtin_tidyup
        >>> Completed ebuild phase tidyup
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2012-03-12 12:27:27 UTC
(gdb) bt full
#0  Print_Information_Processor (nehalem=0x7fffffffbe48, sandy_bridge=0xffffbe4c) at ../helper_functions.c:434
        proc_info = {stepping = 7 '\a', model = 10 '\n', family = 6 '\006', processor_type = 0 '\000', extended_model = 2 '\002', 
          extended_family = 0}
        vendor_string = "GenuineIntel"
#1  0x00000000004059c3 in MyWidget::MyWidget (this=0x7fffffffc6b0, parent=<optimized out>) at i7z_GUI.cpp:464
        cpuNehalem = 0
        cpuSandybridge = 0
        i = <optimized out>
        layout1 = <optimized out>
        timer = <optimized out>
        processor_str = "\000\000\000\000\000\000\000\000\270鬪\252*\000\000\001\000\000\000\001\000\000\000\004\000\000\000\000\000\000\000\070\315@\000\000\000\000\000H\255Ҫ\252*\000\000p\311\377\377\377\177\000\000\242Ј\253\252*\000\000\000\000\000\000\000\000\000\000\320\316@\000\000\000\000\000p\311\377\377\377\177\000\000\360\272\377\377\377\177\000\000p\311\377\377"
#2  0x0000000000407c5b in main (argc=1, argv=0x7fffffffca78) at i7z_GUI.cpp:681
        hostname = "paul.ics.kfa-juelich.de\000\000P\240\254\252*\000\000\200\302\377\377\377\177\000\000\020\301|\253\252*\000\000\000\000\200\221\377\377\377\377\000\000\000\000\000\000\000\000@\301|\253\252*\000\000\066\201\253\252\252*\000\000\001\000\000\000\377\177\000\000\240\331q\254\252*\000\000\300\302\377\377\377\177\000\000\360\300|\253\252*\000\000\000\000\200\221\377\377\377\377\000\000\000\000\000\000\000\000\060\301|\253\252*\000\000\066\201\253\252\252*\000\000\001\000\000\000\377\177\000\000\320\324q\254\252*\000\000\000\303\377\377\377\177\000\000\320\300|\253\252*\000\000\000\000\200\221\377\377\377\377\000\000\000\000\000\000\000\000 \301|\253\252*\000\000\066\201\253\252\252*\000\000\001\000\000\000\377\177\000\000\000\320q\254\252*\000\000@\303\377\377\377\177\000\000@g9\000\000\000\000\000\300\070", '\000' <repeats 14 times>, "\020\301|\253\252*\000\000\066\201\253\252\252*\000\000\001\000\000\000\000\000\000\000\230\271#\254\252*\000\000\200\303\377\377\377\177", '\000' <repeats 26 times>"\360, \300|\253\252*"...
        app = {<QCoreApplication> = {<QObject> = {_vptr.QObject = 0x2aaaab7d4910, static staticMetaObject = {d = {superdata = 0x0, 
                  stringdata = 0x2aaaaba9ce60 "QObject", data = 0x2aaaaba9cf00, extradata = 0x2aaaabafae60}}, 
              static staticMetaObjectExtraData = {objects = 0x0, 
                static_metacall = 0x2aaaab9bea40 <QObject::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>}, d_ptr = {
                d = 0x40cd20}, static staticQtMetaObject = {d = {superdata = 0x0, stringdata = 0x2aaaabaa5400 "Qt", 
                  data = 0x2aaaabaa8d20, extradata = 0x0}}}, static staticMetaObject = {d = {superdata = 0x2aaaabafae40, 
                stringdata = 0x2aaaabaaef20 "QCoreApplication", data = 0x2aaaabaaefc0, extradata = 0x2aaaabafdaa0}}, 
            static staticMetaObjectExtraData = {objects = 0x0, 
              static_metacall = 0x2aaaaba0ab10 <QCoreApplication::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>}, 
            static self = 0x7fffffffc970}, static staticMetaObject = {d = {superdata = 0x2aaaabafda80, 
              stringdata = 0x2aaaab6269a0 "QApplication", data = 0x2aaaab626be0, extradata = 0x2aaaab7d49c0}}, 
          static staticMetaObjectExtraData = {objects = 0x0, 
            static_metacall = 0x2aaaaaea2340 <QApplication::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>}}
        str_display = "i7z @ paul.ics.kfa-juelich.de\000\000\000`\276\377\377\377\177\000\000\a\300 \b\200\240\000\242@\030\201\004E\207\005\064\000\000\000\000\000\000\000\000\300e\257\253\252*\000\000\066\201\253\252\252*\000\000\001\000\000\000\204\fY\020(\306\"\255\252*\000\000\240\276\377\377\377\177\000\000\001\000\242\001 \t\024E ա\b\273o\220\"\000\000\000\000\000\000\000\000\260e\257\253\252*\000\000\066\201\253\252\252*\000\000(\306\"\255\252*\000\000\000\313\"\255\252*\000\000\230\271#\254\252*\000\000\030\060\260\253\252*\000\000\320\324q\254\252*\000\000\000\240k\255\252*\000\000\000\065\260\253\252*\000\000\000\300\"\255\252*\000\000\350\071\260\253\252*\000\000\000\260#\254\252*\000\000\230\331̪\252*", '\000' <repeats 26 times>, "x\340̪\252*\000\000\000\302|\253\252*\000\000\000\000\200\221\377\377\377\377`欪\252*\000\000\023\000\000\000\000\000\000\000\177\235Ҫ\252*\000\000@\304\377\377\377\177\000\000\000\000\240"...
        i7z_widget = {<QWidget> = {<QObject> = {_vptr.QObject = 0x408e30, static staticMetaObject = {d = {superdata = 0x0, 
                  stringdata = 0x2aaaaba9ce60 "QObject", data = 0x2aaaaba9cf00, extradata = 0x2aaaabafae60}}, 
              static staticMetaObjectExtraData = {objects = 0x0, 
                static_metacall = 0x2aaaab9bea40 <QObject::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>}, d_ptr = {
                d = 0x468140}, static staticQtMetaObject = {d = {superdata = 0x0, stringdata = 0x2aaaabaa5400 "Qt", 
                  data = 0x2aaaabaa8d20, extradata = 0x0}}}, <QPaintDevice> = {_vptr.QPaintDevice = 0x408ff0, painters = 0}, 
            static staticMetaObject = {d = {superdata = 0x2aaaabafae40, stringdata = 0x2aaaab629e80 "QWidget", data = 0x2aaaab62a400, 
                extradata = 0x2aaaab7d6960}}, static staticMetaObjectExtraData = {objects = 0x0, 
              static_metacall = 0x2aaaaaef5170 <QWidget::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>}, 
            data = 0x468288}, static staticMetaObject = {d = {superdata = 0x40bf20, stringdata = 0x408b30 "MyWidget", data = 0x408ce0, 
              extradata = 0x408b20}}, static staticMetaObjectExtraData = {objects = 0x0, 
            static_metacall = 0x407ac0 <MyWidget::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>}, C0_l = {0x2aaaab8997ac, 
            0x2aaaae147b18, 0x7fffffffc837, 0x7fffffffc838, 0x2aaaaaab4744, 0x7fffffffc837, 0x2, 0x25, 0x2aaaae147768, 0x4122e989, 
            0x2aaaaaab501e, 0x2aaaaba2657a}, C1_l = {0x2aaa00000009, 0x7fffffffc8f0, 0x1048ba6, 0x2aaaab85c82c, 0x2aaaab818200, 
            0x2aaaabaf7540, 0x2aaaab821998, 0x100000000, 0x2aaaaaab4824, 0x0, 0x6, 0x25}, C3_l = {0x2aaaae147768, 0xf63d4e2e, 
            0x2aaaaaab501e, 0x100000000, 0x10000002e, 0x7fffffffc970, 0x3d8f538, 0x2aaaac23fa9c, 0x2aaaac23fc90, 0x0, 0x2aaaac24bd38, 
            0x2aaaaaace660}, C6_l = {0x2aaaaaab5303, 0x0, 0x2aaaae1478c0, 0x2aaaac23b000, 0x400ee9, 0x2aaaac24c8f0, 0x400258, 
            0x100000000, 0x100000807, 0x2aaaac5d81c0, 0x2aaaaacce608, 0x7fffffffc9b0}, C0 = 0xf63d4e2e, C1 = 0x2aaaae1478c0, 
          C3 = 0x7fffffffc9d8, C6 = 0x2aaaaacce2b0, Freq_ = {0x2aaaaaab5303, 0x0, 0x2aaaae1478c0, 0x1, 0x0, 0x1, 0x2aaaaacce2b0, 
            0x2aaaabaf75c0, 0x4, 0x40cc40, 0x1, 0x2}, StatusMessage0 = 0x2aaaab6cf420, StatusMessage1 = 0x0, Curr_Freq0 = 0x2aaaaacce608, 
          Curr_Freq1 = 0x100000028, ProcNames = {0x2aaaab8b6501, 0x2aaaab6cf3a0, 0x400ee9, 0x3, 0x2aaaab8b696c, 0x7fffffffc9a8, 0x40cbf1, 
            0x2aaaab6cf340, 0x407d20, 0x0, 0x402dab, 0x2aaaac24bd38}, mythread = 0x407d50, curr_numCPUs = 2}
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2012-03-13 12:46:18 UTC
Could you please retest. I backported an upstream change, which fixed it for me.


+  13 Mar 2012; Justin Lecher <jlec@gentoo.org> i7z-0.27-r1.ebuild:
+  backport upstream addition to CXXFLAGS, #407881
+
Comment 5 Franz Trischberger 2012-03-13 13:56:33 UTC
Confirm the fix makes i7z_GUI usable (does not crash anymore).
But while looking into the GUI-Code, I found one possible problem: MyThread-Members are set in run() (so in another Thread then the GUI-Thread (mainthread)), and read from the GUI-thread in UpdateWidget - all without locking. So if i7z_GUI starts behaving strange, this could be one possible source. I first thought this would have caused the issues, that are now solved.
Comment 6 Justin Lecher (RETIRED) gentoo-dev 2012-03-13 16:03:43 UTC
Maybe I just added an work around. Please post you findings to the upstream bug.
Comment 7 Agostino Sarubbo gentoo-dev 2012-03-24 11:32:26 UTC
Created attachment 306521 [details]
bt
Comment 8 upendra 2013-03-27 18:54:08 UTC
Hi,

Sorry to open the old bug. I am not sure whether I should open another bug report.  I am facing the issue with i7z_GUI.

i7z_GUI 
i7z DEBUG: i7z version: svn-r77-(20-Nov-2011)
i7z DEBUG: Found Intel Processor
i7z DEBUG:    Stepping 5
i7z DEBUG:    Model e
i7z DEBUG:    Family 6
i7z DEBUG:    Processor Type 0
i7z DEBUG:    Extended Model 1
i7z DEBUG: msr = Model Specific Register
i7z DEBUG: Detected a nehalem (i7/i5/Xeon) - 45nm
Segmentation fault

emerge --info
Portage 2.1.11.55 (default/linux/amd64/13.0, gcc-4.5.4, glibc-2.15-r3, 3.7.9-gentoo x86_64)
=================================================================
System uname: Linux-3.7.9-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_860_@_2.80GHz-with-gentoo-2.1
KiB Mem:     3975016 total,    808084 free
KiB Swap:     987960 total,      6008 free
Timestamp of tree: Wed, 27 Mar 2013 13:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.5.4-r5, 2.7.3-r3, 3.1.5, 3.2.3-r2
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          9999
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.4.7, 4.5.4, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo lxde portage-backup cj-overlay bleeding-edge sunrise mozilla bgo-overlay local
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-2.2/conf /usr/share/maven-bin-3.0/conf /var/lib/hsqldb /var/spool/munin-async/.ssh"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-O3 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.mcs.anl.gov/pub/gentoo/ rsync://mirror.mcs.anl.gov/gentoo/ ftp://mirror.mcs.anl.gov/pub/gentoo/ ftp://gentoo.mirrors.tds.net/gentoo rsync://gentoo.mirrors.tds.net/gentoo http://gentoo.mirrors.tds.net/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=50"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/nfs1/var/tmp/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/lxde /var/lib/layman/portage-backup /var/lib/layman/cj-overlay /var/lib/layman/bleeding-edge /var/lib/layman/sunrise /var/lib/layman/mozilla /var/lib/layman/bgo-overlay /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 aspell berkdb bzip2 cli consolekit cracklib crypt cxx dbus dri gdbm gpm gstreamer gtk hal iconv ipv6 jpeg ldap mmx modules mudflap multilib ncurses nls nptl nptlonly nsplugin openmp pam pcre readline session sse sse2 ssl svg tcpd unicode zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias cgi cgid" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
Comment 9 upendra 2013-03-27 19:27:53 UTC
Sorry for the noise.

I resolved it using: CFLAGS="-O0 -march=native -pipe" CXXFLAGS="${CFLAGS}" emerge i7z

Thanks!