Page MenuHomeFreeBSD

D35537.id107237.diff
No OneTemporary

D35537.id107237.diff

diff --git a/sys/compat/linprocfs/linprocfs.c b/sys/compat/linprocfs/linprocfs.c
--- a/sys/compat/linprocfs/linprocfs.c
+++ b/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
Sun, Feb 8, 9:08 PM (13 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28497707
Default Alt Text
D35537.id107237.diff (671 B)

Event Timeline