<?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>853</bug_id>
          
          <creation_ts>2011-03-11 12:02:58 +0000</creation_ts>
          <short_desc>matchbox-panel segfaults, X becomes unusable</short_desc>
          <delta_ts>2011-03-17 20:09:34 +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>OE-Core</product>
          <component>graphics</component>
          <version>1.0</version>
          <rep_platform>Blacksand</rep_platform>
          <op_sys>x86</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>n450 solution comitted to meta-intel, pending info from Yu re atom-pc (16/Mar/2011)</status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>1.0 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Darren Hart">dvhart</reporter>
          <assigned_to name="Ke Yu">ke.yu</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>12510</commentid>
    <comment_count>0</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-03-11 12:02:58 +0000</bug_when>
    <thetext>Image: poky-image-sato-live
Media: USB Key
Build: Bernard (d16085b67b05e6c10f9e29381313e2b3370ca8ff)
Machine: meta-intel/meta-n450 (4bbfc4f08b0e906ba4182f0ad2baad77a5938db9)

The sato desktop loads as expected, but the USB keyboard and mouse don&apos;t respond to input. The console reports the following:

matchbox-panel[2107]: segfault at c ip 4f1d794d sp bf88d190 error 4 in libgdk-x]

Restarting the X-server from the console, results in another segfault with some more context:

root@n450:~# sudo /etc/init.d/xserver-nodm restart
Stopping XServer
[drm] Big FIFO is enabled
[drm] Big FIFO is enabled
[drm] Big FIFO is enabled
[drm] Big FIFO is disabled
[drm] Big FIFO is disabled
Starting Xserver

_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root

X.Org X Server 1.9.3
Release Date: 2010-12-13
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.35-22-server x86_64 
Current Operating System: Linux n450 2.6.34.7-yocto-standard #1 PREEMPT Fri Mar6
Kernel command line: initrd=initrd LABEL=boot usbcore.autosuspend=1 console=tty 
Build Date: 11 March 2011  10:14:58AM
 
Current version of pixman: 0.20.2
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: &quot;/var/log/Xorg.0.log&quot;, Time: Fri Mar 11 19:07:49 2011
(==) Using config file: &quot;/etc/X11/xorg.conf&quot;
FATAL: Module fbcon not found.
[drm:drm_edid_is_valid] *ERROR* Raw EDID:

[drm:drm_edid_is_valid] *ERROR* Raw EDID:

[drm:drm_edid_is_valid] *ERROR* Raw EDID:

[drm:drm_edid_is_valid] *ERROR* Raw EDID:

i915 0000:00:02.0: VGA-1: EDID invalid.
[drm:drm_edid_is_valid] *ERROR* Raw EDID:

[drm:drm_edid_is_valid] *ERROR* Raw EDID:

[drm:drm_edid_is_valid] *ERROR* Raw EDID:

[drm:drm_edid_is_valid] *ERROR* Raw EDID:

i915 0000:00:02.0: VGA-1: EDID invalid.
(EE) intel(0): failed to open /sys/class/backlight/acpi_video0/brightness for bd
(EE) intel(0): failed to open /sys/class/backlight/acpi_video0/brightness for bd
The XKEYBOARD keymap compiler (xkbcomp) reports:
&gt; Internal error:   Could not resolve keysym XF86TouchpadOn
&gt; Internal error:   Could not resolve keysym XF86TouchpadOff
Errors from xkbcomp are not fatal to the X server
D-BUS per-session daemon address is: unix:abstract=/tmp/dbus-Gq7ll2uEo1,guid=718
/etc/X11/Xsession: /etc/formfactor/config: line 33: fbset: not found
/etc/X11/Xsession: /etc/formfactor/config: line 37: fbset: not found
/etc/X11/Xsession: /etc/formfactor/config: line 41: fbset: not found
/etc/X11/Xsession.d/80matchboxkeyboard.shbg: /etc/formfactor/config: line 33: fd
/etc/matchbox/session: /etc/formfactor/config: line 33: fbset: not found
/etc/X11/Xsession.d/80matchboxkeyboard.shbg: /etc/formfactor/config: line 37: fd
/etc/matchbox/session: /etc/formfactor/config: line 37: fbset: not found
/etc/X11/Xsession.d/80matchboxkeyboard.shbg: /etc/formfactor/config: line 41: fd
/etc/matchbox/session: /etc/formfactor/config: line 41: fbset: not found
matchbox: Cant find a keycode for keysym 269025056
matchbox: ignoring key shortcut XF86Calendar=!$contacts

