GNOME Bugzilla – Bug 102700
Gnumeric 1.0.12 crashes when opening XML documents
Last modified: 2004-12-22 21:47:04 UTC
Package: Gnumeric Severity: critical Version: 1.0.12 Synopsis: Gnumeric 1.0.12 crashes when opening XML documents Bugzilla-Product: Gnumeric Bugzilla-Component: Text Import/Export Description: On FreeBSD, Gnumeric 1.0.12 crashes when trying to open any XML document. This problem did not exist in Gnumeric 1.0.11 or below. The problem is that 1.0.12 allocates a 1 MB buffer to work around a bug in libxml1. This buffer overflows FreeBSD's thread[0] stack size (which has a limit of 1 MB). Reducing the buffer size to 768 KB fixes the problem. Alternatively, if one were to use pthreads explicitly, and allocate a thread stack size of 1 MB, this would work. The patch I provide will do the former, and reduce the buffer size. ------- Bug moved to this database by unknown@bugzilla.gnome.org 2003-01-06 16:41 ------- Reassigning to the default owner of the component, jody@gnome.org.
Created attachment 13387 [details] [review] Lower the XML buffer size from 1 MB to 768 KB
Fixed in cvs by *up*ing the size to 10M and allocate it dynamically on heap, not the stack.