Home > Archive > PERL CGI Beginners > May 2004 > segmentation 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 |
segmentation fault?
|
|
| Octavian Rasnita 2004-05-22, 11:31 am |
| Does anyone know what could be a reason a perl program gives a segmentation
error each time I run it under Linux?
I have no problem with it under Windows.
It is a program that uses LWP, downloads some pages, analyse them, and save
the data into a text file.
Thank you for any idea.
Teddy
| |
| Thomas bätzler 2004-05-22, 11:31 am |
| Hi,
Octavian Rasnita <orasnita@fcc.ro> asked:
> Does anyone know what could be a reason a perl program gives
> a segmentation error each time I run it under Linux?
This sounds like one of the libraries you're using was built for
a different version of Perl or with a different set of libraries.
If you can, do a reinstall of Perl and the affected libraries.
HTH,
Thomas
| |
| Zentara 2004-05-22, 11:31 am |
| On Mon, 5 Apr 2004 14:08:01 +0300, orasnita@fcc.ro (Octavian Rasnita)
wrote:
>Does anyone know what could be a reason a perl program gives a segmentation
>error each time I run it under Linux?
>I have no problem with it under Windows.
>
>It is a program that uses LWP, downloads some pages, analyse them, and save
>the data into a text file.
>
>Thank you for any idea.
Alot of things can cause it. But a big one would be perl modules which
use c code, and using a module built with a differnet compiler or glibc
version.
You could try running "strace perl scriptname" and watch what is
happening just before the segfault. It will probably have something to
do with shared libraries.
Or else show us the code so we can try it.
--
I'm not really a human, but I play one on earth.
http://zentara.net/japh.html
|
|
|
|
|