matchbox: Cant find a keycode for keysym 2809
matchbox: ignoring key shortcut telephone=!$dates

matchbox: Cant find a keycode for keysym 269025050
matchbox: ignoring key shortcut XF86Start=!matchbox-remote -desktop

[settings daemon] Forking. run with -n to prevent fork

** (matchbox-panel:2232): WARNING **: Couldnt initialize ACPI battery

matchbox-panel[2232]: segfault at c ip 4f1d794d sp bfa8fbf0 error 4 in libgdk-x]
root@n450:~# 
** (matchbox-desktop:2231): WARNING **: Error loading icon: Icon &apos;system-file-me

** (matchbox-desktop:2231): WARNING **: Error loading icon: Icon &apos;preferences-de

** (matchbox-desktop:2231): WARNING **: Error loading icon: Icon &apos;computer&apos; note</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12520</commentid>
    <comment_count>1</comment_count>
    <who name="Ke Yu">ke.yu</who>
    <bug_when>2011-03-12 03:00:43 +0000</bug_when>
    <thetext>Hi Darren,

 the log  &quot;_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root&quot;,  shows it may be caused by the rootless X. so could you try to start the x by root? you can do it by removing the /etc/X11/Xusername in target, so that X will start with default user, i.e. root</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12521</commentid>
    <comment_count>2</comment_count>
    <who name="Ke Yu">ke.yu</who>
    <bug_when>2011-03-12 03:10:41 +0000</bug_when>
    <thetext>Also for the the log &quot;
 The XKEYBOARD keymap compiler (xkbcomp) reports:
&gt; Internal error:   Could not resolve keysym XF86TouchpadOn
&gt; Internal error:   Could not resolve keysym XF86TouchpadOff
&quot;

