Test case: lib/libc/stdlib/getenv_test:setenv_basic
- Test program: /usr/tests/lib/libc/stdlib/getenv_test
- Result: expected_failure: FreeBSD does not validate the second argument to setenv(3); see bin/189805
- Start time: 2018-05-25T20:13:26.508222Z
- End time: 2018-05-25T20:13:27.285385Z
- Duration: 0.777s
- Execution context
Metadata
- allowed_architectures =
- allowed_platforms =
- description = Test setenv(3), getenv(3), unsetenv(3)
- has_cleanup = false
- is_exclusive = false
- required_configs =
- required_disk_space = 0
- required_files =
- required_memory = 0
- required_programs =
- required_user =
- timeout = 600
Standard output
Test case did not write anything to stdout.
Standard error
Process with PID 41842 exited with signal 11 and dumped core; attempting to gather stack trace
(no debugging symbols found)...Core was generated by `/usr/tests/lib/libc/stdlib/getenv_test -vunprivileged-user=tests -r/tmp/kyua.JMm'.
Program terminated with signal 11, Segmentation fault.
#0 strlen (str=0x0) at /usr/src/lib/libc/string/strlen.c:100
100 /usr/src/lib/libc/string/strlen.c: No such file or directory.
in /usr/src/lib/libc/string/strlen.c
#0 strlen (str=0x0) at /usr/src/lib/libc/string/strlen.c:100
#1 0x281a8a02 in __setenv (name=, nameLen=, value=0x0, overwrite=1)
at /usr/src/lib/libc/stdlib/getenv.c:470
#2 0x281a835e in setenv (name=0x8049d8a "var", value=0x0, overwrite=1) at /usr/src/lib/libc/stdlib/getenv.c:595
#3 0x0804949e in ?? ()
#4 0x08049d8a in ?? ()
#5 0x00000000 in ?? ()
Current language: auto; currently minimal
GDB exited successfully