Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/kern



On Sat, Apr 16, 2011 at 08:39:19PM +0000, Mindaugas Rasiukevicius wrote:
> Module Name:  src
> Committed By: rmind
> Date:         Sat Apr 16 20:39:18 UTC 2011
> 
> Modified Files:
>       src/sys/kern: uipc_sem.c
> 
> Log Message:
> - Add nsems_total and track the use of all semaphores (not only named ones).
>   Prevents ksem module from unloading while anonymous semaphore(s) are in use.
> - ksem_free: add few asserts.

Hmm. One of these assertions seems to go off:

Test case: lib/semaphore/pthread/t_sem_pth/named
Termination reason

FAILED: Test program received signal 6 (core dumped)
Standard output stream

panic: kernel diagnostic assertion "ks->ks_ref == 0" failed: file
"/bracket/i386/work/2011.04.17.00.37.49/src/sys/rump/kern/lib/libksem/../../../../kern/uipc_sem.c",
line 315
rump kernel halting...
halted

Standard error stream

Test program crashed; attempting to get stack trace
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
Core was generated by `t_sem_pth'.
Program terminated with signal 6, Aborted.
#0  0xbbae5e67 in _lwp_kill () from /usr/lib/libc.so.12
#0  0xbbae5e67 in _lwp_kill () from /usr/lib/libc.so.12
#1  0xbbae5e25 in raise () from /usr/lib/libc.so.12
#2  0xbbae55fa in abort () from /usr/lib/libc.so.12
#3  0xbbb20040 in rumpuser_exit () from /usr/lib/librumpuser.so.0
#4  0xbbbadfea in rumpns_cpu_reboot () from /usr/lib/librump.so.0
#5  0xbbb84108 in rumpns_panic () from /usr/lib/librump.so.0
#6  0xbbb6bf13 in rumpns_kern_assert () from /usr/lib/librump.so.0
#7  0xbbbe2a96 in rumpns_sys__ksem_post () from /usr/lib/librumpkern_ksem.so.0
#8  0xbbbe2fb5 in rumpns_do_ksem_open () from /usr/lib/librumpkern_ksem.so.0
#9  0xbbbe31f9 in rumpns_sys__ksem_open () from /usr/lib/librumpkern_ksem.so.0
#10 0xbbba466f in rumpns_sys_unmount () from /usr/lib/librump.so.0
#11 0xbbba6b76 in rump___sysimpl__ksem_open () from /usr/lib/librump.so.0
#12 0xbbb0e480 in sem_open () from /usr/lib/libpthread.so.1
#13 0x08049ddd in atfu_named_body ()
#14 0x0804c43b in atf_tc_run ()
#15 0x0804b28c in atf_tp_main ()
#16 0x080497f2 in main ()
Stack trace complete

See:

http://www.gson.org/netbsd/bugs/build/build/2011.04.17.00.37.49/test.html#lib_semaphore_pthread_t_sem_pth_named

- Jukka.


Home | Main Index | Thread Index | Old Index