Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* "unimplemented OSF mmap flags 0201"
@ 1998-11-15 23:25 furio ercolessi
  1998-11-16  0:06 ` furio ercolessi
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: furio ercolessi @ 1998-11-15 23:25 UTC (permalink / raw)
  To: axp-list; +Cc: furio

I am trying to build sendmail 8.9.1 with Berkeley db 2.5.9 (from
SleepyCat) on a stock RH 5.2 system (2.0.35, glibc 2.0.7-29,
egcs 1.0.3).

It apparently works, but I get messages
	kernel: sendmail: unimplemented OSF mmap flags 0201
in /var/log/messages, apparently every time sendmail starts.
This does not happen when I use the standard libdb included
with glibc.

I had a brief email exchange with SleepyCat, and they say
that, most likely, Alpha Linux states in some include file 
that these flags are supported, while in reality they are not.
I found a similar comment in a very old message in the archives:
http://archive.redhat.com/axp-list/1996/1996-November/0275.html

So I made a little research. The offending message comes from function
osf_mmap in arch/alpha/kernel/osf_sys.c :
[...]
if (flags & (MAP_HASSEMAPHORE | MAP_INHERIT | MAP_UNALIGNED))
	printk("%s: unimplemented OSF mmap flags %04lx\n", current->comm, flags);
[...]
and include/asm-alpha/mman.h contains
#define MAP_HASSEMAPHORE 0x0200
#define MAP_INHERIT      0x0400
#define MAP_UNALIGNED    0x0800
so my case (0201) should have to do with MAP_HASSEMAPHORE.
The db software indeed checks if this variable is defined
(in os/os_map.c), and calls the mmap function with modified
flags if it is.  mmap(2) does not mention MAP_HASSEMAPHORE
among the supported flags.

To summarize, it appears to me that include/asm-alpha/mman.h
is indeed faulty in defining things which are not really
supported in glibc, thus causing kernel error messages and
perhaps misfunctioning applications.
If all this is true, include/asm-alpha/mman.h should be
modified in the next kernel distributions, removing these
three definitions.

furio ercolessi
Spin 
Trieste (Italy)


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

* Re: "unimplemented OSF mmap flags 0201"
  1998-11-15 23:25 "unimplemented OSF mmap flags 0201" furio ercolessi
@ 1998-11-16  0:06 ` furio ercolessi
  1998-11-16  5:17 ` Matti Aarnio
  1998-11-28 20:50 ` Using non-parity RAM in AS200? John Scott
  2 siblings, 0 replies; 5+ messages in thread
From: furio ercolessi @ 1998-11-16  0:06 UTC (permalink / raw)
  To: axp-list; +Cc: furio

> I am trying to build sendmail 8.9.1 with Berkeley db 2.5.9 (from
> SleepyCat) on a stock RH 5.2 system (2.0.35, glibc 2.0.7-29,
> egcs 1.0.3).
> 
> It apparently works, but I get messages
> 	kernel: sendmail: unimplemented OSF mmap flags 0201
> in /var/log/messages, apparently every time sendmail starts.

My previous mail contains a diagnosis, here is a workaround on Berkeley DB
which effectively suppresses the spurious error messages.  
Just comment out the lines:

#ifdef MAP_HASSEMAPHORE
	if (!is_rdonly)
		flags |= MAP_HASSEMAPHORE;
#endif

in file os/os_map.c in the Berkeley db sources (tested on 2.5.9),
and then rebuild db and sendmail.

furio ercolessi
Spin - Trieste (Italy)


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

* Re: "unimplemented OSF mmap flags 0201"
  1998-11-15 23:25 "unimplemented OSF mmap flags 0201" furio ercolessi
  1998-11-16  0:06 ` furio ercolessi
@ 1998-11-16  5:17 ` Matti Aarnio
  1998-11-16  9:43   ` furio ercolessi
  1998-11-28 20:50 ` Using non-parity RAM in AS200? John Scott
  2 siblings, 1 reply; 5+ messages in thread
