another malloc problem fixed...
At the bottom of ars_CreateEntry I had a FreeARValueList, which I changed
to a plain free. The problem was FreeARValueList would deallocate strings
in the list and destroy the functions argument list.
the fixed version is at:
ftp://smurfland.cit.buffalo.edu/ftp/pub/utils/Perl/ARSperl.tgz
(sorry no diff included...)
> From own...@lu... Fri Aug 30 11:32 PDT 1996
> Return-Path: <own...@lu...>
> Subject: ARSperl, Netscape Server, and ars_CreateEntry()
> To: ar...@lu...
> X-Mailer: ELM [version 2.4 PL23]
> Mime-Version: 1.0
> Content-Transfer-Encoding: 8bit
> Sender: own...@lu...
> Precedence: bulk
> Reply-To: ar...@lu...
> Content-Type> : > text/plain> ; > charset=US-ASCII>
> Content-Length: 1861
> X-Lines: 53
>
> I'm encountering the following error when using the ars_CreateEntry()
> function of ARSperl:
>
> Bad free() ignored
>
> The error first appeared when an associative array of valid name/value
> pairs was passed to ars_CreateEntry(). For instance:
>
> $entry = ars_CreateEntry($ctrl, $schema, %data_copy);
>
> Passing the same data as a regular array did NOT produce the error:
>
> @data_copy = %data;
> $entry = ars_CreateEntry($ctrl, $schema, @data_copy);
>
>
> (Additional strange factoid: Perl seemed unable to correctly determine where
> the problem was in the program. For instance, it stated that the problem
> line was, say, 154. However, adding a couple of extra lines of code before
> line 154 didn't change the error message; it still stated that the problem
> line was 154.)
>
> A group of people working independently on the same project as I am
> feel that this problem is directly related to using the Netscape
> Server. They state that changing the code a bit may often seem to fix
> the immediate problem (as with the array switcheroo above), but the
> underlying problems will still be there, and that the only real fix at
> this time is to change the server software to something else (CERN,
> Apache, or what-have-you).
>
>
> Is this is a problem with ARSperl?
>
> Is this is a problem with the Netscape Server?
>
> Is this is a problem with combining the two?
>
> Or, is it something else?
>
>
> I am using the following combination of software:
>
> Netscape Communications Server, 1.12
> ARS perl extensions, version 1.2++
> IRIX 6.2
> Perl version 5.002
> CGI.pm,v 2.23
>
> --
> ---------------------------------------------------------------------------
> Brian K. Tanaka IS Assistance Center - SGI, Inc.
> Taos Mountain http://www-isac.corp.sgi.com/
> bt...@we... bt...@co... - Ext. 34950
>
|