Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#204 closed баг (fixed)

Падение при завершении программы - 2

Reported by: alx Owned by: dimag
Priority: major Milestone: 2 очередь
Component: ПО MC04-Dispatcher. Пульт диспетчера/техника Keywords:
Cc: san

Description

Segmentation fault при завершении программы, вызванный попыткой уничтожения еще активного потока:

HEARTBEAT - 
CHANNEL_CALLSTATE - CS_HANGUP-HANGUP-inbound-HANGUP
HEARTBEAT - 
[Thread 0x7fffe9adb700 (LWP 3584) exited]
[Thread 0x7fffea2dc700 (LWP 3583) exited]
17:06:17.271   pjsua_core.c !Shutting down, flags=0...
17:06:17.271   pjsua_core.c  PJSUA state changed: RUNNING --> CLOSING
17:06:17.277   pjsua_call.c  .Hangup all calls..
17:06:17.277   pjsua_pres.c  .Shutting down presence..
[Thread 0x7fffeb2de700 (LWP 3580) exited]
17:06:17.277  pjsua_media.c  .Shutting down media..
17:06:17.277  pjsua_media.c  ..Call 0: deinitializing media..
17:06:17.277  pjsua_media.c  ..Call 1: deinitializing media..
17:06:17.277  pjsua_media.c  ..Call 2: deinitializing media..
17:06:17.277  pjsua_media.c  ..Call 3: deinitializing media..
[Thread 0x7fffebadf700 (LWP 3579) exited]
17:06:17.307       pa_dev.c  ..PortAudio sound library shutting down..
17:06:17.307    pjsua_acc.c  .Acc 0: setting unregistration..
17:06:17.307   pjsua_core.c  ...TX 384 bytes Request msg REGISTER/cseq=4140 (tdta0x90c000) to UDP 192.168.0.63:5060:
REGISTER sip:192.168.0.63 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.63:5061;rport;branch=z9hG4bKPj0f13e17c-e7d0-4a3c-8b4b-80d95455f7d3
Max-Forwards: 70
From: <sip:2@192.168.0.63>;tag=d0a4e7e6-d0f5-4283-ae5d-fc5e9836b1c8
To: <sip:2@192.168.0.63>
Call-ID: 2e6b8a7a-35e6-484e-8ec9-2a8868d8b97e
CSeq: 4140 REGISTER
Contact: <sip:2@192.168.0.63:5061;ob>
Expires: 0
Content-Length:  0


--end msg--
17:06:17.307    pjsua_acc.c  ..Acc 0: Unregistration sent
17:06:17.308   pjsua_core.c  ..RX 670 bytes Response msg 401/REGISTER/cseq=4140 (rdata0x7fffe4001568) from UDP 192.168.0.63:5060:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.0.63:5061;rport=5061;branch=z9hG4bKPj0f13e17c-e7d0-4a3c-8b4b-80d95455f7d3
From: <sip:2@192.168.0.63>;tag=d0a4e7e6-d0f5-4283-ae5d-fc5e9836b1c8
To: <sip:2@192.168.0.63>;tag=3tSecX6USNNXg
Call-ID: 2e6b8a7a-35e6-484e-8ec9-2a8868d8b97e
CSeq: 4140 REGISTER
User-Agent: FreeSWITCH-mod_sofia/1.6.7+git~20160401T013613Z~d38d065f51~64bit
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
WWW-Authenticate: Digest realm="192.168.0.63", nonce="c67fe626-34e3-41cf-ab67-572c6247300c", algorithm=MD5, qop="auth"
Content-Length: 0


--end msg--
17:06:17.308   pjsua_core.c  .....TX 642 bytes Request msg REGISTER/cseq=4141 (tdta0x90c000) to UDP 192.168.0.63:5060:
REGISTER sip:192.168.0.63 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.63:5061;rport;branch=z9hG4bKPje87be964-5f30-4030-bbd4-456e6f329f92
Max-Forwards: 70
From: <sip:2@192.168.0.63>;tag=d0a4e7e6-d0f5-4283-ae5d-fc5e9836b1c8
To: <sip:2@192.168.0.63>
Call-ID: 2e6b8a7a-35e6-484e-8ec9-2a8868d8b97e
CSeq: 4141 REGISTER
Contact: <sip:2@192.168.0.63:5061;ob>
Expires: 0
Authorization: Digest username="2", realm="192.168.0.63", nonce="c67fe626-34e3-41cf-ab67-572c6247300c", uri="sip:192.168.0.63", response="0f7d891d63bd2c79f04e2a227bd07245", algorithm=MD5, cnonce="388bc676-f3a9-4215-aa0d-1c7b604af4d9", qop=auth, nc=00000001
Content-Length:  0


