Swank KILL-THREAD crashes/hangs CCL

Bug #1077683 reported by Robert Brown
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu
Confirmed
Undecided
igor ageev

Bug Description

KILL-THREAD in swank-ccl.lisp calls the internal CCL function
CCL::PROCESS-INITIAL-FORM-EXITED. When running tests on my swank-crew package,
this function causes the x86 Linux version of CCL to crash and the ARM version
to hang. I reported the problem to the CCL maintainers and was informed that
calling CCL::PROCESS-INITIAL-FORM-EXITED is dangerous and should not be done by
user code, since it kills a thread without executing cleanup forms that do
essential things, such as releasing locks. I was told to use CCL:PROCESS-KILL
instead.

If I replace the call to CCL::PROCESS-INITIAL-FORM-EXITED in KILL-THREAD with a
call to CCL:PROCESS-KILL, then my swank-crew tests successfully run to
completion. Unfortunately, I don't know if the change has other unwanted side
effects.

bob

Revision history for this message
Stas Boukarev (stassats) wrote :

One difference I noticed is that I noticed is in the thread status:
(defparameter *thread* (ccl:process-run-function :k (lambda () (sleep 60))))
After killing it with process-kill:
*thread* => #<PROCESS K(42) [Reset] #x302000D6C61D>
and with process-initial-form-exited:
*thread* => #<PROCESS K(49) [Dead] #x302000E7C16D>
I'm not sure what's the significance of this.

affects: slime → ubuntu
Changed in ubuntu:
assignee: nobody → igor ageev (igor-ageev-82)
Changed in ubuntu:
status: New → Fix Committed
status: Fix Committed → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.