kazam crashed with SIGSEGV in INT_cairo_region_reference()

Bug #1298883 reported by Евгений
154
This bug affects 33 people
Affects Status Importance Assigned to Milestone
Kazam Screencaster
Fix Released
Undecided
David Klasinc
kazam (Ubuntu)
Fix Released
High
David Klasinc
Trusty
Fix Released
High
Unassigned

Bug Description

[Impact]

 * All users, when taking a screenshot of an area of the screen, have the program crash.

[Test Case]

 * Select "Screenshot" and then "Area" Select an area of the screen, press enter, and then press capture.

 * With the version of kazam in trusty, the program will crash.

 * With the version in trusty-proposed, the screenshot will be taken and you will be asked to select a location to save it.

[Regression Potential]

 * There is little potential for regression. The only code that is touched is the code that draws the window outline for the selected area. This feature is already not usable in trusty.

[Other Info]

Upstream commit: https://bazaar.launchpad.net/~kazam-team/kazam/stable/revision/139

----------------------------

Kazam crashes when taking a screenshot / Kazam in Ubuntu 14.04 crashes as soon as the countdown is finished if you've selected the 'area' option.

ProblemType: Crash
DistroRelease: Ubuntu 14.04
Package: kazam 1.4.4-1
ProcVersionSignature: Ubuntu 3.13.0-19.40-generic 3.13.6
Uname: Linux 3.13.0-19-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.13.3-0ubuntu1
Architecture: amd64
CurrentDesktop: KDE
Date: Fri Mar 28 16:26:56 2014
ExecutablePath: /usr/bin/kazam
InstallationDate: Installed on 2014-03-27 (0 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20140319)
InterpreterPath: /usr/bin/python3.4
PackageArchitecture: all
ProcCmdline: /usr/bin/python3 /usr/bin/kazam
ProcEnviron:
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=ru_RU.UTF-8
 SHELL=/bin/bash
SegvAnalysis:
 Segfault happened at: 0x7faf80c873d5 <cairo_region_reference+5>: mov (%rdi),%eax
 PC (0x7faf80c873d5) ok
 source "(%rdi)" (0x00000002) not located in a known VMA region (needed readable region)!
 destination "%eax" ok
SegvReason: reading NULL VMA
Signal: 11
SourcePackage: kazam
StacktraceTop:
 cairo_region_reference () from /usr/lib/x86_64-linux-gnu/libcairo.so.2
 ?? () from /usr/lib/python3/dist-packages/gi/_gi_cairo.cpython-34m-x86_64-linux-gnu.so
 ?? () from /usr/lib/python3/dist-packages/gi/_gi.cpython-34m-x86_64-linux-gnu.so
 ?? () from /usr/lib/python3/dist-packages/gi/_gi.cpython-34m-x86_64-linux-gnu.so
 PyObject_Call ()
Title: kazam crashed with SIGSEGV in cairo_region_reference()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

Revision history for this message
Евгений (savosin2015) wrote :
Revision history for this message
Евгений (savosin2015) wrote :

sorry, wrong description :D I'm just make screenshot by kazam :D sorry again))

description: updated
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 INT_cairo_region_reference (region=0x2) at /build/buildd/cairo-1.13.0~20140204/src/cairo-region.c:398
 ?? () from /tmp/apport_sandbox_zjTGaf/usr/lib/python3/dist-packages/gi/_gi_cairo.cpython-34m-x86_64-linux-gnu.so
 _pygi_marshal_to_py_interface_struct_cache_adapter (state=<optimized out>, callable_cache=<optimized out>, arg_cache=<optimized out>, arg=<optimized out>) at ../../gi/pygi-struct-marshal.c:410
 _invoke_marshal_out_args (cache=0x2b89370, state=0x7fff9ab25740) at ../../gi/pygi-invoke.c:621
 pygi_callable_info_invoke (info=<optimized out>, py_args=<optimized out>, kwargs=<optimized out>, cache=0x2b89370, user_data=<optimized out>) at ../../gi/pygi-invoke.c:734

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : StacktraceSource.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in kazam (Ubuntu):
importance: Undecided → Medium
summary: - kazam crashed with SIGSEGV in cairo_region_reference()
+ kazam crashed with SIGSEGV in INT_cairo_region_reference()
tags: removed: need-amd64-retrace
information type: Private → Public
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in kazam (Ubuntu):
status: New → Confirmed
Revision history for this message
Lrbabe (lrbabe) wrote :

This seems like #1241772 all over again.

Changed in kazam (Ubuntu):
importance: Medium → High
description: updated
Revision history for this message
David Klasinc (bigwhale) wrote :

Can you confirm that this happens when countdown is finished. Not when countdown starts?

Changed in kazam:
milestone: none → 1.5.0
Revision history for this message
Andy Young (andy-pcpki) wrote :

I confirm it is when the countdown starts,

Revision history for this message
Philipp Baumgart (pb-c) wrote :

I can also confirm that it crashes as soon as countdown starts. please fix

Revision history for this message
Philipp Baumgart (pb-c) wrote :

so is there any progress on this? will we ever see a fix for this bug?

Revision history for this message
dinamic (dinamic6661) wrote :

same here, but on 14.10, i've recorded the bug (with simple-screen-recorder LOL?) here http://www.youtube.com/watch?v=HJy488kjNlM&t=1m34s

Revision history for this message
Philipp Baumgart (pb-c) wrote :

@dinamic lol ymmd :D

As usual I dont think this will be fixed.

tags: added: utopic
Revision history for this message
Ramil Minnigaliev (thunderamur) wrote :

Confirmed when I tried to select area and pressed "Capture".
Crashed when countdown starts.
I have this bug with record video and screenshot.
Cause in select area to capture.

information type: Public → Public Security
information type: Public Security → Public
Revision history for this message
Alan (alanjas) wrote :

My log:

alan@alan-pc:~$ kazam
/usr/lib/python3/dist-packages/kazam/backend/gstreamer.py:40: PyGIDeprecationWarning: Since version 3.11, calling threads_init is no longer needed. See: https://wiki.gnome.org/PyGObject/Threading
  GObject.threads_init()
/usr/lib/python3/dist-packages/kazam/frontend/main_menu.py:59: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "name" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  self.action_group = Gtk.ActionGroup("kazam_actions")
/usr/lib/python3/dist-packages/kazam/frontend/indicator.py:68: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  self.menuitem_start = Gtk.MenuItem(_("Start recording"))
/usr/lib/python3/dist-packages/kazam/frontend/indicator.py:72: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  self.menuitem_pause = Gtk.CheckMenuItem(_("Pause recording"))
/usr/lib/python3/dist-packages/kazam/frontend/indicator.py:76: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  self.menuitem_finish = Gtk.MenuItem(_("Finish recording"))
/usr/lib/python3/dist-packages/kazam/frontend/indicator.py:82: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  self.menuitem_quit = Gtk.MenuItem(_("Quit"))
/usr/lib/python3/dist-packages/kazam/app.py:145: Warning: value "((GtkIconSize) 32)" of type 'GtkIconSize' is invalid or out of range for property 'icon-size' of type 'GtkIconSize'
  self.builder.add_from_file(os.path.join(prefs.datadir, "ui", "kazam.ui"))

(kazam:23948): Gtk-WARNING **: Can't set a parent on widget which has a parent

(kazam:23948): Gtk-WARNING **: Can't set a parent on widget which has a parent

Violación de segmento (`core' generado)

Revision history for this message
David Klasinc (bigwhale) wrote :

If someone can attach a debug log, I'd appreciate it. Run kazam with --debug option and attach the output.

Revision history for this message
Philipp Baumgart (pb-c) wrote :

debug log

Revision history for this message
David Klasinc (bigwhale) wrote :

Thanks. Fix was committed, I'll make a stable PPA release in a few hours. If anyone wants, they can try the unstable PPA, where this is already fixed.

Changed in kazam (Ubuntu):
status: Confirmed → Fix Committed
Changed in kazam:
status: New → Fix Committed
Revision history for this message
Philipp Baumgart (pb-c) wrote :

Thx for the fix david. But does that mean we can expect that fix in the standard repos of ubuntu, or just over a PPA?

Revision history for this message
David Klasinc (bigwhale) wrote :

There are some issues with Cairo and Ubuntu, so your best bet would be to install from stable PPA. It might pull some new dependencies with it, but nothing too much.

Revision history for this message
Andrea Lazzarotto (Lazza) (andrea-lazzarotto) wrote :

The fix from the stable PPA works perfectly. Thank you for your work!

Revision history for this message
Philipp Baumgart (pb-c) wrote :

okay, I installed it from stable ppa, and it realy works now. very good job! thank you!

another guy reported earlier that its bugged in ubuntu 14.10 as well (version 1.5). dont know if the cairo issues are present there, but maybe that needs a look into as well.

anyway, thank you again for the fix.

David Klasinc (bigwhale)
Changed in kazam:
status: Fix Committed → Fix Released
assignee: nobody → David Klasinc (bigwhale)
Changed in kazam (Ubuntu):
assignee: nobody → David Klasinc (bigwhale)
Changed in kazam (Ubuntu Trusty):
status: New → Triaged
importance: Undecided → High
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

Uploaded the fix to Debian unstable and trusty-proposed. I'll sync it into utopic once it is available.

description: updated
Changed in kazam (Ubuntu Trusty):
status: Triaged → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kazam - 1.4.5-1

---------------
kazam (1.4.5-1) unstable; urgency=medium

  * New upstream release.
   - Fix for segfault when using area selection (LP: #1298883).

 -- Andrew Starr-Bochicchio <email address hidden> Tue, 19 Aug 2014 20:04:09 -0400

Changed in kazam (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Евгений, or anyone else affected,

Accepted kazam into trusty-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/kazam/1.4.4-1ubuntu0.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in kazam (Ubuntu Trusty):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Philipp Baumgart (pb-c) wrote :

Tested package: 1.4.4-1ubuntu0.1
Rep: trusty-proposed

I have tested the package, and the bug is fixed in that as well.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Scott Kitterman (kitterman) wrote : Update Released

The verification of the Stable Release Update for kazam has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kazam - 1.4.4-1ubuntu0.1

---------------
kazam (1.4.4-1ubuntu0.1) trusty-proposed; urgency=medium

  * Backport upstream fix for segfault when using area
    selection (LP: #1298883).
 -- Andrew Starr-Bochicchio <email address hidden> Tue, 19 Aug 2014 20:27:23 -0400

Changed in kazam (Ubuntu Trusty):
status: Fix Committed → Fix Released
Revision history for this message
Shahar Or (mightyiam) wrote :

Thank you!

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.