Re: Segmentation Fault in xaccFreeSplit

2005-01-21 Thread Derek Atkins
Quoting Matthew Vanecek <[EMAIL PROTECTED]>: > I'm kinda skeptical about using the contents of a freed Split to see if > the Split has been freed, though. What if something else has > overwritten the freed memory? Why is that particular pointer guaranteed > to still be == (char *)1 if the split

Re: Segmentation Fault in xaccFreeSplit

2005-01-21 Thread Derek Atkins
Quoting Thomas Bushnell BSG <[EMAIL PROTECTED]>: > Derek Atkins <[EMAIL PROTECTED]> writes: > > > And yes, this code has been there a long time, in order to detect a > > double-free. > > That's a bug then; you can't access freed memory, period. Well, yes and no... > Indeed, it is fair game

Re: Segmentation Fault in xaccFreeSplit

2005-01-21 Thread Matthew Vanecek
On Fri, 2005-01-21 at 21:09 -0600, Matthew Vanecek wrote: > On Fri, 2005-01-21 at 11:37 -0800, Thomas Bushnell BSG wrote: > > Derek Atkins <[EMAIL PROTECTED]> writes: [snip] > It's faulting on my P3 nowadays for some reason. I wasn't sure if it > was a glibc thing or what. Quite annoying. I w

Re: Segmentation Fault in xaccFreeSplit

2005-01-21 Thread Thomas Bushnell BSG
Derek Atkins <[EMAIL PROTECTED]> writes: > And yes, this code has been there a long time, in order to detect a > double-free. That's a bug then; you can't access freed memory, period. Indeed, it is fair game for an attempted read out of freed memory to fault; it's been freed, you can't read

Re: Segmentation Fault in xaccFreeSplit

2005-01-21 Thread Matthew Vanecek
On Fri, 2005-01-21 at 11:37 -0800, Thomas Bushnell BSG wrote: > Derek Atkins <[EMAIL PROTECTED]> writes: > > > I see nothing wrong with this code. It should be perfectly legal to > > set an invalid pointer like this. Unless you are specifically doing > > bounds-checking on pointer-sets I can't s

Re: Segmentation Fault in xaccFreeSplit

2005-01-21 Thread Thomas Bushnell BSG
Derek Atkins <[EMAIL PROTECTED]> writes: > I see nothing wrong with this code. It should be perfectly legal to > set an invalid pointer like this. Unless you are specifically doing > bounds-checking on pointer-sets I can't see how setting a pointer > would cause a SEGV. You're not ACCESSING the

Re: Segmentation Fault in xaccFreeSplit

2005-01-21 Thread Derek Atkins
I see nothing wrong with this code. It should be perfectly legal to set an invalid pointer like this. Unless you are specifically doing bounds-checking on pointer-sets I can't see how setting a pointer would cause a SEGV. You're not ACCESSING the memory then, you're only setting the pointer. It

Re: display of memo instead of description

2005-01-21 Thread Derek Atkins
Christian Krause <[EMAIL PROTECTED]> writes: > Yes, I understand the problem. I've already changed the > gnc_..._get_desc_entry and now it displays the memo in the way I > want. But I know that's not all. Okay. >> It's not a two-line change -- there's a bunch of logic changes that >> are require

Re: Stock Sales - Balance sheet unbalanced

2005-01-21 Thread Derek Atkins
David G Hamblen <[EMAIL PROTECTED]> writes: > Hi: > > My problem is with the weighted-average computation causing the balance > sheet to be unbalanced. I've been seeing this for several years now. I > just compiled and installed 1.8.10 and the problem is unchanged. The > calculation seems to use