Another bug

Arnold Troeger stssart@bkk.unocal.com
Thu, 21 Sep 2000 07:32:53 +0700


--------------825EEB73190CA7E53D23C996
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Robert Graham Merkel wrote:

> Phillip Shelton writes:
>  > I do not yet have a machine that I can use to look at or use your code, but
>  > when a library function appears to stuff up I would look for somewhere that
>  > you are overstepping some array bound especially if you malloc the array
>  > space.
>  >
>  > Phill
>  >
> Yes, that's definitely a possibility.  Pain in the rear to find though :(
>
> ------------------------------------------------------------
> Robert Merkel                              rgmerk@mira.net
>
> ------------------------------------------------------------
>
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel@lists.gnumatic.com
> http://www.gnumatic.com/cgi-bin/mailman/listinfo/gnucash-devel

Just a thought, but have you tried Purify or ElectricFence on the code in
question?  I've used Purify in the past on programs with array bounding problems
and it worked great.  It saved me several days of tracking down memory problems.
Purify is a commercial product that runs on Solaris but ElectricFence is supposed
to be able to do the same thing, it runs on Linux and it's free.  I've not used
ElectricFence so I can't comment on how much pain is involved there, but Purify
was very easy to use.

Best regards,
Arnold

--
Arnold Troeger                          Unocal Thailand
Phone:  011-66-2-545-5456               5th Floor, Tower 3, SCB Park Plaza
FAX:    011-66-2-545-5374               19 Ratchadapisek Road, Chatuchak
Email:  Arnold.Troeger@bkk.unocal.com   Bangkok 10900, Thailand
------------------------------------------------------------------------
"Microsoft Windows:  for when your machine is just too fast"



--------------825EEB73190CA7E53D23C996
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
Robert Graham Merkel wrote:
Phillip Shelton writes:
 > I do not yet have a machine that I can use to look at or use your code, but
 > when a library function appears to stuff up I would look for somewhere that
 > you are overstepping some array bound especially if you malloc the array
 > space.
 >
 > Phill
 >
Yes, that's definitely a possibility.  Pain in the rear to find though :(

------------------------------------------------------------
Robert Merkel                              rgmerk@mira.net

------------------------------------------------------------

_______________________________________________
gnucash-devel mailing list
gnucash-devel@lists.gnumatic.com
http://www.gnumatic.com/cgi-bin/mailman/listinfo/gnucash-devel

Just a thought, but have you tried Purify or ElectricFence on the code in question?  I've used Purify in the past on programs with array bounding problems and it worked great.  It saved me several days of tracking down memory problems.  Purify is a commercial product that runs on Solaris but ElectricFence is supposed to be able to do the same thing, it runs on Linux and it's free.  I've not used ElectricFence so I can't comment on how much pain is involved there, but Purify was very easy to use.

Best regards,
Arnold

-- 
Arnold Troeger                          Unocal Thailand
Phone:  011-66-2-545-5456               5th Floor, Tower 3, SCB Park Plaza
FAX:    011-66-2-545-5374               19 Ratchadapisek Road, Chatuchak
Email:  Arnold.Troeger@bkk.unocal.com   Bangkok 10900, Thailand
------------------------------------------------------------------------
"Microsoft Windows:  for when your machine is just too fast"
  --------------825EEB73190CA7E53D23C996--