Bug#742840: Some more info on gnome-calculator crash with , separator

Andreas Henriksson andreas at fatal.se
Fri Mar 28 14:19:06 UTC 2014


Hello!

I can confirm the crash when using , in gnome-calculator 3.12.

It seems to have been introduced with this upstream commit:
https://git.gnome.org/browse/gnome-calculator/commit?id=4d64dc9180fd8c54368e26b2da08fcc95f232c10https://git.gnome.org/browse/gnome-calculator/


See:
https://git.gnome.org/browse/gnome-calculator/tree/src/math-display.vala#n453

        Gtk.TextBuffer text_buffer = context.get_iter ().get_buffer ();

get_iter() here seems to return a pointer to an iter-struct with all
fields set to 0x0.
When this (invalid?) iter is passed to get_buffer () it crashes.

Note that several critical warnings has been issued before reaching this crash.
Also note that reverting the change doesn't make ',' usable. See upstream bug-
reports about introducing support for using ',' as a decimal separator.

Regards,
Andreas Henriksson




More information about the pkg-gnome-maintainers mailing list