vmspace_fork()

Vijay Singh vijju.singh at gmail.com
Tue Apr 23 17:52:30 UTC 2013


Hackers, what does hitting the following assert in vmspace_fork() imply?

 3101 <http://fxr.watson.org/fxr/source/vm/vm_map.c#L3101>
new_map = &vm2 <http://fxr.watson.org/fxr/ident?im=3;i=vm2>->vm_map
<http://fxr.watson.org/fxr/ident?im=3;i=vm_map>;
 3102 <http://fxr.watson.org/fxr/source/vm/vm_map.c#L3102>
locked <http://fxr.watson.org/fxr/ident?im=3;i=locked> =
vm_map_trylock <http://fxr.watson.org/fxr/ident?im=3;i=vm_map_trylock>(new_map);
*/* trylock to silence WITNESS */*
 3103 <http://fxr.watson.org/fxr/source/vm/vm_map.c#L3103>
KASSERT <http://fxr.watson.org/fxr/ident?im=3;i=KASSERT>(locked
<http://fxr.watson.org/fxr/ident?im=3;i=locked>, (*"vmspace_fork: lock
failed"*));

I am hitting the assert in line 3103 and it seems like the assumption
is that the trylock will

always get the lock?

-vijay


More information about the freebsd-hackers mailing list