Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 209384 - dev-libs/clearsilver-0.10.5: Perl-API issues warning for call of CS->render()
Summary: dev-libs/clearsilver-0.10.5: Perl-API issues warning for call of CS->render()
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High minor
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-08 19:42 UTC by Claus Schotten
Modified: 2008-09-10 07:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Claus Schotten 2008-02-08 19:42:00 UTC
The Perl-API of dev-libs/clearsilver-0.10.5 causes a warning 
"use of unititialised value in subroutine entry"
each time ClearSilver:CS->render() is called.

Reproducible: Always

Steps to Reproduce:
Execute following perl script:
#!/usr/bin/perl -w

use ClearSilver;

my $hdf = ClearSilver::HDF->new();
$hdf->setValue(v => 1);

my $cs = ClearSilver::CS->new($hdf);
$cs->parseString("<?cs var:v ?>\n");
print $cs->render();


Actual Results:  
Following warning at stderr:
Use of uninitialized value in print at -e line 1.

At stdout:
1

Expected Results:  
No warning at stderr

At stdout:
1

The Bug is probably in line 404 of perl/ClearSilver.xs

If I replace 'newSV();' with 'newSVpv("",0);' the warning is gone.
However, I'm not familiar with this newSV() stuff and don't know if 
I create another bug (e.g. a memory leakage)
Comment 1 Łukasz Damentko (RETIRED) gentoo-dev 2008-05-27 13:28:25 UTC
dju was retired (#87168), reassigning remaining bugs.
Comment 2 Gunnar Wrobel (RETIRED) gentoo-dev 2008-09-10 07:27:27 UTC
Sounds like an upstream bug to me. Marking WONTFIX for now but feel free to submit a patch with some documentation.