<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>208</bug_id>
          
          <creation_ts>2010-08-13 07:22:46 +0000</creation_ts>
          <short_desc>[matchbox] X window fails to start up with matchbox-panel/desktop segfault</short_desc>
          <delta_ts>2010-12-21 06:07:19 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>0.9</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>0.9 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jiajun Xu">jiajun.xu</reporter>
          <assigned_to name="Nitin Kamble">nitin.a.kamble</assigned_to>
          <cc>edwin.zhai</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>susie.li</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          <cf_verified>Program Management</cf_verified>
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>9298</commentid>
    <comment_count>0</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2010-08-13 07:22:46 +0000</bug_when>
    <thetext>Testing Env:    
Hardware: All
Images from weekly build (20100812) on autobuilder,
http://autobuilder.pokylinux.org/nightly/20100812-1.
poky commit info: 69ac39b90eec55831a9b601913a089838307b200 from poky master
tree

With latest weekly build, X window fails to start up with matchbox-panel/desktop segfault.

########
EXT3-fs (hda): warning: updating to rev 1 because of new feature flag, running e2fsck is recommended
EXT3-fs (hda): using internal journal
matchbox-panel[2479]: segfault at bf594ffc ip b6f30fd7 sp bf595000 error 6 in libstdc++.so.6.0.14[b6edc000+dd000]
matchbox-deskto[2478]: segfault at bf091ff0 ip b7009fd4 sp bf091ff0 error 6 in libstdc++.so.6.0.14[b6fb5000+dd000]
nm-applet[2416]: segfault at 0 ip b72b5849 sp bfc0fe30 error 4 in libglib-2.0.so.0.2400.1[b7290000+c1000]
########</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9308</commentid>
    <comment_count>1</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2010-08-16 19:54:51 +0000</bug_when>
    <thetext>Some update, I met the issue only with x86 image(qemux86, netbook, e-Menlow).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9310</commentid>
    <comment_count>2</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2010-08-16 20:07:56 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Some update, I met the issue only with x86 image(qemux86, netbook, e-Menlow).

Jiajun,
Do you mean qemuarm is okay?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9311</commentid>
    <comment_count>3</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2010-08-16 20:10:47 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; (In reply to comment #1)
&gt; &gt; Some update, I met the issue only with x86 image(qemux86, netbook, e-Menlow).
&gt; Jiajun,
&gt; Do you mean qemuarm is okay?

Sorry, I make confusion here. qemuarm cannot boot up because of bug 212. Only qemumips can boot up with X window.(qemuppc has no graphics enabled.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9313</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2010-08-17 02:38:07 +0000</bug_when>
    <thetext>I can confirm this is happening with recent builds from master too. Whats odd is that matchbox-desktop doesn&apos;t use C++ and shouldn&apos;t be linking to libstdc++...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9314</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2010-08-17 03:23:40 +0000</bug_when>
    <thetext>I did a quick check on the image and somehow, libstdc++ is being pulled in for gtk+ and others. We should not need libstdc++ for the graphics stack.

Grepping the target sysroot&apos;s .la files I see the following including libstdc++:
libavahi-ui.la
libdataserverui-12.la
libfm-gtk.la
libgcr.la
libglade-2.0.la
libowl.la
libpangocairo-1.0.la
librsvg-2.la
libvte.la

At a guess gtk+ is getting this from pangocairo which is getting it from rsvg? Regardless, we need to track down where this is coming from and fix it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9315</commentid>
    <comment_count>6</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2010-08-17 03:40:44 +0000</bug_when>
    <thetext>Its not rsvg, smoking gun seems to point at pango. I&apos;ll leave this here for now but we need to figure out why pango is pulling in libstdc++...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9319</commentid>
    <comment_count>7</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2010-08-17 10:11:22 +0000</bug_when>
    <thetext>Thanks to Edwin for providing this information:

Nitin,
After long time of fighting, I could finally reproduce this bug.  
Actually, the X server can start, and even some X apps like matchbox-terminal can works. The issues comes from other applications like contacts, tasks, which lead a segmentation fault in libstdc++.so.6. 
So the matchbox fail in initialization when trying load these applications.

I traced the segmentation fault, and found it comes from math_stubs_float.cc (@build/tmp/work/i586-poky-linux/gcc-runtime-4.5.0-r4/gcc-4.5.0/libstdc++-v3/src).

#ifndef _GLIBCXX_HAVE_FLOORF
  float
  floorf(float x)
  {
    return (float) floor(x);                 &lt;&lt;&lt;======== This cause 
segmentation fault
  }
#endif

floor seems come from compatibility.cc
#ifdef _GLIBCXX_HAVE_FLOORL
_GLIBCXX_MATHL_WRAPPER1 (floor, GLIBCXX_3.4.3); #endif

I suspect some compatibility issue here to lead segmentation fault. Do you have any clues for it, regarding your update of gcc? Maybe you can continue my work, so we can fight in a 7x24 style to fix this high priority bug:)

Thanks,
edwin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9320</commentid>
    <comment_count>8</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2010-08-17 10:12:31 +0000</bug_when>
    <thetext>Thanks to Richard for providing this information:

Just to follow up and keep email in sync with jabber, I&apos;ve seen this problem before. If you look at the gcc-runtime build in a recent poky build in the file gcc*/build*/libstdc++/config.log, you will see &quot;unrecognised option &apos;-nostdlib++&quot;.

We patch gcc to add in this option with this patch in the 4.3.3 case:

http://git.pokylinux.org/cgit.cgi/poky/commit/?id=bb3e4dda5d85402fadcecc97589ea4e452c36c98

So I&apos;m guessing its missing from 4.5.0 and if we add it, it will fix things.

Cheers,

Richard</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9323</commentid>
    <comment_count>9</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2010-08-17 14:55:54 +0000</bug_when>
    <thetext>http://git.pokylinux.org/cgit.cgi/poky/commit/?id=94f63fa5642f70d993efa0428f46851a2cddc213
This commit fixes this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9326</commentid>
    <comment_count>10</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2010-08-17 23:54:47 +0000</bug_when>
    <thetext>Have tested it. The bug fixed @ Nitin&apos;s changeset when build from scratch.
BTW, if only re-compile gcc-run and use new libstdc++.so, can&apos;t help. I doubt need re-compile some intermediate lib.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9330</commentid>
    <comment_count>11</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2010-08-18 09:56:21 +0000</bug_when>
    <thetext>That is Right, this needs build from scratch. Just upgrading gcc does not change packages which are already built with previous gcc. 

Thanks,
Nitin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9352</commentid>
    <comment_count>12</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2010-08-23 22:40:59 +0000</bug_when>
    <thetext>The issue with libstdc++ is fixed. Verified with 20100818 image.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>