From: Matti Aarnio @ 1998-11-16  5:17 UTC (permalink / raw)
  To: axp-list; +Cc: furio

> I am trying to build sendmail 8.9.1 with Berkeley db 2.5.9 (from
> SleepyCat) on a stock RH 5.2 system (2.0.35, glibc 2.0.7-29,
> egcs 1.0.3).
> 
> It apparently works, but I get messages
> 	kernel: sendmail: unimplemented OSF mmap flags 0201
> in /var/log/messages, apparently every time sendmail starts.
> This does not happen when I use the standard libdb included
> with glibc.

	glibc's locale stuff uses  MMAP_INHERIT flag, and
	the kernels *warn* about it.   That happens *only*
	when you have  LC_CTYPE set to something.

	Comment the printk() away, and be happy.
	(It is already commented away in the lattest 2.1.* kernels.)

	The use of that flag will go off once the glibc is compiled
	against sufficiently new kernel header files, but 2.0.*
	glibc SRPMs use a bit oldish headers with that flag in.

....
> If all this is true, include/asm-alpha/mman.h should be
> modified in the next kernel distributions, removing these
> three definitions.

	They were modified about a year ago.

> furio ercolessi
> Spin 
> Trieste (Italy)

/Matti Aarnio <matti.aarnio@sonera.fi>


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

* Re: "unimplemented OSF mmap flags 0201"
  1998-11-16  5:17 ` Matti Aarnio
@ 1998-11-16  9:43   ` furio ercolessi
  0 siblings, 0 replies; 5+ messages in thread
From: furio ercolessi @ 1998-11-16  9:43 UTC (permalink / raw)
  To: matti.aarnio; +Cc: axp-list, furio

> 	glibc's locale stuff uses  MMAP_INHERIT flag, and
> 	the kernels *warn* about it.   That happens *only*
> 	when you have  LC_CTYPE set to something.

MMAP_INHERIT is one of the three "offending" flags.   The other
two are MAP_HASSEMAPHORE and MAP_UNALIGNED.  The db problem is
caused by MAP_HASSEMAPHORE, and I believe it happens on any
system with vanilla settings.

> 	Comment the printk() away, and be happy.
> 	(It is already commented away in the lattest 2.1.* kernels.)

I can do that, and in fact it is essentially what I did, even
if acting on the application rather than on the kernel.
But in principle one can envision situations where an application
may fail because it relies on services (whatever they are, and
I don't know what they are!) declared in the headers but actually
unavailable.

> > If all this is true, include/asm-alpha/mman.h should be
> > modified in the next kernel distributions, removing these
> > three definitions.
> 
> 	They were modified about a year ago.

Then apparently the modification didn't find its way into
2.0.35.... perhaps we can hope for 2.0.36 or is it too late?

furio ercolessi
Spin
Trieste (Italy)


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

* Using non-parity RAM in AS200?
  1998-11-15 23:25 "unimplemented OSF mmap flags 0201" furio ercolessi
  1998-11-16  0:06 ` furio ercolessi
  1998-11-16  5:17 ` Matti Aarnio
@ 1998-11-28 20:50 ` John Scott
  2 siblings, 0 replies; 5+ messages in thread
From: John Scott @ 1998-11-28 20:50 UTC (permalink / raw)
  To: axp-list

Has anyone come across any information about using non-parity ram in a
AS200?

I have heard that there is a way to do this, but have not been able to
verify how, or if it really works.

-John Scott


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

end of thread, other threads:[~1998-11-28 20:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-15 23:25 "unimplemented OSF mmap flags 0201" furio ercolessi
1998-11-16  0:06 ` furio ercolessi
1998-11-16  5:17 ` Matti Aarnio
1998-11-16  9:43   ` furio ercolessi
1998-11-28 20:50 ` Using non-parity RAM in AS200? John Scott

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