On Fri, Jun 21, 2002 at 10:44:01AM -0400, Sam Tregar wrote:

> That sounds like you've got something overwriting memory in your code.
> By adding the print statement you're changing which memory gets
> overwritten, perhaps by introducing a string constant.  Take a close look
> at any array manipulation or pointer math in your code.  Also, carefully
> check the arguments to any library functions you're calling since they may
> overwrite memory if given invalid arguments.

If you're on x86 you may want to test using valgrind:

http://developer.kde.org/~sewardj/

It's an excellent tool for finding memory management problems, and generally
any bugs involving uninitialised variables.

perl 5.8.0 (RC 2 is out now) is to the best of my knowledge valgrind clean,
so if you try valgrind on your current setup and it reports lots of problems
in perl 5.6.x (or earlier) which stop you finding your own problems you may
wish to test your code with 5.8.0 RC2

If you're getting the bus error on something else but have access to x86
then you may still want to try it.

Nicholas Clark

Reply via email to