Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Martin Ostermann <ost@comnets.rwth-aachen.de>
Subject: libc-0.43-1.rpm bugs: free() and memcpy()
Date: Sat, 20 Jul 1996 19:59:49 +0200	[thread overview]
Message-ID: <7178675201948c37fe519c93d7c456a9.axp-list@archive.invalid> (raw)

There is a bug concerning Gnu malloc/free in libc. Sorry, I haven't
fixed it, I can only offer a workaround. I believe its due to the
fact, that malloc and malloc-930716 havn't been equally ported to 64
bit architectures. They use different data types at some places,
e.g. size_t vs int. The makefiles mix the two versions, malloc/cfree.c
and anything else from malloc-930716. FYI: malloc does statistics,
malloc-930716 not, thus the later is supposed to be slightly
faster. 

The bug appears for example in tar. Multi volume tar extracts (tar xMf
/dev/fd0)  will loop endlessly in free(), called by assign_string().

Using just the new stuff in malloc, it disappears.

Like I already wrote in my previous mail, memcpy() uses an unoptimized
version. ./sysdeps/alpha/Makefile and ./string/Makefile need to be
fixed. 

Bye, Martin

-- 
Martin Ostermann                | mailto:ost@comnets.rwth-aachen.de
Communication Networks          | http://www.comnets.rwth-aachen.de/~ost
Aachen University of Technology | phoneto:++49/241/807917
Germany                         | faxto:++49/241/8890378

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

                 reply	other threads:[~1996-07-20 17:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox