Bug 590147 - quickly killing condor_configd results in an exception when service is already deleted
quickly killing condor_configd results in an exception when service is alread...
Status: CLOSED CURRENTRELEASE
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: condor-wallaby-client (Show other bugs)
Development
All Linux
low Severity low
: 1.3
: ---
Assigned To: Robert Rati
Lubos Trilety
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-07 16:29 EDT by Matthew Farrellee
Modified: 2010-10-21 14:45 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-10-21 14:45:00 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Matthew Farrellee 2010-05-07 16:29:41 EDT
Terminal one, start configd -

$ _CONDOR_QMF_BROKER_HOST=localhost _CONDOR_QMF_CONFIGD_LOG=configd.log ./condor_configd          
Traceback (most recent call last):
  File "./condor_configd", line 364, in ?
    sys.exit(main())
  File "./condor_configd", line 352, in main
    service.setup_timers()
NameError: global name 'service' is not defined

Terminal two, killall -v condor_configd -
 Notice exception in terminal one

From condor_configd -

      # Delay initial checkin after startup
      random.seed()
      time.sleep(random.randint(0, 10))
      service.setup_timers()

and

def exit_signal_handler(signum, frame):                                         
   global service, stop_running

   service.shutdown()
   del service
   logging.shutdown()
   stop_running = True

The exception above happens when the signal handler is called before the sleep returns. This could happen in any place where service is accessed after exit_signal_handler is registered, it is just most likely to happen at service.setup_timers()
If the signal handler is called before the sleep r
Comment 1 Robert Rati 2010-05-12 11:39:21 EDT
Made changes to configd to check whether the service has been deleted before acting upon it.  Have been unable to reproduce since the change.

Fixed in:
condor-wallaby-tools-2.7-1
Comment 2 Lubos Trilety 2010-08-18 04:01:20 EDT
Problem reproduced with (version):
condor-wallaby-client-2.6-0.5

Tested with (version):
condor-wallaby-client-3.4-1

Tested on:
RHEL5 x86_64,i386  - passed

>>> VERIFIED

Note You need to log in before you can comment on or make changes to this bug.