[Bug 215715] cond_test:cond_timedwait_race crashes with SIGSEGV periodically

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jan 2 17:59:08 UTC 2017


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

Ngie Cooper <ngie at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kib at FreeBSD.org

--- Comment #1 from Ngie Cooper <ngie at FreeBSD.org> ---
Looks like an issue with the gettimeofday change when calculating the result of
binuptime:

Standard output

   Test case did not write anything to stdout.

Standard error

 Process with PID 7058 exited with signal 11 and dumped core; attempting to
gather stack trace
 [New LWP 100585]
 [New LWP 100200]
 [New LWP 100586]
 [New LWP 100587]
 [New LWP 100595]
 [New LWP 100599]
 [New LWP 100607]
 Core was generated by `/usr/tests/lib/libthr/cond_test
-vunprivileged-user=tests -r/tmp/kyua.e5qVqp/6/r'.
 Program terminated with signal SIGSEGV, Segmentation fault.
 #0  __vdso_gettc (th=, tc=) at
/usr/src/svn/lib/libc/x86/sys/__vdso_gettc.c:231
 231                     *tc = *(volatile uint32_t *)(hpet_dev_map +
HPET_MAIN_COUNTER);
 [Current thread is 1 (LWP 100585)]
 #0  __vdso_gettc (th=, tc=) at
/usr/src/svn/lib/libc/x86/sys/__vdso_gettc.c:231
 #1  0x0000000800da3785 in tc_delta (th=0x3, delta=) at
/usr/src/svn/lib/libc/sys/__vdso_gettimeofday.c:43
 #2  binuptime (bt=, tk=, abs=1) at
/usr/src/svn/lib/libc/sys/__vdso_gettimeofday.c:74
 #3  0x0000000800da38b6 in __vdso_clock_gettime (clock_id=0, ts=0x7fffdfffdf90)
at /usr/src/svn/lib/libc/sys/__vdso_gettimeofday.c:149
 #4  0x0000000800da3001 in __clock_gettime (clock_id=0, ts=0x7fffdfffdf90) at
/usr/src/svn/lib/libc/sys/clock_gettime.c:46
 #5  0x000000000040267d in pthread_cond_timedwait_func (arg=) at
/usr/src/svn/contrib/netbsd-tests/lib/libpthread/t_cond.c:316
 #6  0x0000000800a44ba5 in thread_start (curthread=) at
/usr/src/svn/lib/libthr/thread/thr_create.c:289
 #7  0x0000000000000000 in ?? ()
 Backtrace stopped: Cannot access memory at address 0x7fffdfffe000
 GDB exited successfully
 Files left in work directory after failure: cond_test.core

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


More information about the freebsd-testing mailing list