GNOME Bugzilla – Bug 547173
Ctrl+Alt+M crashes dia
Last modified: 2008-11-02 12:46:40 UTC
from https://bugs.launchpad.net/ubuntu/+bug/256519 I can reliably crash dia 0.96.1 in ubuntu hardy by selecting two objects and pressing Ctrl+Alt+M
see comment in bug #527565 - still no crash. Why do you think this deserves a new bug report _and_ a comment in the existing one?
(In reply to comment #1) > Why do you think this deserves a new bug report _and_ a comment in > the existing one? quite simply "one issue - one report". bug 527565 is very broad and not my own. It is about keyboard shortcuts not working. This one is about crashing stuff. There is a connection between this report and the other one which is why I think it makes sense to leave a comment there. Adding information is not about entitlement or deserving something. It is just about that; "adding information" in the hope that it will help in getting bugs fixed. I am recompiling dia with debug symbols now.
I recompiled 0.96.1-7ubuntu1 which is the same upstream version but IIRC packaging is a little bit more recent than standard hardy and included debugging symbols. In any case, the program still crashes and I was able to get a backtrace. I hope it is meaningful. (gdb) bt
+ Trace 204952
still can't make it crash but the callstack reminded me on bug #539476. I'm willing to put in the following hack if it avoids the crashing for you: Index: lib/text.c =================================================================== --- lib/text.c (revision 4116) +++ lib/text.c (working copy) @@ -918,6 +918,8 @@ break; default: if (str || (strlen>0)) { + if (strlen == 1 && *str == '\r') + break; /* avoid putting junk into our string */ return_val = TRUE; utf = str; for (utf = str; utf && *utf && strlen > 0 ;
Created attachment 119038 [details] test case Thanks for coming back to this issue. Actually, I now had some trouble reconfirming this problem, but ultimately I was successful. I attach a file with two objects in it. Select them both, press Ctrl+Alt+M and dia will crash. It seems that some objects are OK and others will crash. I am now recompiling with your patch. The results should be in shortly. BTW, I saw that the keyboard shortcut Shift+Alt+M is assigned twice (Align middle as well as Magnify). I'd consider that a bug. Do you agree?
(In reply to comment #5) > BTW, I saw that the keyboard shortcut Shift+Alt+M is assigned twice (Align > middle as well as Magnify). I'd consider that a bug. Do you agree? nevermind. I just saw this is already being discussed in bug 527565 comment 6 and following.
FWIW, the patched version does not crash with attachment 119038 [details] and Ctrl+Alt+M
2008-11-02 Hans Breuer <hans@breuer.org> * lib/text.c : ignore single carriage return, work around for bug #547173