Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning when destroying empty ndarray created by Storable #448

Closed
djerius opened this issue Jul 25, 2023 · 1 comment
Closed

warning when destroying empty ndarray created by Storable #448

djerius opened this issue Jul 25, 2023 · 1 comment

Comments

@djerius
Copy link
Contributor

djerius commented Jul 25, 2023

This:

use PDL 2.084;
use PDL::IO::Storable;
use Storable qw( freeze thaw );

{ thaw(  freeze pdl([]) ) }

generates a warning:

Warning: special data without datasv is not freed currently!! at /home/dj/.plenv/versions/5.36/lib/perl5/5.36.1/x86_64-linux/Storable.pm line 477.
	eval {...} called at /home/dj/.plenv/versions/5.36/lib/perl5/5.36.1/x86_64-linux/Storable.pm line 477
	Storable::thaw("\x{4}\x{b}\x{8}12345678\x{4}\x{8}\x{8}\x{8}\x{13}\x{0}\x{3}PDL0\x{ff}\x{ff}\x{ff}\x{ff}\x{ff}\x{ff}\x{ff}\x{ff}PDL_D           \x{8}\x{0}\x{0}\x{0}\x{1}\x{0}\x{0}\x{0}\x{1}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}"...) called at /home/dj/tmp/bug.pl line 5
@mohawk2
Copy link
Member

mohawk2 commented Jan 29, 2024

Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants