FreeBSD Bugzilla – Attachment 243288 Details for
Bug 272401
32 bit sysctl KERN_PROC_VM_LAYOUT hangs unkillable with 64 bit kernel
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
sysctl hang test
hang.c (text/plain), 686 bytes, created by
John F. Carr
on 2023-07-07 00:20:30 UTC
(
hide
)
Description:
sysctl hang test
Filename:
MIME Type:
Creator:
John F. Carr
Created:
2023-07-07 00:20:30 UTC
Size:
686 bytes
patch
obsolete
>#include <err.h> >#include <fcntl.h> >#include <stdio.h> >#include <stdlib.h> >#include <string.h> >#include <sysexits.h> >#include <unistd.h> > >#include <sys/mman.h> >#include <sys/param.h> >#include <sys/sysctl.h> >#include <sys/user.h> > >int main(int argc, char *argv[]) >{ > int rv; > size_t len; > int mib[4]; > struct kinfo_vm_layout kvm; > > mib[0] = CTL_KERN; > mib[1] = KERN_PROC; > mib[2] = KERN_PROC_VM_LAYOUT; > mib[3] = getpid(); > len = sizeof(kvm); > > rv = sysctl(mib, nitems(mib), &kvm, &len, NULL, 0); > > if (rv < 0) > err(EX_OSERR, "sysctl"); > > printf("user address range %p..%p\n", > (void *)kvm.kvm_min_user_addr, > (void *)kvm.kvm_max_user_addr); > > exit(0); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 272401
: 243288