logo       

Re: patch@25279 PERL_HV_ARRAY_ALLOC_BYTES too small: msg#00061

Subject: Re: patch@25279 PERL_HV_ARRAY_ALLOC_BYTES too small
Jim Cromie wrote:
John E. Malmberg wrote:

The patch that I submitted is needed to eliminate a data corruption issue that should be affecting more than just VMS.

If I have diagnosed this wrong, please let me know.

just a wild conjecture from the peanut gallery. There are some pretty
subtle tricks played in the memory allocation areas, which might
explain why nobodys responding; most dont understand it all deeply,
and given that tests pass so successfully, its hard to imagine
> an error of the size you suggest could be universally present.
> (or it could be august vacations, or firefighting at day jobs)

The original macro clearly does not match the structure that it is supposed to be used to allocate space for.

Changing the macro for the size allocation to match the structure makes the symptoms go away.

It is a possibility that the structure is declared wrong and instead of being an array of structures, should be an array of pointers to structures. I would have to do more research to determine if that is the case.

There can be many reasons why this data corruption is not more visible.
When memory is allocated, sometimes gaps in what is in use appear.

I could only reproduce this problem by running the test script that was failing, and any attempt to simplify the problem made the corruption go away.

What I find is interesting is next to the macro that I changed to match the structure, there is an alternate macro that over-allocates the data because it claims it is compensating for broken malloc() routines on some system. I suspect that it is not the malloc() that was broken.

-John
wb8tyw@xxxxxxx
Personal Opinion Only



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

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
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