Gnucash 1.8.4: Crash with "could not allocate -147 bytes"

Derek Atkins warlord at MIT.EDU
Sun Jun 15 13:48:32 CDT 2003


Hi,

Paul Dickson <dickson at permanentmail.com> writes:

> I have a gnucash chart-of-account covering all of 2002 up to the present.
> I was splitting this into two chart-of-accounts (finally closing 2002),
> when I tried to delete a split from a record.  The result was:
> 
> >-------
> 
> GLib-WARNING **: g_printf_string_upper_bound(): unable to handle `
> ' while parsing format
>  
> GLib-ERROR **: could not allocate -147 bytes
> aborting...
> Aborted (core dumped)
> >-------

Hmm.. This is interesting..  Any chance I could get you to run
gnucash under gdb with "fatal warnings" turned on?   Basically,
run "gnucash --g-fatal-warnings", then once it starts run:

        ps aux | grep gnucash

then run gdb and:
        gdb> attach <pid>

where <pid> is the process of the gnucash process...  hit return a few
times as it loads all the shared libraries, then type "continue" when
you get the next gdb> prompt.

Then try removing the split...  When it aborts on you, type:

        gdb> backtrace

Somewhere around frame 5 or 6 in the backtrace it will show where it's
dying.  Can you then file a bugzilla report (at bugzilla.gnome.org)
with that info so we have it for posterity?

> This was initially under 1.8.1 from RH9.  Today I downloaded the RH8 SRPM
> and rebuilt 1.8.4 for RH9.  I still have the same problem.
> 
> I was able to get around the problem with emacs by deleting the specific
> split and adjusting the remaining values of that record.

Hmm...

> I still have the original chart-of-accounts file, if it will help with
> debugging.
> 
> Below is the record/transaction in question.  The third split is the one I
> was deleting.

What do you mean by "third split"?  Do you mean the split with GUID
59870124ca0da7837c48a2f1f1da45c4 (for $7)?  If so, I suspect I know
what the problem is, but I need to see where it's dying so I know
where to look to fix it.

> <gnc:transaction version="2.0.0">
>   <trn:id type="guid">7767c2ce7d892e54b87a30886b60b52d</trn:id>
>   <trn:currency>
>     <cmdty:space>ISO4217</cmdty:space>
>     <cmdty:id>USD</cmdty:id>
>   </trn:currency>
>   <trn:num>831440</trn:num>
>   <trn:date-posted>
>     <ts:date>2002-11-15 00:00:00 -0700</ts:date>
>   </trn:date-posted>
>   <trn:date-entered>
>     <ts:date>2002-11-16 11:07:24 -0700</ts:date>
>   </trn:date-entered>
>   <trn:description>John Doe</trn:description>
>   <trn:splits>
>     <trn:split>
>       <split:id type="guid">218cc0db7d93b2a1f3ff6a0713aa6117</split:id>
>       <split:memo>Check #7971</split:memo>
>       <split:reconciled-state>n</split:reconciled-state>
>       <split:value>5500/100</split:value>
>       <split:quantity>5500/100</split:quantity>
>       <split:account type="guid">e08090106f89a72b98f93ba8ac258ca1</split:account>
>     </trn:split>
>     <trn:split>
>       <split:id type="guid">44b2be7305ef6004f63224550f34145c</split:id>
>       <split:memo>Membership</split:memo>
>       <split:reconciled-state>n</split:reconciled-state>
>       <split:value>-2800/100</split:value>
>       <split:quantity>-2800/100</split:quantity>
>       <split:account type="guid">0b1ac8763ff2f561643e3119b7fdaf68</split:account>
>     </trn:split>
>     <trn:split>
>       <split:id type="guid">59870124ca0da7837c48a2f1f1da45c4</split:id>
>       <split:memo>Membership 25%</split:memo>
>       <split:reconciled-state>n</split:reconciled-state>
>       <split:value>-700/100</split:value>
>       <split:quantity>-700/100</split:quantity>
>       <split:account type="guid">7890b507cfcdd18233899fdb0c2887eb</split:account>
>     </trn:split>
>     <trn:split>
>       <split:id type="guid">f533d277679f57fd1f2eacd735aef679</split:id>
>       <split:memo>Sky &amp; Telescope Magazine</split:memo>
>       <split:reconciled-state>n</split:reconciled-state>
>       <split:value>-2000/100</split:value>
>       <split:quantity>-2000/100</split:quantity>
>       <split:account type="guid">9077239e8d0a1c3761198ba5aeb4aa27</split:account>
>     </trn:split>
>   </trn:splits>
> </gnc:transaction>
> 
> Please cc: me about any queries regarding the chart-of-accounts, as I
> might not see the entries from this mailing list immediately.

Ok..  Here ya go! ;)

OBTW, filing the bugzilla report will make it easier for me (and
others) to track the progress...  And also it will allow me to work on
it when I don't have my email handy ;)

Thanks!!

> 	-Paul Dickson

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-user mailing list