GNOME Bugzilla – Bug 554325
excel_formula_write criticals
Last modified: 2008-10-14 15:44:50 UTC
Version: r16836 OS: Ubuntu Hardy Steps to reproduce: - ssconvert gnumeric/samples/excel/functions.xls /tmp/foo.xls Console output: CRITICAL **: excel_formula_write_NAME_v7: assertion `tmp != NULL' failed CRITICAL **: excel_formula_write_NAME_v8: assertion `tmp != NULL' failed Backtrace (at first critical): (gdb) bt
+ Trace 207539
$1 = (gpointer) 0x0
An expression is used the undefined name "fred". Relatedly, I notice that excel_foreach_name is accessing expr-name internals. We ought to fix that too.
Created attachment 119826 [details] [review] Tentative patch How about this? (We need to clean up placeholders, btw. We have ***three*** indicators: is_placeholder member, #NAME? value, and placement in ->placeholders.)
Seems reasonable. Although the amount of infrastructure feels bulky. We'll end up with a vast library of workbook_foreach_foo at this rate.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.