Date: Fri, 10 Dec 2021 14:51:49 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 260303] lang/sdcc: seg fault during build (ASLR fallout) Message-ID: <bug-260303-7788-ynkhhrmhUS@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-260303-7788@https.bugs.freebsd.org/bugzilla/> References: <bug-260303-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260303 Dimitry Andric <dim@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Andrew@FreeBSD.org --- Comment #3 from Dimitry Andric <dim@FreeBSD.org> --- I'm testing Andrew's suggestion of: diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c index 793ded63d91c..8ee98473159c 100644 --- a/sys/kern/kern_resource.c +++ b/sys/kern/kern_resource.c @@ -672,8 +672,12 @@ kern_proc_setrlimit(struct thread *td, struct proc *p, u_int which, if (limp->rlim_max < 0) limp->rlim_max =3D RLIM_INFINITY; - if (which =3D=3D RLIMIT_STACK && limp->rlim_cur !=3D RLIM_INFINITY) - limp->rlim_cur +=3D p->p_vmspace->vm_stkgap; + if (which =3D=3D RLIMIT_STACK) { + if (limp->rlim_cur !=3D RLIM_INFINITY) + limp->rlim_cur +=3D p->p_vmspace->vm_stkgap; + if (limp->rlim_max !=3D RLIM_INFINITY) + limp->rlim_max +=3D p->p_vmspace->vm_stkgap; + } oldssiz.rlim_cur =3D 0; newlim =3D lim_alloc(); --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-260303-7788-ynkhhrmhUS>