ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Segmentation fault perl 5.20?
Posted by Martin Gross on Jun-07-2015 00:58
Hi Peter,

I recently upgraded my Freebsd servers and now have perl5-5.20.2_4 running as well.

It appears that "use perlchartdir;" is causing a "Segmentation fault (core dumped)".

I saw some issues in the forum search related to perl versions and segmentation faults. Are
there any issues associated with perl5-5.20.2_4?

Thank you for your time.
Martin

  Re: Segmentation fault perl 5.20?
Posted by Peter Kwan on Jun-08-2015 22:53
Hi Martin,

First, please make sure you are using the latest ChartDriector for Perl version that
supports 5.20. The "ChartDirector/lib" subdirectory should contain several files named
"perlchartdir520.so", "perlchartdir520mt.so", "perlchartdir520i64mt.so" and
"perlchartdir520i64.so". (The 64-bit edition of ChartDirector for Perl only contains the last
two files for Perl 5.20 support.) Also, make sure you are using 32-bit ChartDirector if your
Perl for the i388/i686 architecture, and 64-bit ChartDirector if your Perl is for the AMD64
architecture.

After installing ChartDirector for Perl, please try the sample code from the command line
by going to the "ChartDirector/perldemo" subdirectory, and run:

perl simplebar.pl

This should produce a chart image "simplebar.png". If it core dumps, please enter "perl -
V" to obtain your Perl configuration, and inform me of the result, and also inform me
which FreeBSD version you are uisng (use "uname -a") and where do you obtain the Perl (
does it come with the FreeBSD?).

When building Perl, like many of the other open source languages, there are dozens of
options (the perl -V will list out a lot of the options). But for Perl, using different options
will result in Perl that can be binary incompatible with each others. It means the Perl
options should match with the options of the ChartDirector shared objects, otherwise
core dump may occur. The current ChartDirector for Perl comes with 4 different shared
objects for Perl 5.20 (2 of them are only application for 32-bit Perl), which should cover
the vast majority of the Perl in actual use. However, if it does not seem to work for your
case, the perl -V should help us to identify the perl options and try to reproduce the
problem.

Regards
Peter Kwan

  Re: Segmentation fault perl 5.20?
Posted by Martin Gross on Jun-08-2015 23:14
Hi Peter

Thank you so much. I mistakenly thought Perl 5.18 was that last tested perl version.
This is great, I'll update my Chart Director library files.
Your prompt and thorough response is very helpful

Martin Gross

  Re: Segmentation fault perl 5.20?
Posted by Peter Kwan on Jun-08-2015 22:58
Hi Martin,

First, please make sure you are using the latest ChartDriector for Perl version that
supports 5.20. The "ChartDirector/lib" subdirectory should contain several files named
"perlchartdir520.so", "perlchartdir520mt.so", "perlchartdir520i64mt.so" and
"perlchartdir520i64.so". (The 64-bit edition of ChartDirector for Perl only contains the last
two files for Perl 5.20 support.) Also, make sure you are using 32-bit ChartDirector if your
Perl for the i388/i686 architecture, and 64-bit ChartDirector if your Perl is for the AMD64
architecture.

After installing ChartDirector for Perl, please try the sample code from the command line
by going to the "ChartDirector/perldemo" subdirectory, and run:

perl simplebar.pl

This should produce a chart image "simplebar.png". If it core dumps, please enter "perl -
V" to obtain your Perl configuration, and inform me of the result, and also inform me
which FreeBSD version you are uisng (use "uname -a") and where do you obtain the Perl (
does it come with the FreeBSD?).

When building Perl, like many of the other open source languages, there are dozens of
options (the perl -V will list out a lot of the options). But for Perl, using different options
will result in Perl that can be binary incompatible with each others. It means the Perl
options should match with the options of the ChartDirector shared objects, otherwise
core dump may occur. The current ChartDirector for Perl comes with 4 different shared
objects for Perl 5.20 (2 of them are only application for 32-bit Perl), which should cover
the vast majority of the Perl in actual use. However, if it does not seem to work for your
case, the perl -V should help us to identify the perl options and try to reproduce the
problem.

Regards
Peter Kwan