[Bug 1015292] Re: X11 crashes with seg fault when running QT5 based applications on a Pandaboard with the SGX driver

Ricardo Salveti rsalveti at rsalveti.net
Thu Aug 23 10:45:29 UTC 2012


I also pushed the modified xf86-video-omap at
https://launchpad.net/~rsalveti/+archive/ppa/+packages?field.name_filter=&field.status_filter=published&field.series_filter=quantal

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1015292

Title:
  X11 crashes with seg fault when running QT5 based applications on a
  Pandaboard with the SGX driver

Status in Ubuntu OMAP4 graphics addons:
  New
Status in “pvr-omap4” package in Ubuntu:
  Invalid
Status in “xf86-video-omap” package in Ubuntu:
  In Progress
Status in “xorg-server” package in Ubuntu:
  Fix Released
Status in “pvr-omap4” source package in Precise:
  New
Status in “xf86-video-omap” source package in Precise:
  Invalid
Status in “xorg-server” source package in Precise:
  In Progress
Status in “pvr-omap4” source package in Quantal:
  Invalid
Status in “xf86-video-omap” source package in Quantal:
  In Progress
Status in “xorg-server” source package in Quantal:
  Fix Released

Bug description:
  [Impact]
  Segmentation fault at X11 where the randr code could use the randr screen private data without checking for null first. This happens when the X server is running with multiple screens, some of which are randr enabled and some of which are not. Applications making protocol requests to the non-randr screens can cause segfaults where the server touches the unset private structure.

  This happened initially while running Precise on a Pandaboard, as with
  the driver auto-load, it starts 2 different screens, one backed up by
  the PVR SGX driver, and the other by fbdev. In this case, the issue
  can easily be reproduced by running any QT5 based application, as by
  default it'll try to initialize the internal structures for all
  screens available at the system.

  The bug can also happen on cases where the user is running one screen
  with the nvidia/ati driver, and the other with fbdev (external usb
  video device, for example).

  [Test Case]
  How to reproduce the issue, on a Pandaboard:
  1) Install Precise at a Pandaboard;
  2) Enable the PVR SGX driver from the "Additional Driver" screen;
  1) Enable https://launchpad.net/~canonical-qt5-edgers/+archive/qt5-daily
  2) Install 'snowshoe-mobile' package
  3) Run snowshoe: $ PATH=/opt/qt5/bin:$PATH; snowshoe

  Broken Behavior: X11 will exit with a seg fault
  Fixed Behavior: The QT5 based application (snowshoe) will open without crashing X11.

  [Regression Potential]
  Both patches are already applied at upstream, and they are simply just checking the pointers for NULL results, which would already cause a seg fault in case of NULL value, so it's safe to be applied as SRU.

  [Original Report]

  While testing Qt 5 support on Ubuntu, and validating the support for
  OpenGL ES2.0 with Pandaboard, I couldn't start Snowshoe (Qt 5 - webkit
  based browser) as it gives a segmentation fault and also breaks the
  X11 server (with the pvr driver).

  After a quick check with Snowball (Mali 400), it worked properly and
  as expected, so this could probably be related with the current SGX
  driver available for Pandaboard.

  How to reproduce the issue:
  1) Enable https://launchpad.net/~canonical-qt5-edgers/+archive/qt5-daily
  2) Install 'snowshoe-mobile' package
  3) Run snowshoe: $ PATH=/opt/qt5/bin:$PATH; snowshoe

  This is with Ubuntu 12.04 with pvr-omap4 1.7.10.0.1.21-0ubuntu1 (from
  archive) and also 1.7.15.0.1.57-1 from TI's PPA.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-omap4-extras-graphics/+bug/1015292/+subscriptions



More information about the Ubuntu-sponsors mailing list