Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Oct 1996 14:00:03 -0800 (PST)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-bugs
Subject:   Re: bin/1916: List management bug in last, shows up with /etc/malloc.conf -> AJ
Message-ID:  <199610282200.OAA06498@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/1916; it has been noted by GNATS.

From: J Wunsch <j@uriah.heep.sax.de>
To: davidn@sdev.usn.blaze.net.au
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/1916: List management bug in last, shows up with /etc/malloc.conf -> AJ
Date: Mon, 28 Oct 1996 21:42:51 +0100 (MET)

 As David Nugent wrote:
 
 > 	Under some circumstances, last from -current dumps core. A sample
 
 The `some circumstances' are simply a "shutdown" entry.
 
 > 	wtmp file (uuencoded attached below) demonstrates the problem.
 > 
 > >Description:
 > 
 > 	A pointer is free(3)'ed, and subsequently used in the wtmp() function
 > 	in last.c. With MALLOC_OPTIONS set to AJ, the contents of the memory
 > 	pointed to by the free pointer are no longer valid, causing a core
 > 	dump.
 
 Sorry to say, but you're already too late. :)  The problem has been
 reported in PR 1909, and fixed a couple of hours later...  Needless
 to say, the fix looks damn similar to yours.
 
 -- 
 cheers, J"org
 
 joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
 Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610282200.OAA06498>