Actions
Bug #13838
openBug #13837: Race condition synchronously enabling "svccfg add"-ed instance
Race condition adding services crashes startd
Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
Description
While trying to debug https://www.illumos.org/issues/13837 (which is worth reading, for background), I managed to trigger a (reproducible!) assertion error in startd.
TL;DR:
$ svccfg import <manifest> $ svccfg -s <service FMRI> add <instance> $ svcadm enable -t <instance FMRI>
In a tight loop caused an assertion to fail in startd:
"Assertion failed: 0, file restarter.c, line 532", which refers to "usr/src/cmd/svc/startd/restarter.c".
I've attached a shell script, manifest file, and core dump of startd. As a warning: Running these reproducers will crash startd, so make sure you're on a machine where you can access the console to recover.
Files
Actions