GNOME Bugzilla – Bug 780316
Simple scaling make dia crash (python plug-in)
Last modified: 2019-03-20 12:11:43 UTC
While manipulating Dia, we found a bug when trying to apply a simple scaling on objects. We discovered that the simple scaling some objects make it crash and we get the following error: line 24: 6670 Segmentation fault "$DIA_APP_PATH/dia" "$@" This happens when choosing objects from the list below the toolbox. It repeats systematically. Steps to reproduce: - Create any object - Apply the simple scaling on this object Note: The same error appears when trying to apply a simple rotation. This happens both when compiling the sources and downloading the binaries ( Here are some details. For the precompiled version: cat /etc/debian-version stretch/sid dia --version Dia version 0.97+git, compilé à 17:31:00 le Dec 6 2016 For the source code version, we downloaded the code from the repository git rev-parse HEAD 761c2a7aeb61eb5f79b87ae13a8bfd86167cb061 For the record, we are a group of students and we need to find/correct a bug in order to validate a class. Thus we are interested in any hints that would help us correct this issue. Thanks in advance. --
We investigated a bit and found the following call stack: element_move_handle (/lib/element.c) box_move_handle (/objects/flowchart/box.c) PyDiaObject_MoveHandle (/plug-ins/python/pydia-object.c) The PyDiaObject_MoveHandle function tries to call a free function: l.236: change->free(change); But this attribute seems to be NULL as the box_move_handle function returns the result of element_change_new (defined in /lib/element.c). This last function explicitly set the free attribute to NULL: l. 506: ec->object_change.free = NULL; --
Created attachment 350421 [details] [review] A patch that tries to fix this bug by setting a free attribute of an ObjectChange
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/dia/issues/389.