Bugs item #1758614, was opened at 2007-07-23 00:36
Message generated for change (Settings changed) made by zowie
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100612&aid=1758614&group_id=612
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: None
>Status: Closed
Resolution: Fixed
Priority: 3
Private: No
Submitted By: Derek Lamb (lambd)
Assigned to: Nobody/Anonymous (nobody)
Summary: range called with negative size causes perldl kill
Initial Comment:
perldl>$a = sequence(3);
perldl>p $a->range(2,-1);
panic: memory wrap at /usr/lib/perl5/site_perl/5.8.8/i386-linux/PDL/Core.pm
line 2729.
perldl> p $a->range(2,-2)
Out of memory!
Callback called exit.
Freeing FFT space
The easiest solution would be to warn the user with "don't do that!" instead of
dying. A neater solution would be to allow range to use negative sizes or
negative indexes, just like piddle indexing.
----------------------------------------------------------------------
Comment By: Craig DeForest (zowie)
Date: 2007-07-23 14:15
Message:
Logged In: YES
user_id=20200
Originator: NO
Blocked negative sizes with an error message. It's not obvious how
negative sizes should work - there are at least two nonsurprising ways. We
should talk about it offline if you'd like to see/implement a negative size
handler.
----------------------------------------------------------------------
Comment By: Craig DeForest (zowie)
Date: 2007-07-23 14:15
Message:
Logged In: YES
user_id=20200
Originator: NO
Bug fixed in CVS.
Thanks for reporting the problem!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100612&aid=1758614&group_id=612
|