After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 594347 - Crash in gdk.color_from_hsv
Crash in gdk.color_from_hsv
Status: RESOLVED FIXED
Product: pygtk
Classification: Bindings
Component: gdk
2.16.x
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2009-09-07 06:17 UTC by Arun Raghavan
Modified: 2009-10-31 21:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Backtrace of the crash (9.05 KB, text/plain)
2009-09-07 06:17 UTC, Arun Raghavan
  Details
Patch to fix the crash (852 bytes, patch)
2009-09-07 06:20 UTC, Arun Raghavan
none Details | Review

Description Arun Raghavan 2009-09-07 06:17:39 UTC
Created attachment 142613 [details]
Backtrace of the crash

This is bug was reported from Gentoo bug at
https://bugs.gentoo.org/show_bug.cgi?id=283093.

Quick summary: gdk.color_from_hsv segfaults (can be tested using python -c
'import gtk; gtk.gdk.color_from_hsv(0.0, 1.0, 1.0)').

Debugging showed that it was passed a bad kwargs argument (invalid memory in my
case). Attaching a backtrace, patch coming soon.
Comment 1 Arun Raghavan 2009-09-07 06:20:08 UTC
Created attachment 142614 [details] [review]
Patch to fix the crash

Attaching a fix for the crash. The patch adds a 'kwargs' property to the define for gdk.color_from_hsv in gdkcolor.override.
Comment 2 Paul Pogonyshev 2009-10-31 21:00:39 UTC
Thanks for the fix, applied it.