--end msg--
17:06:17.310   pjsua_core.c  ..RX 577 bytes Response msg 200/REGISTER/cseq=4141 (rdata0x843348) from UDP 192.168.0.63:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.63:5061;rport=5061;branch=z9hG4bKPje87be964-5f30-4030-bbd4-456e6f329f92
From: <sip:2@192.168.0.63>;tag=d0a4e7e6-d0f5-4283-ae5d-fc5e9836b1c8
To: <sip:2@192.168.0.63>;tag=43j7DrQZpyBgc
Call-ID: 2e6b8a7a-35e6-484e-8ec9-2a8868d8b97e
CSeq: 4141 REGISTER
Date: Mon, 27 Jun 2016 14:06:17 GMT
User-Agent: FreeSWITCH-mod_sofia/1.6.7+git~20160401T013613Z~d38d065f51~64bit
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Content-Length: 0


--end msg--
17:06:17.310    pjsua_acc.c  .....sip:2@192.168.0.63: unregistration success
PRESENCE_IN - -2@192.168.0.63-Unregistered
CUSTOM - sofia::unregister - 2
CUSTOM - sofia::expire - 
PRESENCE_IN - -test66@voip.kolez.com-Unregistered
CUSTOM - sofia::expire - 
PRESENCE_IN - -test11@192.168.0.63-Unregistered
CUSTOM - sofia::expire - 
PRESENCE_IN - -2@192.168.0.63-Unregistered
17:06:18.314   pjsua_core.c  .Destroying...
17:06:18.314 sip_transactio  .Stopping transaction layer module
17:06:18.314 sip_transactio  .Stopped transaction layer module
17:06:18.314 sip_endpoint.c  .Module "mod-unsolicited-mwi" unregistered
17:06:18.314 sip_endpoint.c  .Module "mod-pjsua-options" unregistered
17:06:18.314 sip_endpoint.c  .Module "mod-pjsua-im" unregistered
17:06:18.314 sip_endpoint.c  .Module "mod-pjsua-pres" unregistered
17:06:18.314 sip_endpoint.c  .Module "mod-pjsua" unregistered
17:06:18.314 sip_endpoint.c  .Module "mod-stateful-util" unregistered
17:06:18.314 sip_endpoint.c  .Module "mod-refer" unregistered
17:06:18.314 sip_endpoint.c  .Module "mod-mwi" unregistered
17:06:18.314 sip_endpoint.c  .Module "mod-presence" unregistered
17:06:18.314 sip_endpoint.c  .Module "mod-evsub" unregistered
17:06:18.314 sip_endpoint.c  .Module "mod-invite" unregistered
17:06:18.314 sip_endpoint.c  .Module "mod-100rel" unregistered
17:06:18.314 sip_endpoint.c  .Module "mod-ua" unregistered
17:06:18.314 sip_transactio  .Transaction layer module destroyed
17:06:18.314 sip_endpoint.c  .Module "mod-tsx-layer" unregistered
17:06:18.314 sip_endpoint.c  .Module "mod-msg-print" unregistered
17:06:18.314 sip_endpoint.c  .Module "mod-pjsua-log" unregistered
17:06:18.316 sip_endpoint.c  .Endpoint 0x8cc1a8 destroyed
17:06:18.316   pjsua_core.c  .PJSUA state changed: CLOSING --> NULL
17:06:18.316   pjsua_core.c  .PJSUA destroyed...
QThread: Destroyed while thread is still running

Thread 1 "MC04Dispatcher" received signal SIGSEGV, Segmentation fault.
0x00007ffff62aaaa3 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
(gdb) bt
#0  0x00007ffff62aaaa3 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#1  0x00007ffff62a78db in QMetaObject::removeGuard(QObject**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007ffff6805df4 in QWidgetPrivate::deleteExtra() () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#3  0x00007ffff6805f3d in QWidgetPrivate::~QWidgetPrivate() () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#4  0x00007ffff6c5d9f1 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#5  0x00007ffff62a998a in QObject::~QObject() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007ffff6812341 in QWidget::~QWidget() () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#7  0x00007ffff6c5aef9 in QToolButton::~QToolButton() () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#8  0x00007ffff62a72b1 in QObjectPrivate::deleteChildren() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007ffff68122a2 in QWidget::~QWidget() () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#10 0x00007ffff6c52bc9 in QToolBar::~QToolBar() () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#11 0x00007ffff62a72b1 in QObjectPrivate::deleteChildren() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#12 0x00007ffff68122a2 in QWidget::~QWidget() () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#13 0x000000000041254e in main (argc=<optimized out>, argv=<optimized out>) at MC04Dispatcher.cpp:137

Change History (3)

comment:1 by dimag, 8 years ago

Resolution: fixed
Status: newclosed

comment:2 by alx, 8 years ago

Поправка - сообщение QThread: Destroyed while thread is still running не связано с падением.
Это отдельная проблема.

comment:3 by san, 7 years ago

Milestone: Текущее2 очередь

Milestone renamed

Note: See TracTickets for help on using tickets.