All of lore.kernel.org
 help / color / mirror / Atom feed
* mmap problem in localedef
@ 2016-12-05 11:36 Meelis Roos
  2016-12-05 18:10 ` Aaro Koskinen
  0 siblings, 1 reply; 22+ messages in thread
From: Meelis Roos @ 2016-12-05 11:36 UTC (permalink / raw)
  To: linux-parisc

I noticed that locale-gen fails to work on my gentoo. Before reporting 
to getnoo I tried to understand whether there is something specific to 
parisc and here is the relevant part of strace from localedef 
invocation:

1761  open("//usr/lib/locale/locale-archive.yvHI9a", O_RDWR|O_CREAT|O_EXCL, 0600) = 3
1761  write(3, "\336\2\1\t\0\0\0\0\0\0\0008\0\0\0\0\0\0\3\213\0\0*\274\0\0\0\0\0\0\35L"..., 56) = 56
1761  ftruncate64(3, 103860)            = 0
1761  mmap2(NULL, 536870912, PROT_NONE, MAP_SHARED, 3, 0) = 0xd79bd000
1761  mmap2(0xd7c00000, 103860, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_FIXED, 3, 0) = -1 EINVAL (Invalid argument)
1761  unlink("//usr/lib/locale/locale-archive.yvHI9a") = 0
1761  write(2, "cannot map archive header", 25) = 25
1761  write(2, ": Invalid argument", 18) = 18
1761  write(2, "\n", 1)                 = 1
1761  exit_group(1)                     = ?

Do I read it correctly that it creates PROT_NONE mapping on file opened 
O_RDWR, then tries to create a PROT_READ|PROT_WRITE mapping from the 
same file at fixed location and fails?

Why should it fail - because the fixed location is not suitable?

-- 
Meelis Roos (mroos@linux.ee)

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

end of thread, other threads:[~2017-04-16 19:22 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-05 11:36 mmap problem in localedef Meelis Roos
2016-12-05 18:10 ` Aaro Koskinen
2016-12-05 18:49   ` John David Anglin
2016-12-05 20:58     ` Aaro Koskinen
2016-12-05 21:17       ` John David Anglin
2016-12-05 23:50         ` John David Anglin
2017-04-01 18:37           ` Aaro Koskinen
2017-04-01 18:41             ` Rolf Eike Beer
2017-04-01 19:10               ` Aaro Koskinen
2017-04-02 14:08                 ` John David Anglin
2017-04-02 19:12                   ` Aaro Koskinen
2017-04-02 19:49                     ` John David Anglin
2017-04-02 20:13                       ` John David Anglin
2017-04-02 20:55                         ` John David Anglin
2017-04-02 21:45                       ` John David Anglin
2017-04-05 23:03                     ` John David Anglin
2017-04-11 12:01                       ` John David Anglin
2017-04-11 13:57                         ` Rolf Eike Beer
2017-04-16 19:22                           ` John David Anglin
2017-04-01 19:20             ` John David Anglin
2016-12-05 21:12     ` Meelis Roos
2016-12-05 21:17       ` Jeroen Roovers

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.