Crash in upstart_app_launch_start_application in g_strjoinv

Bug #1240616 reported by Gerry Boland
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity-mir
New
High
Gerry Boland

Bug Description

Steps to repro:
1. Have shell running
2. On device as phablet user, run "gallery-app --desktop_file_hint=/usr/share/applications/gallery-app.desktop" Let app appear on screen
3. left edge swipe to return to dash
4. Hit Ctrl+C to stop gallery-app
5. Tap the GalleryApp running tile to restore the app

Expected result
Gallery app relaunched, and appears on screen eventually

Actual result
Crash

Backtrace:
#0 strlen () at ../ports/sysdeps/arm/strlen.S:28
#1 0x41ebbd12 in g_strjoinv () from /lib/arm-linux-gnueabihf/libglib-2.0.so.0
#2 0x420cfc8e in upstart_app_launch_start_application () from /usr/lib/arm-linux-gnueabihf/libupstart-app-launch.so.1
#3 0x4363bf1e in startApplication () from /usr/lib/arm-linux-gnueabihf/qt5/imports/Unity-Mir/Unity/Application/libunityapplicationplugin.so.1.0.0

Gerry Boland (gerboland)
Changed in unity-mir:
assignee: nobody → Gerry Boland (gerboland)
importance: Undecided → High
Revision history for this message
Gerry Boland (gerboland) wrote :

Appears if shell passes an empty argument string to unity-mir, libupstart-app-launch chokes on it. Checking if

QString("").toLatin1().data()

actually is a valid char* string. Or else g_strjoinv is unforgiving for empty strings, and unity-mir will need to strip them from the arguments list.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.