Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
If the scheduler daemon is started and stopped, even without any other
activity in between, a segmentation fault occurs. Several copies of
the daemon are stuck and left running, as well. ADDITIONAL
INFORMATION: $ make start stop LD_LIBRARY_PATH=./../../usr/lib
./tmp/scheduler -c ./etc/scheduler.xml start using config file
'./etc/scheduler.xml' sleep 2 LD_LIBRARY_PATH=./../../usr/lib
./tmp/scheduler -c ./etc/scheduler.xml stop using config file
'./etc/scheduler.xml' make: *** [stop] Segmentation fault $ $ ps
ax | grep sch 6305 pts1 S 0:00 ./tmp/scheduler -c
./etc/scheduler.xml start 6306 pts1 S 0:00 ./tmp/scheduler
-c ./etc/scheduler.xml start 6314 pts1 S 0:00
./tmp/scheduler -c ./etc/scheduler.xml start 6315 ? S
0:00 ./tmp/scheduler -c ./etc/scheduler.xml start 6331 pts1 S
0:00 grep sch $
activity in between, a segmentation fault occurs. Several copies of
the daemon are stuck and left running, as well. ADDITIONAL
INFORMATION: $ make start stop LD_LIBRARY_PATH=./../../usr/lib
./tmp/scheduler -c ./etc/scheduler.xml start using config file
'./etc/scheduler.xml' sleep 2 LD_LIBRARY_PATH=./../../usr/lib
./tmp/scheduler -c ./etc/scheduler.xml stop using config file
'./etc/scheduler.xml' make: *** [stop] Segmentation fault $ $ ps
ax | grep sch 6305 pts1 S 0:00 ./tmp/scheduler -c
./etc/scheduler.xml start 6306 pts1 S 0:00 ./tmp/scheduler
-c ./etc/scheduler.xml start 6314 pts1 S 0:00
./tmp/scheduler -c ./etc/scheduler.xml start 6315 ? S
0:00 ./tmp/scheduler -c ./etc/scheduler.xml start 6331 pts1 S
0:00 grep sch $
instances after they're not needed (unfortunately one won't die
graceully): killall scheduler; sleep 2; killall -9 scheduler
now the problem is fixed. the reason for the bug was that the
scheduler threads were created before deamonizing the SchedulerDaemon,
and thus got detached, and could not be joined any more.