according to the similar bug report in Ubuntu (http://www.mail-archive.com/ubuntu-bugs@lists.ubuntu.com/msg2779127.html), this issue has been fixed in xserver-xorg-input-synaptics in 1.4.0, so i work out a patch to upgrade the xf86-input-synaptics from 1.3.0 to 1.4.0:
http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/commit/?h=kyu3/xf86-input-synaptics-1.4.0&amp;id=743aecf15742c3add2a554e9b55bf89ec3a6fc9e
could you also have a try to see if it works?

I don&apos;t have a n450 H/W on hand, so really thanks if you can try in your n450 platform</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12543</commentid>
    <comment_count>3</comment_count>
    <who name="Ke Yu">ke.yu</who>
    <bug_when>2011-03-13 20:25:01 +0000</bug_when>
    <thetext>I can reproduce it in a borrowed netbook, so I will continue debugging it in real H/W</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12555</commentid>
    <comment_count>4</comment_count>
    <who name="Ke Yu">ke.yu</who>
    <bug_when>2011-03-14 00:31:38 +0000</bug_when>
    <thetext>I tried both approaches (disable rootless X, upgrade xserver-xorg-input-synaptics), neither works. so it must be something else wrong</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12639</commentid>
    <comment_count>5</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-03-15 10:17:43 +0000</bug_when>
    <thetext>Trying Tom&apos;s solution to Bug 738 to see if that works here as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12657</commentid>
    <comment_count>6</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-03-15 17:24:10 +0000</bug_when>
    <thetext>The fix to Bug 738 doesn&apos;t work here. However, after fixing Bug 869, I no longer see matchbox-panel segfault. I&apos;d like to understand root cause, and it still seems to repro on Ke&apos;s netbook.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12683</commentid>
    <comment_count>7</comment_count>
    <who name="Ke Yu">ke.yu</who>
    <bug_when>2011-03-16 01:09:58 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; The fix to Bug 738 doesn&apos;t work here. However, after fixing Bug 869, I no
&gt; longer see matchbox-panel segfault. I&apos;d like to understand root cause, and it
&gt; still seems to repro on Ke&apos;s netbook.

Yes, i can still see the segfault after bug 869&apos;s fix. It should be another issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12684</commentid>
    <comment_count>8</comment_count>
    <who name="Ke Yu">ke.yu</who>
    <bug_when>2011-03-16 01:39:30 +0000</bug_when>
    <thetext>I believe this is the same issue with bug 224.

If I append the following line to gtk+_2.22.1.bb:
FULL_OPTIMIZATION_n450 = &quot;-fexpensive-optimizations -frename-registers -O2 -ggdb -feliminate-unused-debug-types&quot;

and recompile gtk+, then this issue will be gone.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12690</commentid>
    <comment_count>9</comment_count>
    <who name="Ke Yu">ke.yu</who>
    <bug_when>2011-03-16 02:30:59 +0000</bug_when>
    <thetext>Since I don&apos;t have BlackSand box in hand, I will ask QA team&apos;s help to see if they can reproduce this issue and also if the FULL_OPTIMIZATION_n450 change can fix this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12709</commentid>
    <comment_count>10</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-03-16 14:33:04 +0000</bug_when>
    <thetext>I&apos;ve tested two solutions. One applying FULL_OPTIMIZATION just to the n450 gtk+ recipe. The other apply the same change to the tune-atom.conf which should apply to all recipes and all machines derived from atom.conf. They work on the n450 and the netbook (Toshiba NB305). I prefer the global fix, but understand it may be more invasive than we want for 1.0. Sending both the list for review and risk assessment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12710</commentid>
    <comment_count>11</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-03-16 15:41:55 +0000</bug_when>
    <thetext>Fixed in meta-intel bernard:

http://git.pokylinux.org/cgit.cgi/meta-intel/commit/?h=bernard&amp;id=0f633ae9cad8ce759dfa965e2b9aa1fce6c4adb7

And meta-intel master:

http://git.pokylinux.org/cgit.cgi/meta-intel/commit/?id=01ded1de3b7034f55e7b695b83ab127df96c157b

Yu, can you check to see if you are seeing matchbox-panel still segv on atom-pc, the FULL_OPTIMIZATION_atom-pc is set properly in the core gtk+ recipe. If you see it segv on atom-pc, can you open another bug as this one was specific to the n450 and is now fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12720</commentid>
    <comment_count>12</comment_count>
    <who name="Ke Yu">ke.yu</who>
    <bug_when>2011-03-16 18:32:13 +0000</bug_when>
    <thetext>(In reply to comment #11)
&gt; Fixed in meta-intel bernard:
&gt; 
&gt; http://git.pokylinux.org/cgit.cgi/meta-intel/commit/?h=bernard&amp;id=0f633ae9cad8ce759dfa965e2b9aa1fce6c4adb7
&gt; 
&gt; And meta-intel master:
&gt; 
&gt; http://git.pokylinux.org/cgit.cgi/meta-intel/commit/?id=01ded1de3b7034f55e7b695b83ab127df96c157b
&gt; 
&gt; Yu, can you check to see if you are seeing matchbox-panel still segv on
&gt; atom-pc, the FULL_OPTIMIZATION_atom-pc is set properly in the core gtk+ recipe.
&gt; If you see it segv on atom-pc, can you open another bug as this one was
&gt; specific to the n450 and is now fixed.

I think your patch fix this issue. I don&apos;t observe the segv in atom-pc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12721</commentid>
    <comment_count>13</comment_count>
    <who name="Ke Yu">ke.yu</who>
    <bug_when>2011-03-16 18:32:49 +0000</bug_when>
    <thetext>Fixed by http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=35260008f4094100ba337776a2ba5a2cece0d2c7</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12787</commentid>
    <comment_count>14</comment_count>
    <who name="Ke Yu">ke.yu</who>
    <bug_when>2011-03-17 20:09:34 +0000</bug_when>
    <thetext>verify it. this issue is fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>