NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
re: kern/45647: kill from ddb broken
The following reply was made to PR kern/45647; it has been noted by GNATS.
From: Jared McNeill <jmcneill%invisible.ca@localhost>
To: matthew green <mrg%eterna.com.au@localhost>
Cc: gnats-bugs%NetBSD.org@localhost, kern-bug-people%netbsd.org@localhost,
gnats-admin%netbsd.org@localhost,
netbsd-bugs%netbsd.org@localhost
Subject: re: kern/45647: kill from ddb broken
Date: Thu, 1 Dec 2011 07:18:43 -0500 (EST)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
You could probably just mutex_tryenter(&proc_lock) and print a message if
it fails.
On Thu, 1 Dec 2011, matthew green wrote:
>
>> Trying to kill a process from ddb fails:
>>
>> db{1}> kill 0t507
>> Skipping crash dump on recursive panic
>> panic: kernel diagnostic assertion "mutex_owned(proc_lock)" failed: file
>> "../../../../kern/kern_proc.c", line 590
>
> this is non trivial to solve.
>
> simply taking proc_lock (and more!) isn't going to work if some cpu
> was stopped mid-lock of these.
>
> perhaps a solution would be to have ddb create a thread that will go
> away that will send the signal asap...
>
>
> .mrg.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (NetBSD)
iQEcBAEBAgAGBQJO13CjAAoJEKdMfxFXhnem9X4H/32c6aj8urcvgjuUmVDzgWZN
WtmhiUafeJqlQ6aoeQpxJrj17tYrTWO5vtQ8/12/2h47kzc1hC3uubGG+RDOY6ci
kyaaBmJKiZ6tQ74BtOOvs/4tYfqHFq5rS1bQLsF4t+Z/UPUpqvT8+Zgn6iVPVw0c
1dMXGlugVDJ5kOGtjkBxe1npY7AVmGQmR7ayv8A30ID6Dx3BUGyzX/pMXtkboAGQ
mEV7tG3AcpvQSTspe6zIzAqXnua3pZxjdb4/B1YOqzr8Z+F+Y0Sd5ZO5SFTwFDSa
cM2vtOk/LSvTCwmA+ZSEY6WVzhFSabO9M4wSMtjTXdLWzkX7bQwIJWHDkuoKTE4=
=pnQa
-----END PGP SIGNATURE-----
Home |
Main Index |
Thread Index |
Old Index