On Fri, 21 Jun 2002, bbcannon wrote:

> I have a working/functional perl script which uses Inline C.  When I delete
> one print statement that is
> located in a perl subroutine I get a bus error.  If I "undo" the delete
> there is no bus error and all the code works.
> The print statement is just text, no variables.

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.

-sam


Reply via email to