Possible problem with Perl

I

ivan.wills

Hi,

I have been having a problem with Perl. When I run a program that I am
currently working on, I get this error message:

Use of uninitialized value in null operation at
/var/www/html/docperl/DocPerl/Cached/API.pm line 236.
Segmentation fault

I am not sure if the seg fault is caused by my program or is a problem
with Perl, does any one know which it might be? I have never had a seg
fault with Perl before so I do not know how to approach the problem.

The program is DocPerl (http://docperl.sf.net/) I get this when I am
trying to compile the perl documentation with ./checksetup.pl -pc
pod,api,code

Thanks,
Ivan
 
B

Ben Morrow

Quoth "[email protected] said:
I have been having a problem with Perl. When I run a program that I am
currently working on, I get this error message:

Use of uninitialized value in null operation at
/var/www/html/docperl/DocPerl/Cached/API.pm line 236.
Segmentation fault

I am not sure if the seg fault is caused by my program or is a problem
with Perl, does any one know which it might be? I have never had a seg
fault with Perl before so I do not know how to approach the problem.

A segfault is always a bug in perl. No program should cause one, unless
it does silly things with XS or Inline::C.

Have you tried this with the latest version of perl (IIRC 5.8.8)?

If you have, see if you can reproduce the problem with some smaller
program, and report it to p5p ([email protected],
nntp://nntp.perl.org/perl.perl5.porters). People here may be able to
help you track down the bug, if you're having difficulty.

Ben
 
J

John W. Krahn

I have been having a problem with Perl. When I run a program that I am
currently working on, I get this error message:

Use of uninitialized value in null operation at
/var/www/html/docperl/DocPerl/Cached/API.pm line 236.
Segmentation fault

I am not sure if the seg fault is caused by my program or is a problem
with Perl, does any one know which it might be? I have never had a seg
fault with Perl before so I do not know how to approach the problem.

The program is DocPerl (http://docperl.sf.net/) I get this when I am
trying to compile the perl documentation with ./checksetup.pl -pc
pod,api,code

I don't know why it would seg fault but you should verify that the value
returned from readline is defined, for example at line 220:
for ( my $sub_line_no = 0 ; $sub_line_no < 10 and $line = <FILE> ; $sub_line_no++ ) {

Because of the boolean expression perl does not automagically check "$line =
for ( my $sub_line_no = 0 ; $sub_line_no < 10 and defined( my $line = <FILE> ); $sub_line_no++ ) {


John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,186
Messages
2,570,998
Members
47,587
Latest member
JohnetteTa

Latest Threads

Top