For Programmers: Free Programming Magazines  


Home > Archive > PERL Programming > November 2005 > Seg fault.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Seg fault.
Justin C

2005-11-11, 6:57 pm


What sort of thing might cause my perl script to seg fault? I don't want
to post it, it's a bit large and I can't fathom what, at the point it
dies, is the problem (it looks like it's in the middle of a:
print <<EOF ;
statement.

Any suggestions before I post the whole gory mess to a web-page?


Justin.

--
Justin C, by the sea.
Paul Lalli

2005-11-11, 6:57 pm

Justin C wrote:
> What sort of thing might cause my perl script to seg fault?


Nothing should make perl segfault. If it is, it's entirely possible
you've found a bug. What version of perl are you using? (run `perl
-v` to check)

> I don't want
> to post it, it's a bit large and I can't fathom what, at the point it
> dies, is the problem (it looks like it's in the middle of a:
> print <<EOF ;
> statement.


You need to start analyzing the code. Strip functionality out until
you're left with the bare minimum program that still exhibits the seg
fault. Also give details on your operating system and perl version

> Any suggestions before I post the whole gory mess to a web-page?


Yes. Please don't.

Paul Lalli

Justin C

2005-11-12, 7:55 am

On 2005-11-11, Paul Lalli <mritty@gmail.com> wrote:
> Justin C wrote:
>
> Nothing should make perl segfault. If it is, it's entirely possible
> you've found a bug. What version of perl are you using? (run `perl
> -v` to check)


I can't fathom what it was. I don't intend breaking this code, now that
I've fixed it, to try to figure it out.

Thanks anyway.


Justin.

--
Justin C, by the sea.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com