| Summary: | [matchbox] X window fails to start up with matchbox-panel/desktop segfault | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] Meta-yocto | Reporter: | Jiajun Xu <jiajun.xu> |
| Component: | meta-yocto | Assignee: | Nitin Kamble <nitin.a.kamble> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | critical | ||
| Priority: | High | CC: | edwin.zhai, kevin.tian, poky.bs.watcher, poky.watcher, richard.purdie, sgw, susie.li |
| Version: | 0.9 | ||
| Target Milestone: | 0.9 M3 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Program Management | Documentation change: | --- |
|
Description
Jiajun Xu
2010-08-13 07:22:46 UTC
Some update, I met the issue only with x86 image(qemux86, netbook, e-Menlow). (In reply to comment #1) > Some update, I met the issue only with x86 image(qemux86, netbook, e-Menlow). Jiajun, Do you mean qemuarm is okay? (In reply to comment #2) > (In reply to comment #1) > > Some update, I met the issue only with x86 image(qemux86, netbook, e-Menlow). > Jiajun, > 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.) I can confirm this is happening with recent builds from master too. Whats odd is that matchbox-desktop doesn't use C++ and shouldn't be linking to libstdc++... 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'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. Its not rsvg, smoking gun seems to point at pango. I'll leave this here for now but we need to figure out why pango is pulling in libstdc++... 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); <<<======== 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
Thanks to Richard for providing this information: Just to follow up and keep email in sync with jabber, I'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 "unrecognised option '-nostdlib++". 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'm guessing its missing from 4.5.0 and if we add it, it will fix things. Cheers, Richard http://git.pokylinux.org/cgit.cgi/poky/commit/?id=94f63fa5642f70d993efa0428f46851a2cddc213 This commit fixes this bug. Have tested it. The bug fixed @ Nitin's changeset when build from scratch. BTW, if only re-compile gcc-run and use new libstdc++.so, can't help. I doubt need re-compile some intermediate lib. That is Right, this needs build from scratch. Just upgrading gcc does not change packages which are already built with previous gcc. Thanks, Nitin The issue with libstdc++ is fixed. Verified with 20100818 image. |