Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: more memchr() woes
@ 1996-12-28 15:25 Uncle George
  0 siblings, 0 replies; 3+ messages in thread
From: Uncle George @ 1996-12-28 15:25 UTC (permalink / raw)


where is the source of the glibs--9608... memchar changes, 
things are still dying, leaving little puddles of core around :-)

Binaries seem to be good, ( doesn't seem to have made them worse )

gat

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: more memchr() woes
@ 1996-12-19 23:33 Uncle George
  0 siblings, 0 replies; 3+ messages in thread
From: Uncle George @ 1996-12-19 23:33 UTC (permalink / raw)


David Mosberger-Tang wrote:
>  This is normally not a problem, but in vfprintf
> there is a call to memchr() that searches for the ASCII NUL terminator
> (which is known to be present) in a memory area that is not
> necessarily all mapped.
>
I'm sorry. But ever since I was a wee tiny tot unix pgmr, a
malloc/sbrk/brk call would map u some memory ( may not be phys
allocated, but u are mapped ). do u mean not allocated ? whats the
hidden story?
gat

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 3+ messages in thread
* more memchr() woes
@ 1996-12-19 21:45 David Mosberger-Tang
  0 siblings, 0 replies; 3+ messages in thread
From: David Mosberger-Tang @ 1996-12-19 21:45 UTC (permalink / raw)


I'm sorry to say that there seems to be another memchr() bug that
occasionally crashes sendmail (and it is likely to affect other
programs that use vfprintf).  The problem is that memchr was written
with the assumption that the entire memory area being searched is
valid.  The Linux man page is quiet on this issue, but the OSF/1
man-page states explicitly that memchr() should search the memory
sequentially (which is a major bummer since its limits optimizations
that use readahead).  This is normally not a problem, but in vfprintf
there is a call to memchr() that searches for the ASCII NUL terminator
(which is known to be present) in a memory area that is not
necessarily all mapped.

Anyhow, I'll try to look into the problem asap, but in the meantime,
it's something to watch out for.

	--david

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1996-12-28 15:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-12-28 15:25 more memchr() woes Uncle George
  -- strict thread matches above, loose matches on Subject: below --
1996-12-19 23:33 Uncle George
1996-12-19 21:45 David Mosberger-Tang

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