in reply to Vague "bus error" question

I haven't run into the particular case you describe, but I have had similar experiences. I suggest you try replacing the log4perl call with a simple sleep 1;. If that fixes your problem as well, you probably have a strange syntax error -- one that the compiler doesn't puke on, but causes your logic to behave oddly. Somtimes the extra, seemingly meaningless call will "fix" the problem. (Well, not fix...)

If that isn't it, I would post the relevant snippets of your code into your question so we can pick it apart. :)

radiantmatrix
require General::Disclaimer;
"Users are evil. All users are evil. Do not trust them. Perl specifically offers the -T switch because it knows users are evil." - japhy

Replies are listed 'Best First'.
Re^2: Vague "bus error" question
by loris (Hermit) on Oct 25, 2004 at 13:14 UTC
    Thanks for the tip, radiatmatrix.

    If I uses sleep 1; as you suggest, I get a segmentation fault.

    I don't have currently have time but shall try to post some code soon. By the way, I have noticed that the problem occurs when the function in question is called recursively.

    loris