unlimit stacksize -> segfault in binaries linked to libpthread

Sergey Svishchev <[email protected]> Sat, 7 Jan 2012 13:16:12 +0400
Newsgroups gmane.os.netbsd.ports.hp700
Message-ID <[email protected]>
--8t9RHnE3ZwKMSgU+
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello,

(5.99.59 snapshot from Dec 22)

Old-style bulk build unlimits stacksize and thus cannot build or run perl.

How to demo (as root):

# ulimit -s
2048
# ulimit -s unlimited
# ulimit -s
262144

# named-checkconf
Memory fault (core dumped)

# ktruss named-checkconf
<...>
 24124      1 named-checkconf getrlimit(0x3, 0x700025d8) =3D 0
 24124      1 named-checkconf mprotect(0x80000000, 0x10000000, 0x3) =3D 0
 24124      1 named-checkconf SIGSEGV SIG_DFL

--=20
Sergey Svishchev

--8t9RHnE3ZwKMSgU+
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Comment: ''

iEYEARECAAYFAk8IDVsACgkQ3P+wmuUns7UYoACfYk+3wesWEzsHICwOjBkktNFH
uvwAn2x3T1iQ2BPqktFqQIU3EISf3uRr
=TnNr
-----END PGP SIGNATURE-----

--8t9RHnE3ZwKMSgU+--