Segmentation fault when creating a paste with a bogus app id

Bug #1655105 reported by William Hua on 2017-01-09
This bug affects 1 person
Affects Status Importance Assigned to Milestone
content-hub (Ubuntu)

Bug Description

Can be reproduced by running:

gdbus call --session --dest com.ubuntu.content.dbus.Service --object-path / --method com.ubuntu.content.dbus.Service.CreatePaste bogus_app bogus_surface '[]' '[]'

This is the backtrace:

#0 0x00007ffff636e7ef in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:58
#1 0x00007ffff63703ea in __GI_abort () at abort.c:89
#2 0x00007ffff69a856d in __gnu_cxx::__verbose_terminate_handler() () at /usr/lib/x86_64-linux-gnu/
#3 0x00007ffff69a6316 in () at /usr/lib/x86_64-linux-gnu/
#4 0x00007ffff69a6361 in () at /usr/lib/x86_64-linux-gnu/
#5 0x00007ffff69a6579 in () at /usr/lib/x86_64-linux-gnu/
#6 0x00007ffff73b3ae3 in ubuntu::app_launch::Application::create(ubuntu::app_launch::AppID const&, std::shared_ptr<ubuntu::app_launch::Registry> const&) () at /usr/lib/x86_64-linux-gnu/
#7 0x00007ffff7b9d5b0 in (anonymous namespace)::app_id_matches (pid=24093, id=..., this=<optimized out>)
    at ./src/com/ubuntu/content/utils.cpp:215
#8 0x00007ffff7b9d5b0 in com::ubuntu::content::detail::Service::CreatePaste(QString const&, QString const&, QByteArray const&, QStringList const&) (this=0x555555846e90, app_id=..., surfaceId=..., mimeData=..., types=...)
    at ./src/com/ubuntu/content/detail/service.cpp:331
#9 0x000055555556706d in ServiceAdaptor::CreatePaste(QString const&, QString const&, QByteArray const&, QStringList const&) (this=<optimized out>, app_id=..., surfaceId=..., mimeData=..., types=...)
    at ./build/src/com/ubuntu/content/service/serviceadaptor.cpp:51

Related branches

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package content-hub - 0.3+17.04.20170309-0ubuntu1

content-hub (0.3+17.04.20170309-0ubuntu1) zesty; urgency=medium

  [ Ken VanDine ]
  * Removed redundant section in debian/control and updated the
    standards version to 3.9.7

  [ William Hua ]
  * Prevent crash when creating a paste with a bogus app id (LP:

 -- Ken VanDine <email address hidden> Thu, 09 Mar 2017 02:40:01 +0000

Changed in content-hub (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers