ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

panic: MUTEX_LOCK (22) [op.c:352]


  • To: nginx-ru@xxxxxxxxx
  • Subject: panic: MUTEX_LOCK (22) [op.c:352]
  • From: Denis V Seleznyov <denis.seleznyov@xxxxxxxxx>
  • Date: Thu, 28 Aug 2008 01:09:02 +0400
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:mime-version:content-type:content-transfer-encoding :content-disposition:message-id; bh=SFSySPfjpfYisusOtyMAmOBB3kspVOX6+2PT2xMbidM=; b=WPAO7xGTfvplU3iOEUT3irFF20GdJQ8ePT6jC5T++pkBI3sXrSJpO2/P9CQBZTtlb/ AvPuCdUlZ3ZZUCwkaDEW+L09gmDMJZ+Bab3/jmlfCN8ygSLZ32PsWItIC4dt6hrbZRJ9 DvLwR4jkPDmZMTWBna7yLuqgAkBUnSKv0xUH0=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; b=OIJku7ph4YbyqPooecsNy/F9dSxwI3DiENyJ5pbiONZy/HX3uYstHtT0dNrUcGLgLH rLKTfjoNmtsSiSSXQ+ZWAlS6BuRY5R1keoIY/dJKp7Eii3Ao36f20pi9F7xwJua1URQj 328/T0UHAR00wqzaVl4U5ER5mdbDqIVRueU8Q=

Тема уже поднималась около месяца назад, но не получила развития.

Имею сабж в логах при остановке nginx на RHEL5.2 x86_64. Соответственно, не 
работает service nginx stop и service nginx restart. Я не очень ясно 
представляю себе логику работы редхатовского killproc, поэтому не могу 
сказать почему это происходит. Мне вообще особенно не мешает, однако коллеги 
могут нажать restart и не посмотреть, поднялся ли сервис, что грозит 
теоретическими, но большими ягодицами.

В логе:
Start:
2008/08/27 10:14:16 [debug] 25601#0: bind() 0.0.0.0:80 #8
2008/08/27 10:14:16 [notice] 25601#0: using the "epoll" event method
2008/08/27 10:14:16 [debug] 25601#0: counter: 00002B0B0F922080, 1
2008/08/27 10:14:16 [notice] 25601#0: nginx/0.6.32
2008/08/27 10:14:16 [notice] 25601#0: built by gcc 4.1.2 20070626 (Red Hat 
4.1.2-14)
2008/08/27 10:14:16 [notice] 25601#0: OS: Linux 2.6.18-92.el5
2008/08/27 10:14:16 [notice] 25601#0: getrlimit(RLIMIT_NOFILE): 10000:10000
2008/08/27 10:14:16 [debug] 25602#0: write: 9, 00007FFF9B5D3470, 6, 0
2008/08/27 10:14:16 [debug] 25602#0: setproctitle: "nginx: master 
process /usr/sbin/nginx -c /etc/nginx/nginx.conf"
2008/08/27 10:14:16 [notice] 25602#0: start worker processes
2008/08/27 10:14:16 [debug] 25602#0: channel 9:10
2008/08/27 10:14:16 [notice] 25602#0: start worker process 25603
2008/08/27 10:14:16 [debug] 25602#0: sigsuspend
2008/08/27 10:14:16 [debug] 25603#0: malloc: 000000000C828E10:6144
2008/08/27 10:14:16 [debug] 25603#0: malloc: 00002B0B0FE2A010:1310720
2008/08/27 10:14:16 [debug] 25603#0: malloc: 00002B0B0FF6B010:851968
2008/08/27 10:14:16 [debug] 25603#0: malloc: 00002B0B1003C010:851968
2008/08/27 10:14:16 [debug] 25603#0: epoll add event: fd:10 op:1 ev:00000001
2008/08/27 10:14:16 [debug] 25603#0: setproctitle: "nginx: worker process"
2008/08/27 10:14:16 [debug] 25603#0: worker cycle
2008/08/27 10:14:16 [debug] 25603#0: epoll timer: -1

Stop:
2008/08/27 10:14:23 [notice] 25602#0: signal 3 (SIGQUIT) received, shutting 
down
2008/08/27 10:14:23 [debug] 25602#0: wake up
2008/08/27 10:14:23 [debug] 25602#0: child: 0 25603 e:0 t:0 d:0 r:1 j:0
2008/08/27 10:14:23 [debug] 25602#0: sigsuspend
2008/08/27 10:14:23 [debug] 25603#0: epoll: fd:10 ev:0001 d:00002B0B0FE2A0B0
2008/08/27 10:14:23 [debug] 25603#0: channel handler
2008/08/27 10:14:23 [debug] 25603#0: channel: 32
2008/08/27 10:14:23 [debug] 25603#0: channel command: 3
2008/08/27 10:14:23 [debug] 25603#0: channel: -2
2008/08/27 10:14:23 [debug] 25603#0: timer delta: 7035
2008/08/27 10:14:23 [debug] 25603#0: posted events 0000000000000000
2008/08/27 10:14:23 [notice] 25603#0: gracefully shutting down
2008/08/27 10:14:23 [debug] 25603#0: setproctitle: "nginx: worker process is 
shutting down"
2008/08/27 10:14:23 [debug] 25603#0: close listening 0.0.0.0:80 #8
2008/08/27 10:14:23 [notice] 25603#0: exiting
2008/08/27 10:14:23 [debug] 25603#0: flush files
2008/08/27 10:14:23 [debug] 25603#0: run cleanup: 000000000C6D2050
2008/08/27 10:14:23 [debug] 25603#0: run cleanup: 000000000C6D0128
2008/08/27 10:14:23 [debug] 25603#0: cleanup resolver
2008/08/27 10:14:23 [debug] 25603#0: free: 000000000C6CB6F0
2008/08/27 10:14:23 [debug] 25603#0: free: 000000000C6C5610
2008/08/27 10:14:23 [debug] 25603#0: free: 000000000C6C4550
2008/08/27 10:14:23 [debug] 25603#0: free: 000000000C6C3490
2008/08/27 10:14:23 [debug] 25603#0: free: 000000000C6B5A60, unused: 3
2008/08/27 10:14:23 [debug] 25603#0: free: 000000000C6C66D0, unused: 0
2008/08/27 10:14:23 [debug] 25603#0: free: 000000000C6CC700, unused: 0
2008/08/27 10:14:23 [debug] 25603#0: free: 000000000C6D0710, unused: 3648
2008/08/27 10:14:23 [notice] 25603#0: exit
2008/08/27 10:14:23 [notice] 25602#0: signal 17 (SIGCHLD) received
2008/08/27 10:14:23 [notice] 25602#0: worker process 25603 exited with code 0
2008/08/27 10:14:23 [debug] 25602#0: wake up
2008/08/27 10:14:23 [debug] 25602#0: reap children
2008/08/27 10:14:23 [debug] 25602#0: child: 0 25603 e:1 t:1 d:0 r:1 j:0
2008/08/27 10:14:23 [notice] 25602#0: exit
2008/08/27 10:14:23 [debug] 25602#0: run cleanup: 000000000C6D2050
panic: MUTEX_LOCK (22) [op.c:352].
(процесс умирает самостоятельно)



Те же start и stop nginx собранного без perl:
2008/08/27 16:58:13 [debug] 26809#0: bind() 0.0.0.0:80 #8
2008/08/27 16:58:13 [notice] 26809#0: using the "epoll" event method
2008/08/27 16:58:13 [debug] 26809#0: counter: 00002AF96684C080, 1
2008/08/27 16:58:13 [notice] 26809#0: nginx/0.6.32
2008/08/27 16:58:13 [notice] 26809#0: built by gcc 4.1.2 20070626 (Red Hat 
4.1.2-14)
2008/08/27 16:58:13 [notice] 26809#0: OS: Linux 2.6.18-92.el5
2008/08/27 16:58:13 [notice] 26809#0: getrlimit(RLIMIT_NOFILE): 10000:10000
2008/08/27 16:58:13 [debug] 26810#0: write: 9, 00007FFF4425D270, 6, 0
2008/08/27 16:58:13 [debug] 26810#0: setproctitle: "nginx: master 
process /usr/sbin/nginx -c /etc/nginx/nginx.conf"
2008/08/27 16:58:13 [notice] 26810#0: start worker processes
2008/08/27 16:58:13 [debug] 26810#0: channel 9:10
2008/08/27 16:58:13 [notice] 26810#0: start worker process 26811
2008/08/27 16:58:13 [debug] 26810#0: sigsuspend
2008/08/27 16:58:13 [debug] 26811#0: malloc: 0000000003D8B1B0:6144
2008/08/27 16:58:13 [debug] 26811#0: malloc: 00002AF966F84010:1310720
2008/08/27 16:58:13 [debug] 26811#0: malloc: 00002AF9670C5010:851968
2008/08/27 16:58:13 [debug] 26811#0: malloc: 00002AF967196010:851968
2008/08/27 16:58:13 [debug] 26811#0: epoll add event: fd:10 op:1 ev:00000001
2008/08/27 16:58:13 [debug] 26811#0: setproctitle: "nginx: worker process"
2008/08/27 16:58:13 [debug] 26811#0: worker cycle
2008/08/27 16:58:13 [debug] 26811#0: epoll timer: -1

2008/08/27 16:58:16 [notice] 26810#0: signal 3 (SIGQUIT) received, shutting 
down
2008/08/27 16:58:16 [debug] 26810#0: wake up
2008/08/27 16:58:16 [debug] 26810#0: child: 0 26811 e:0 t:0 d:0 r:1 j:0
2008/08/27 16:58:16 [debug] 26810#0: sigsuspend
2008/08/27 16:58:16 [debug] 26811#0: epoll: fd:10 ev:0001 d:00002AF966F840B0
2008/08/27 16:58:16 [debug] 26811#0: channel handler
2008/08/27 16:58:16 [debug] 26811#0: channel: 32
2008/08/27 16:58:16 [debug] 26811#0: channel command: 3
2008/08/27 16:58:16 [debug] 26811#0: channel: -2
2008/08/27 16:58:16 [debug] 26811#0: timer delta: 3347
2008/08/27 16:58:16 [debug] 26811#0: posted events 0000000000000000
2008/08/27 16:58:16 [notice] 26811#0: gracefully shutting down
2008/08/27 16:58:16 [debug] 26811#0: setproctitle: "nginx: worker process is 
shutting down"
2008/08/27 16:58:16 [debug] 26811#0: close listening 0.0.0.0:80 #8
2008/08/27 16:58:16 [notice] 26811#0: exiting
2008/08/27 16:58:16 [debug] 26811#0: flush files
2008/08/27 16:58:16 [debug] 26811#0: run cleanup: 0000000003CD8FA8
2008/08/27 16:58:16 [debug] 26811#0: cleanup resolver
2008/08/27 16:58:16 [debug] 26811#0: free: 0000000003CD4660
2008/08/27 16:58:16 [debug] 26811#0: free: 0000000003CCE580
2008/08/27 16:58:16 [debug] 26811#0: free: 0000000003CCD4C0
2008/08/27 16:58:16 [debug] 26811#0: free: 0000000003CCC400
2008/08/27 16:58:16 [debug] 26811#0: free: 0000000003CBE9D0, unused: 7
2008/08/27 16:58:16 [debug] 26811#0: free: 0000000003CCF640, unused: 0
2008/08/27 16:58:16 [debug] 26811#0: free: 0000000003CD5670, unused: 6
2008/08/27 16:58:16 [debug] 26811#0: free: 0000000003CD9680, unused: 3912
2008/08/27 16:58:16 [notice] 26811#0: exit
2008/08/27 16:58:16 [notice] 26810#0: signal 17 (SIGCHLD) received
2008/08/27 16:58:16 [notice] 26810#0: worker process 26811 exited with code 0
2008/08/27 16:58:16 [debug] 26810#0: wake up
2008/08/27 16:58:16 [debug] 26810#0: reap children
2008/08/27 16:58:16 [debug] 26810#0: child: 0 26811 e:1 t:1 d:0 r:1 j:0
2008/08/27 16:58:16 [notice] 26810#0: exit
2008/08/27 16:58:16 [debug] 26810#0: run cleanup: 0000000003CD8FA8
2008/08/27 16:58:16 [debug] 26810#0: cleanup resolver
2008/08/27 16:58:16 [debug] 26810#0: free: 0000000003CD4660
2008/08/27 16:58:16 [debug] 26810#0: free: 0000000003CCE580
2008/08/27 16:58:16 [debug] 26810#0: free: 0000000003CCD4C0
2008/08/27 16:58:16 [debug] 26810#0: free: 0000000003CCC400
2008/08/27 16:58:16 [debug] 26810#0: free: 0000000003CBE9D0, unused: 7
2008/08/27 16:58:16 [debug] 26810#0: free: 0000000003CCF640, unused: 0
2008/08/27 16:58:16 [debug] 26810#0: free: 0000000003CD5670, unused: 6
2008/08/27 16:58:16 [debug] 26810#0: free: 0000000003CD9680, unused: 3920


# uname -a
Linux devsrv4 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64 x86_64 
x86_64 GNU/Linux



-- 
Denis Seleznyov
http://www.cmsfx.com/



 




Copyright © Lexa Software, 1996-2009.