Page MenuHomeFreeBSD

D35537.id107211.diff
No OneTemporary

D35537.id107211.diff

Index: sys/compat/linprocfs/linprocfs.c
===================================================================
--- sys/compat/linprocfs/linprocfs.c
+++ sys/compat/linprocfs/linprocfs.c
@@ -1307,7 +1307,13 @@
VM_MAP_ENTRY_FOREACH(entry, map) {
name = "";
freename = NULL;
- if (entry->eflags & MAP_ENTRY_IS_SUB_MAP)
+ /*
+ * Skip printing of the guard page of the stack region, as
+ * it confuses glibc pthread_getattr_np() method, where both
+ * the base address and size of the stack of the initial thread
+ * are calculated.
+ */
+ if ((entry->eflags & (MAP_ENTRY_IS_SUB_MAP | MAP_ENTRY_GUARD)) != 0)
continue;
e_prot = entry->protection;
e_start = entry->start;

File Metadata

Mime Type
text/plain
Expires
Wed, Oct 14, 5:20 PM (1 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40810693
Default Alt Text
D35537.id107211.diff (693 B)

Event Timeline