mailing list of musl libc
 help / color / mirror / code / Atom feed
* pthread_getattr_np doing loads of mremaps on ARM, MIPS under QEMU user-mode
@ 2017-06-15 13:08 Tobias Koch
  2017-06-15 14:19 ` Rich Felker
  0 siblings, 1 reply; 6+ messages in thread
From: Tobias Koch @ 2017-06-15 13:08 UTC (permalink / raw)
  To: musl

Hi,

running under QEMU user mode, Ruby 2.4 (and it seems also Guile) ARM and 
MIPS binaries take a long time to start and eventually crash. The long 
startup seems to come from this loop

   while (mremap(p-l-PAGE_SIZE, PAGE_SIZE, 2*PAGE_SIZE, 0)==MAP_FAILED 
&& errno==ENOMEM)
           l += PAGE_SIZE;

being executed hundreds of times in pthread_getattr_np. Any idea what 
this could be about except from maybe being a QEMU bug?

The subsequent crash then occurs after memory set aside by alloca is 
accessed. I think this may be unrelated.

Tobias


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

end of thread, other threads:[~2017-06-24 22:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-15 13:08 pthread_getattr_np doing loads of mremaps on ARM, MIPS under QEMU user-mode Tobias Koch
2017-06-15 14:19 ` Rich Felker
2017-06-15 20:01   ` Tobias Koch
2017-06-21  0:41     ` Rich Felker
2017-06-24 22:05       ` Tobias Koch
2017-06-24 22:18         ` Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).