Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144327279
D35537.id107237.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
671 B
Referenced Files
None
Subscribers
None
D35537.id107237.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D35537: Skip printing of the guard page in the /proc/self/maps
Attached
Detach File
Event Timeline
Log In to Comment