[Bug 189805] setenv with value == NULL coredumps on FreeBSD

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Oct 25 02:47:54 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=189805

--- Comment #3 from Garrett Cooper,425-314-3911 <ngie at FreeBSD.org> ---
(In reply to Jilles Tjoelker from comment #2)

An assert and adding behavior so it would return as described in comment # 0
would be better than a segfault. We have a ton of applications at $work that
are multithreaded, and it peeves me off when they segfault and we have to go
track down why.

Dereferencing NULL is inconsistent with other OSes and makes us look silly --
especially when it's not documented.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list