Bug #410

xadmin stop may hang when ndrxd is doing some internal process restarts - test062

Added by Madars Vitolins about 1 month ago. Updated about 1 month ago.

Status:NewStart date:05/08/2019
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

In this case ndrxd shall not reject the xadmin's commands. As context shall be only present for user calls.

N:NDRX:3:d190fd96: 7780:7f939317f900:000:20190508:155837576:fail_process:pmodel.c:0805:Removing pid's 9329 service [VSZALLOC]
N:NDRX:3:d190fd96: 7780:7f939317f900:000:20190508:155837576:drx_sem_lock:td_sem.c:0182:remove_startfail_process/52068353/0: semaphore locked... 
N:NDRX:3:d190fd96: 7780:7f939317f900:000:20190508:155837576:drx_sem_lock:td_sem.c:0182:VSZALLOC/52068353/8: semaphore locked... 
N:NDRX:5:d190fd96: 7780:7f939317f900:000:20190508:155837576:_shm_get_svc:mi/shm.c:0655:Key for [VSZALLOC] is 18611, shm is: 0x7f9356e7a000
N:NDRX:5:d190fd96: 7780:7f939317f900:000:20190508:155837576:_shm_get_svc:mi/shm.c:0712:ndrx_shm_get_svc [VSZALLOC] - result: 1, iterations: 0, pos: 18611, install: 0
N:NDRX:5:d190fd96: 7780:7f939317f900:000:20190508:155837576:ninstall_svc:mi/shm.c:1072:Removing service from shared mem [VSZALLOC]
N:NDRX:3:d190fd96: 7780:7f939317f900:000:20190508:155837576:x_sem_unlock:td_sem.c:0225:VSZALLOC/52068353/8 semaphore un-locked
N:NDRX:5:d190fd96: 7780:7f939317f900:000:20190508:155837576:fail_process:pmodel.c:0825:Service [VSZALLOC] will be zapped by RQADDR sanity checks
N:NDRX:3:d190fd96: 7780:7f939317f900:000:20190508:155837576:x_sem_unlock:td_sem.c:0225:remove_startfail_process/52068353/0 semaphore un-locked
N:NDRX:5:d190fd96: 7780:7f939317f900:000:20190508:155837576:vc_from_hash:bridge.c:0505:brd_del_svc_from_hash - enter
N:NDRX:5:d190fd96: 7780:7f939317f900:000:20190508:155837576:_from_hash_g:bridge.c:0456:Service [VSZALLOC] does not exists in diff hash - adding
N:NDRX:5:d190fd96: 7780:7f939317f900:000:20190508:155837576:_from_hash_g:bridge.c:0446:bridge view: svc [VSZALLOC] removed
N:NDRX:3:d190fd96: 7780:7f939317f900:000:20190508:155837576:cmd_notify  :rtstop.c:0200:cmd_notify returns with status 0
N:NDRX:5:d190fd96: 7780:7f939317f900:000:20190508:155837576:stop_process:pmodel.c:1276:stop_process: Exit (0)
N:NDRX:3:d190fd96: 7780:7f939317f900:000:20190508:155837576:tart_process:pmodel.c:0885:*********processing for startup atmi.sv62/10*********
N:NDRX:5:d190fd96: 7780:7f939317f900:000:20190508:155837576:fork_prepare:qevent.c:1226:Preparing System V Aux thread for fork
N:NDRX:5:d190fd96: 7780:7f939317f900:000:20190508:155837576:q_event_exit:qevent.c:1190:Terminating event thread...
N:NDRX:5:d190fd96: 7780:7f939317f900:000:20190508:155837576:q_event_exit:qevent.c:1199:Join evthread...
N:NDRX:5:d190fd96: 7780:7f938e764300:000:20190508:155837576:meout_thread:qevent.c:0935:poll() ret = 1
N:NDRX:5:d190fd96: 7780:7f938e764300:000:20190508:155837576:meout_thread:qevent.c:0981:0 fd=4 revents=1
N:NDRX:5:d190fd96: 7780:7f938e764300:000:20190508:155837576:meout_thread:qevent.c:1001:Got command: 4 (nil) flags=0
N:NDRX:4:d190fd96: 7780:7f938e764300:000:20190508:155837576:meout_thread:qevent.c:1058:Terminate request...
N:NDRX:5:d190fd96: 7780:7f939317f900:000:20190508:155837576:q_event_exit:qevent.c:1201:Join evthread... (done)
N:NDRX:5:d190fd96: 7780:7f939317f900:000:20190508:155837576:_fork_resume:qevent.c:1284:Restoring System V Aux thread after fork 7780
N:NDRX:5:d190fd96: 7780:7f939317f900:000:20190508:155837577:_fork_resume:qevent.c:1331:System V Monitoring pipes fd read:4 write:5
N:NDRX:5:d190fd96: 7780:7f939317f900:000:20190508:155837577:_to_pid_hash:pmodel.c:0438:About to add pid 9346
N:NDRX:5:d190fd96: 7780:7f939317f900:000:20190508:155837577:_to_pid_hash:pmodel.c:0450:Added pid 9346 to hash with key 9346
N:NDRX:5:d190fd96: 7780:7f939317f900:000:20190508:155837577:tart_process:pmodel.c:1116:Waiting for response from srv...
N:NDRX:5:d190fd96: 9346:7f939317f900:000:20190508:155837577:rx_svq_close:ys_svq.c:0080:close 0x55ac49085650 mqd
N:NDRX:4:d190fd96: 9346:7f939317f900:000:20190508:155837577:_moncmd_send:qevent.c:1508:No event thread -> pipe closed.
N:NDRX:5:d190fd96: 7780:7f939317f900:000:20190508:155837577:event_sndrcv:qevent.c:1689:timeout tv_sec=1557320318 tv_nsec=0
N:NDRX:4:d190fd96: 7780:7f939317f900:000:20190508:155837577:wait_and_run:cessor.c:0351:>>>>>>>>>>>>>>>>>>got message, len : 224
N:NDRX:5:d190fd96: 7780:7f939317f900:000:20190508:155837577:wait_and_run:cessor.c:0419:Command ID: 10
N:NDRX:5:d190fd96: 7780:7f939317f900:000:20190508:155837577:wait_and_run:cessor.c:0439:Source: [/dom1,sys,bg,xadmin,9344] Command: 10 Executing command: stop
N:NDRX:3:d190fd96: 7780:7f939317f900:000:20190508:155837577:et_error_fmt:merror.c:0217:NDRXD_set_error_fmt: 13 (NDRXD_ECONTEXT) [Invalid context for command. Current: [,1,] supported: [,0,]]
N:NDRX:5:d190fd96: 7780:7f939317f900:000:20190508:155837577:ommand_reply:_reply.c:0081:Reply command: 11
N:NDRX:5:d190fd96: 7780:7f939317f900:000:20190508:155837577:drx_svq_open:ys_svq.c:0186:enter
N:NDRX:5:d190fd96: 7780:7f939317f900:000:20190508:155837577:ion_get_qstr:svqshm.c:0507:Try key for [/dom1,sys,bg,xadmin,9344] is 15922, shm is: 0x7f938ea73000 oflag: 1
N:NDRX:5:d190fd96: 7780:7f939317f900:000:20190508:155837577:ion_get_qstr:svqshm.c:0595:qstr_position_get [/dom1,sys,bg,xadmin,9344] - result: 1, iterations: 0, pos: 15922, have_value: 1 flags: 3 [/dom1,sys,bg,xadmin,9344]
N:NDRX:5:d190fd96: 7780:7f939317f900:000:20190508:155837577:x_svqshm_get:svqshm.c:0977:Queue [/dom1,sys,bg,xadmin,9344] mapped to qid 1961984000
N:NDRX:5:d190fd96: 7780:7f939317f900:000:20190508:155837577:drx_svq_open:ys_svq.c:0241:return 0x55ac490a8080/94198448160896
N:NDRX:5:d190fd96: 7780:7f939317f900:000:20190508:155837577:event_sndrcv:qevent.c:1689:timeout tv_sec=1557320320 tv_nsec=577938000

xadmin's output:

* Shared resources opened...
* ndrxd PID (from PID file): 7780
fail, code: 13: 13:NDRXD_ECONTEXT (last error 13: Invalid context for command. Current: [,1,] supported: [,0,])
./run.sh: line 70:  9344 Segmentation fault      (core dumped) xadmin stop -y
Enduro/X 6.0.27, build May  8 2019 11:59:25, using SystemV for LINUX (64 bits)

ndrxd.tar.gz (357 KB) Madars Vitolins, 05/08/2019 01:27 PM

History

#1 Updated by Madars Vitolins about 1 month ago

#2 Updated by Madars Vitolins about 1 month ago

  • Subject changed from xadmin stop may hang when ndrxd is doing some internal process restarts to xadmin stop may hang when ndrxd is doing some internal process restarts - test062

Also available in: Atom PDF