logo       

[ pdl-Bugs-1758614 ] range called with negative size causes perldl kill: msg#00020

Subject: [ pdl-Bugs-1758614 ] range called with negative size causes perldl kill
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



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe