Bug 1055054 - segfault when running example from manual page
Summary: segfault when running example from manual page
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-PDL-Graphics-PLplot
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Pisar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-18 12:05 UTC by Michael Schwendt
Modified: 2021-12-16 05:03 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-04-04 12:01:01 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Michael Schwendt 2014-01-18 12:05:03 UTC
As pointed out on Fedora users list, running the example code causes a segmentation fault somewhere in the used components. Please reassign the ticket appropriately, if necessary.

man 3pm PDL::Graphics::PLplot

         use PDL;
         use PDL::Graphics::PLplot;

         my $pl = PDL::Graphics::PLplot->new (DEV => "png", FILE => "test.png");
         my $x  = sequence(10);
         my $y  = $x**2;
         $pl->xyplot($x, $y);
         $pl->close;

$ perl test.pl
Segmentation fault (core dumped)

Backtrace:

#0  0x00007ffff0c1ac06 in pdl_make_trans_mutual (trans=0x62f660)
    at pdlapi.c:855
        i = 0
        fflag = 0
        cfflag = 0
        pfflag = 0
#1  0x00007fffee926338 in XS_PDL_plsstrm (my_perl=0x604010, cv=0x13998b0)
    at PLplot.xs:51877
        __privtrans = 0x62f660
        badflag_cache = 0
        bless_stash = 0x0
        parent = 0x0
        strm = 0x62dd40
        objname = 0x7fffee97274b "PDL"
        nreturn = 0
        sp = 0x1340d00
        ax = 1
        mark = 0x1340d00
        items = 1
#2  0x0000003e1c0c33e6 in Perl_pp_entersub (my_perl=0x604010) at pp_hot.c:2888
        markix = 0
        sp = <optimized out>
        sv = 0x12d6fd0
        gv = 0x3e1c0cd400 <Perl_sv_free2>
        cv = <optimized out>
        cx = <optimized out>
        gimme = 1
        hasargs = <optimized out>
#3  0x0000003e1c0bb81e in Perl_runops_standard (my_perl=0x604010) at run.c:42
        op = 0x12d94c8
#4  0x0000003e1c052d40 in S_run_body (oldscope=<optimized out>, 
    my_perl=<optimized out>) at perl.c:2467
No locals.
#5  perl_run (my_perl=0x604010) at perl.c:2383
        oldscope = 1
        ret = <optimized out>
        cur_env = {je_prev = 0x604398, je_buf = {{__jmpbuf = {1, 
                -2551411111658128443, 4197688, 140737488348736, 0, 0, 
                2551411111979252677, -2527740849846879291}, 
              __mask_was_saved = 0, __saved_mask = {__val = {6346480, 
                  266759186336, 0, 6, 140737488348736, 6318832, 6307856, 
                  140737353967264, 140737488348736, 0, 0, 266758570969, 
                  266759119943, 10956173349505609728, 6307856, 0}}}}, 
          je_ret = 0, je_mustcatch = false}
#6  0x0000000000400d29 in main (argc=2, argv=0x7fffffffe648, 
    env=0x7fffffffe660) at perlmain.c:114
        exitstatus = <optimized out>
        i = <optimized out>

Comment 1 Michael Schwendt 2014-05-23 08:29:19 UTC
Any idea here?

Comment 2 Michael Schwendt 2014-07-03 08:52:02 UTC
Christopher, what's up?

Since you are highly active in the review queue, it would be wrong to start the non-responsive maintainer procedure. Has anything been done to look into this issue and to figure out which component is the culprit?

Comment 3 Christopher Meng 2014-07-03 09:02:35 UTC
(In reply to Michael Schwendt from comment #2)
> Christopher, what's up?
> 
> Since you are highly active in the review queue, it would be wrong to start
> the non-responsive maintainer procedure. Has anything been done to look into
> this issue and to figure out which component is the culprit?

Because I have no idea.

Comment 4 Michael Schwendt 2014-07-03 09:14:53 UTC
Hmmm...

Has it been reported/discussed upstream yet?

http://search.cpan.org/~csoe/PDL-2.4.3/

Comment 5 Christopher Meng 2014-07-03 09:15:55 UTC
I just tried the example code again on rawhide, no sementfault anymore.

Comment 6 Michael Schwendt 2014-07-03 10:41:26 UTC
This ticket is about Fedora 20 not Rawhide.

$ rpm -q perl-PDL-Graphics-PLplot
perl-PDL-Graphics-PLplot-0.67-1.fc20.x86_64

Comment 7 Jitka Plesnikova 2014-07-03 11:58:22 UTC
Could you please give me any reason why you change the component to perl-PDL?

Did you investigate the issue and find that source of problem is at perl-PDL?

Comment 8 Jitka Plesnikova 2014-08-12 10:58:13 UTC
Change back to perl-PDL-Graphics-PLplot, because I didn't get any valid reason from Christopher Meng, why the component was change.

Comment 9 Michael Schwendt 2014-08-14 21:20:50 UTC
I've opened bug 1130326 for the error I get with Fedora 21.

Comment 10 Michael Schwendt 2015-01-15 09:19:11 UTC
Christopher,

is there anything you've done as the Fedora package maintainer to examine these issues? Has upstream been contacted? Is it specific to Fedora?

Comment 11 Fedora End Of Life 2015-05-29 10:33:58 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 12 Michael Schwendt 2015-05-29 10:39:02 UTC
Still doesn't work with F22, albeit syptoms have changed:

$ perl test.pl

*** PLPLOT WARNING ***
Unable to open cmap0 file cmap0_default.pal


*** PLPLOT ERROR, IMMEDIATE EXIT ***
Unable to either (1) open/find or (2) allocate memory for the font file
Program aborted

Comment 13 Fedora Admin XMLRPC Client 2016-02-26 17:45:01 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 14 Fedora Admin XMLRPC Client 2016-03-18 08:10:48 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 15 Petr Pisar 2016-04-04 12:01:01 UTC
I cannot get the crash in Fedora 22. I will close this bug report as fixed in current release.

The font error will be tracked in bug #1130326.


Note You need to log in before you can comment on or make changes to this bug.