Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#203 closed баг (fixed)

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

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

Description

SEGMENTATION FAULT при завершении программы.

Был воспроизведен баг #181, после чего (через некоторое время после вызова) программа была завершена. В процессе завершения программа упала.

Так как программа была запущена под отладчиком, удалось получить стек с места падения.

Полный вывод сеанса работы программы:

Starting program: /home/alx/src/dispatcher/MC04Dispatcher 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
/usr/lib/x86_64-linux-gnu/qt4/plugins

rootStartElement
Characters
16:29:16.922 os_core_unix.c !pjlib 2.1 for POSIX initialized
8013003
21
285
480
640
UP 0 years, 3 days, 0 hours, 57 minutes, 9 seconds, 699 milliseconds, 510 microseconds
FreeSWITCH (Version 1.6.7 git d38d065 2016-04-01 01:36:13Z 64bit) is ready
2744 session(s) since startup
1 session(s) - peak 5, last 5min 2 
0 session(s) per Sec out of max 30, peak 5, last 5min 1 
1000 session(s) max
min idle cpu 0.00/98.40
Current Stack Size/Max 240K/8192K
16:29:20.100 sip_endpoint.c  .Creating endpoint instance...
16:29:20.101          pjlib  .select() I/O Queue created (0x8f6340)
16:29:20.101 sip_endpoint.c  .Module "mod-msg-print" registered
16:29:20.101 sip_transport.  .Transport manager created.
16:29:20.101   pjsua_core.c  .PJSUA state changed: NULL --> CREATED
16:29:20.101 sip_endpoint.c  .Module "mod-pjsua-log" registered
16:29:20.101 sip_endpoint.c  .Module "mod-tsx-layer" registered
16:29:20.101 sip_endpoint.c  .Module "mod-stateful-util" registered
16:29:20.101 sip_endpoint.c  .Module "mod-ua" registered
16:29:20.101 sip_endpoint.c  .Module "mod-100rel" registered
16:29:20.101 sip_endpoint.c  .Module "mod-pjsua" registered
16:29:20.101 sip_endpoint.c  .Module "mod-invite" registered
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_card_driver returned error: Нет такого файла или каталога
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_concat returned error: Нет такого файла или каталога
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: Нет такого файла или каталога
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: Нет такого файла или каталога
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM sysdefault
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_card_driver returned error: Нет такого файла или каталога
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_concat returned error: Нет такого файла или каталога
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: Нет такого файла или каталога
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: Нет такого файла или каталога
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM sysdefault
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_card_driver returned error: Нет такого файла или каталога
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_concat returned error: Нет такого файла или каталога
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: Нет такого файла или каталога
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: Нет такого файла или каталога
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_card_driver returned error: Нет такого файла или каталога
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_concat returned error: Нет такого файла или каталога
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: Нет такого файла или каталога
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: Нет такого файла или каталога
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_card_driver returned error: Нет такого файла или каталога
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_concat returned error: Нет такого файла или каталога
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: Нет такого файла или каталога
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: Нет такого файла или каталога
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM dmix
[New Thread 0x7fffebb60700 (LWP 3216)]
Cannot connect to server socket err = Нет такого файла или каталога
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
16:29:20.107       pa_dev.c  ..PortAudio sound library initialized, status=0
[Thread 0x7fffebb60700 (LWP 3216) exited]
16:29:20.107       pa_dev.c  ..PortAudio host api count=2
16:29:20.107       pa_dev.c  ..Sound device count=0
16:29:20.107          pjlib  ..select() I/O Queue created (0x913018)
[New Thread 0x7fffebadf700 (LWP 3217)]
16:29:20.114 sip_endpoint.c  .Module "mod-evsub" registered
16:29:20.114 sip_endpoint.c  .Module "mod-presence" registered
16:29:20.114 sip_endpoint.c  .Module "mod-mwi" registered
16:29:20.114 sip_endpoint.c  .Module "mod-refer" registered
16:29:20.114 sip_endpoint.c  .Module "mod-pjsua-pres" registered
16:29:20.114 sip_endpoint.c  .Module "mod-pjsua-im" registered
16:29:20.114 sip_endpoint.c  .Module "mod-pjsua-options" registered
[New Thread 0x7fffeb2de700 (LWP 3218)]
16:29:20.115   pjsua_core.c  .1 SIP worker threads created
16:29:20.115   pjsua_core.c  .pjsua version 2.1 for Linux-4.4.0.22/x86_64/glibc-2.17 initialized
16:29:20.115   pjsua_core.c  .PJSUA state changed: CREATED --> INIT
16:29:20.115   pjsua_core.c  bind() error: Адрес уже используется [status=120098]
16:29:20.116   pjsua_core.c  SIP UDP socket reachable at 192.168.0.63:5061
16:29:20.116    udp0x83e190  SIP UDP transport started, published address is 192.168.0.63:5061
16:29:20.116   pjsua_core.c  PJSUA state changed: INIT --> STARTING
16:29:20.116 sip_endpoint.c  .Module "mod-unsolicited-mwi" registered
16:29:20.116   pjsua_core.c  .PJSUA state changed: STARTING --> RUNNING
16:29:20.116    pjsua_acc.c  Adding account: id=sip:2@voip.kolez.com
16:29:20.116    pjsua_acc.c  .Account sip:2@voip.kolez.com added with id 0
16:29:20.116    pjsua_acc.c  .Acc 0: setting registration..
16:29:20.117   pjsua_core.c  ...TX 491 bytes Request msg REGISTER/cseq=24755 (tdta0x8431b0) to UDP 192.168.0.63:5060:
REGISTER sip:voip.kolez.com SIP/2.0
Via: SIP/2.0/UDP 192.168.0.63:5061;rport;branch=z9hG4bKPj46cc369c-ef92-48fb-9008-5815293a456c
Max-Forwards: 70
From: <sip:2@voip.kolez.com>;tag=8b451296-deae-49f6-9c89-ecf73b2a92ba
To: <sip:2@voip.kolez.com>
Call-ID: 067c524f-01f2-4cba-9303-ce8c435121a7
CSeq: 24755 REGISTER
Contact: <sip:2@192.168.0.63:5061;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length:  0


--end msg--
16:29:20.117    pjsua_acc.c  ..Acc 0: Registration sent
16:29:20.125   pjsua_core.c  .RX 677 bytes Response msg 401/REGISTER/cseq=24755 (rdata0x83f7f8) 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=z9hG4bKPj46cc369c-ef92-48fb-9008-5815293a456c
From: <sip:2@voip.kolez.com>;tag=8b451296-deae-49f6-9c89-ecf73b2a92ba
To: <sip:2@voip.kolez.com>;tag=HerKm48KajBeN
Call-ID: 067c524f-01f2-4cba-9303-ce8c435121a7
CSeq: 24755 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="voip.kolez.com", nonce="352afea5-6db2-42ea-a3f1-af6e6c4c04af", algorithm=MD5, qop="auth"
Content-Length: 0


--end msg--
16:29:20.125   pjsua_core.c  ....TX 753 bytes Request msg REGISTER/cseq=24756 (tdta0x8431b0) to UDP 192.168.0.63:5060:
REGISTER sip:voip.kolez.com SIP/2.0
Via: SIP/2.0/UDP 192.168.0.63:5061;rport;branch=z9hG4bKPj2c8ce41b-3e3d-4c2a-90a9-8d03489548ce
Max-Forwards: 70
From: <sip:2@voip.kolez.com>;tag=8b451296-deae-49f6-9c89-ecf73b2a92ba
To: <sip:2@voip.kolez.com>
Call-ID: 067c524f-01f2-4cba-9303-ce8c435121a7
CSeq: 24756 REGISTER
Contact: <sip:2@192.168.0.63:5061;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Authorization: Digest username="2", realm="voip.kolez.com", nonce="352afea5-6db2-42ea-a3f1-af6e6c4c04af", uri="sip:voip.kolez.com", response="f0048b89967bb62e7eed52a2dc3bf952", algorithm=MD5, cnonce="4a615c8d-1fa9-4085-9398-46591c74738d", qop=auth, nc=00000001
Content-Length:  0


--end msg--
16:29:20.127   pjsua_core.c  .RX 633 bytes Response msg 200/REGISTER/cseq=24756 (rdata0x7fffe4001568) 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=z9hG4bKPj2c8ce41b-3e3d-4c2a-90a9-8d03489548ce
From: <sip:2@voip.kolez.com>;tag=8b451296-deae-49f6-9c89-ecf73b2a92ba
To: <sip:2@voip.kolez.com>;tag=jQHcpZSQ7t10g
Call-ID: 067c524f-01f2-4cba-9303-ce8c435121a7
CSeq: 24756 REGISTER
Contact: <sip:2@192.168.0.63:5061;ob>;expires=300
Date: Mon, 27 Jun 2016 13:29:20 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--
16:29:20.127    pjsua_acc.c  ....SIP outbound status for acc 0 is not active
16:29:20.127    pjsua_acc.c  ....sip:2@voip.kolez.com: registration success, status=200 (OK), will re-register in 300 seconds
16:29:20.127    pjsua_acc.c  ....Keep-alive timer started for acc 0, destination:192.168.0.63:5060, interval:15s
16:29:20.174   pjsua_core.c  .RX 918 bytes Request msg NOTIFY/cseq=93181016 (rdata0x7fffe4001568) from UDP 192.168.0.63:5060:
NOTIFY sip:2@192.168.0.63:5061;ob SIP/2.0
Via: SIP/2.0/UDP 192.168.0.63;rport;branch=z9hG4bKH566Dg375BvQm
Max-Forwards: 70
From: <sip:2@voip.kolez.com>;tag=K0a5QtaU43QKc
To: <sip:2@voip.kolez.com>
Call-ID: fec75561-b70d-1234-c18b-902b3433882b
CSeq: 93181016 NOTIFY
Contact: <sip:mod_sofia@192.168.0.63:5060>
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
Event: message-summary
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Subscription-State: terminated;reason=noresource
Content-Type: application/simple-message-summary
Content-Length: 63

Messages-Waiting: no
Message-Account: sip:2@voip.kolez.com


--end msg--
16:29:20.174   pjsua_pres.c  .Got unsolicited NOTIFY from 192.168.0.63:5060..
16:29:20.174   pjsua_core.c  ...TX 301 bytes Response msg 200/NOTIFY/cseq=93181016 (tdta0x7fffe4003490) to UDP 192.168.0.63:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.63;rport=5060;received=192.168.0.63;branch=z9hG4bKH566Dg375BvQm
Call-ID: fec75561-b70d-1234-c18b-902b3433882b
From: <sip:2@voip.kolez.com>;tag=K0a5QtaU43QKc
To: <sip:2@voip.kolez.com>;tag=z9hG4bKH566Dg375BvQm
CSeq: 93181016 NOTIFY
Content-Length:  0


--end msg--
Startup dlg  finished
ESL Connected
 Window Icon setted
MainAppFrameWindow2 ctor
pLogViewWidget created
pSplitterSoundPlay created
[New Thread 0x7fffeaadd700 (LWP 3220)]
[New Thread 0x7fffea2dc700 (LWP 3221)]
[New Thread 0x7fffe9adb700 (LWP 3222)]
Main Window created
CHANNEL_CALLSTATE - CS_ROUTING|RINGING|
CHANNEL_CALLSTATE - CS_HANGUP-HANGUP-inbound-HANGUP
CHANNEL_CALLSTATE - CS_HANGUP-HANGUP-outbound-HANGUP
BACKGROUND_JOB - 
CHANNEL_CALLSTATE - CS_HANGUP-HANGUP-inbound-HANGUP
HEARTBEAT - 
CHANNEL_CALLSTATE - CS_HANGUP-HANGUP-inbound-HANGUP
[Thread 0x7fffe9adb700 (LWP 3222) exited]
[Thread 0x7fffea2dc700 (LWP 3221) exited]
16:29:49.458   pjsua_core.c !Shutting down, flags=0...
16:29:49.458   pjsua_core.c  PJSUA state changed: RUNNING --> CLOSING
16:29:49.465   pjsua_call.c  .Hangup all calls..
16:29:49.465   pjsua_pres.c  .Shutting down presence..
16:29:49.465  pjsua_media.c  .Shutting down media..
[Thread 0x7fffeb2de700 (LWP 3218) exited]
16:29:49.465  pjsua_media.c  ..Call 0: deinitializing media..
16:29:49.465  pjsua_media.c  ..Call 1: deinitializing media..
16:29:49.466  pjsua_media.c  ..Call 2: deinitializing media..
16:29:49.466  pjsua_media.c  ..Call 3: deinitializing media..
CUSTOM - sofia::expire - 16:29:49.612       pa_dev.c  ..PortAudio sound library shutting down..
16:29:49.612    pjsua_acc.c  .Acc 0: setting unregistration..
16:29:49.650   pjsua_core.c  ...TX 391 bytes Request msg REGISTER/cseq=24757 (tdta0x8ff3a0) to UDP 192.168.0.63:5060:
REGISTER sip:voip.kolez.com SIP/2.0
Via: SIP/2.0/UDP 192.168.0.63:5061;rport;branch=z9hG4bKPje851efcf-c153-4cb8-add7-8d43682b0449
Max-Forwards: 70
From: <sip:2@voip.kolez.com>;tag=eb0e80ab-d5c5-405a-b467-51d1e00ca4a3
To: <sip:2@voip.kolez.com>
Call-ID: 067c524f-01f2-4cba-9303-ce8c435121a7
CSeq: 24757 REGISTER
Contact: <sip:2@192.168.0.63:5061;ob>
Expires: 0
Content-Length:  0


--end msg--
16:29:49.650    pjsua_acc.c  ..Acc 0: Unregistration sent
16:29:49.651   pjsua_core.c  ..RX 677 bytes Response msg 401/REGISTER/cseq=24757 (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=z9hG4bKPje851efcf-c153-4cb8-add7-8d43682b0449
From: <sip:2@voip.kolez.com>;tag=eb0e80ab-d5c5-405a-b467-51d1e00ca4a3
To: <sip:2@voip.kolez.com>;tag=NjXpUgc2yN4rK
Call-ID: 067c524f-01f2-4cba-9303-ce8c435121a7
CSeq: 24757 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="voip.kolez.com", nonce="85ee0c49-0ad8-42f5-9090-924b7da9b51a", algorithm=MD5, qop="auth"
Content-Length: 0


--end msg--
16:29:49.651   pjsua_core.c  .....TX 653 bytes Request msg REGISTER/cseq=24758 (tdta0x8ff3a0) to UDP 192.168.0.63:5060:
REGISTER sip:voip.kolez.com SIP/2.0
Via: SIP/2.0/UDP 192.168.0.63:5061;rport;branch=z9hG4bKPj51cebe89-4aab-4cb7-a103-f26943ba26f7
Max-Forwards: 70
From: <sip:2@voip.kolez.com>;tag=eb0e80ab-d5c5-405a-b467-51d1e00ca4a3
To: <sip:2@voip.kolez.com>
Call-ID: 067c524f-01f2-4cba-9303-ce8c435121a7
CSeq: 24758 REGISTER
Contact: <sip:2@192.168.0.63:5061;ob>
Expires: 0
Authorization: Digest username="2", realm="voip.kolez.com", nonce="85ee0c49-0ad8-42f5-9090-924b7da9b51a", uri="sip:voip.kolez.com", response="af1a700f012e19bb39744bc9a3aecdea", algorithm=MD5, cnonce="4a615c8d-1fa9-4085-9398-46591c74738d", qop=auth, nc=00000001
Content-Length:  0


--end msg--
16:29:49.653   pjsua_core.c  ..RX 582 bytes Response msg 200/REGISTER/cseq=24758 (rdata0x834088) 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=z9hG4bKPj51cebe89-4aab-4cb7-a103-f26943ba26f7
From: <sip:2@voip.kolez.com>;tag=eb0e80ab-d5c5-405a-b467-51d1e00ca4a3
To: <sip:2@voip.kolez.com>;tag=pUpFXBX5UytBF
Call-ID: 067c524f-01f2-4cba-9303-ce8c435121a7
CSeq: 24758 REGISTER
Date: Mon, 27 Jun 2016 13:29:49 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--
16:29:49.653    pjsua_acc.c  .....sip:2@voip.kolez.com: unregistration success
[Thread 0x7fffebadf700 (LWP 3217) exited]

Thread 5 "QThread" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffeaadd700 (LWP 3220)]
__memcpy_sse2_unaligned () at ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:37
37      ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Нет такого файла или каталога.
(gdb) bt
#0  __memcpy_sse2_unaligned () at ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:37
#1  0x00007ffff5c84f1d in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#2  0x000000000044b149 in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator= (
    __s=0x49f314 "error/user_not_registered", this=<optimized out>) at /usr/include/c++/5/bits/basic_string.h:559
#3  Events::EventsTimerTick (this=this@entry=0x6c0a40 <EventsObject>) at MainAppFrameWindow3.cpp:7379
#4  0x0000000000496870 in Events::qt_static_metacall (_o=0x6c0a40 <EventsObject>, _id=13, _a=0x846670, _c=<optimized out>)
    at moc_MainAppFrameWindow3.cpp:606
#5  0x00007ffff62a8db1 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007ffff67bbfdc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#7  0x00007ffff67c2f16 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#8  0x00007ffff628e90d in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007ffff62923c6 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#10 0x00007ffff62bf13e in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#11 0x00007ffff2b4e127 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#12 0x00007ffff2b4e380 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#13 0x00007ffff2b4e42c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#14 0x00007ffff62bf2ae in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#15 0x00007ffff628d18f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#16 0x00007ffff628d4f5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#17 0x00007ffff617c549 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#18 0x00007ffff617ee3c in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#19 0x00007ffff5eee6fa in start_thread (arg=0x7fffeaadd700) at pthread_create.c:333
#20 0x00007ffff5383b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Change History (8)

comment:1 by alx, 8 years ago

Вторая попытка выполнить те же действия привела к падению, но уже в другой строке Events::EventsTimerTick():

Starting program: /home/alx/src/dispatcher/MC04Dispatcher 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
/usr/lib/x86_64-linux-gnu/qt4/plugins

rootStartElement
Characters
16:44:39.959 os_core_unix.c !pjlib 2.1 for POSIX initialized
8013003
21
285
480
640
UP 0 years, 3 days, 1 hour, 12 minutes, 33 seconds, 375 milliseconds, 573 microseconds
FreeSWITCH (Version 1.6.7 git d38d065 2016-04-01 01:36:13Z 64bit) is ready
2764 session(s) since startup
0 session(s) - peak 5, last 5min 2 
0 session(s) per Sec out of max 30, peak 5, last 5min 1 
1000 session(s) max
min idle cpu 0.00/99.23
Current Stack Size/Max 240K/8192K
16:44:43.777 sip_endpoint.c  .Creating endpoint instance...
16:44:43.777          pjlib  .select() I/O Queue created (0x8f4f50)
16:44:43.777 sip_endpoint.c  .Module "mod-msg-print" registered
16:44:43.777 sip_transport.  .Transport manager created.
16:44:43.777   pjsua_core.c  .PJSUA state changed: NULL --> CREATED
16:44:43.777 sip_endpoint.c  .Module "mod-pjsua-log" registered
16:44:43.777 sip_endpoint.c  .Module "mod-tsx-layer" registered
16:44:43.777 sip_endpoint.c  .Module "mod-stateful-util" registered
16:44:43.777 sip_endpoint.c  .Module "mod-ua" registered
16:44:43.777 sip_endpoint.c  .Module "mod-100rel" registered
16:44:43.777 sip_endpoint.c  .Module "mod-pjsua" registered
16:44:43.777 sip_endpoint.c  .Module "mod-invite" registered
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_card_driver returned error: Нет такого файла или каталога
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_concat returned error: Нет такого файла или каталога
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: Нет такого файла или каталога
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: Нет такого файла или каталога
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM sysdefault
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_card_driver returned error: Нет такого файла или каталога
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_concat returned error: Нет такого файла или каталога
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: Нет такого файла или каталога
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: Нет такого файла или каталога
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM sysdefault
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_card_driver returned error: Нет такого файла или каталога
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_concat returned error: Нет такого файла или каталога
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: Нет такого файла или каталога
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: Нет такого файла или каталога
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_card_driver returned error: Нет такого файла или каталога
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_concat returned error: Нет такого файла или каталога
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: Нет такого файла или каталога
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: Нет такого файла или каталога
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_card_driver returned error: Нет такого файла или каталога
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_concat returned error: Нет такого файла или каталога
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: Нет такого файла или каталога
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: Нет такого файла или каталога
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM dmix
[New Thread 0x7fffebb60700 (LWP 3375)]
Cannot connect to server socket err = Нет такого файла или каталога
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
16:44:43.783       pa_dev.c  ..PortAudio sound library initialized, status=0
[Thread 0x7fffebb60700 (LWP 3375) exited]
16:44:43.783       pa_dev.c  ..PortAudio host api count=2
16:44:43.783       pa_dev.c  ..Sound device count=0
16:44:43.783          pjlib  ..select() I/O Queue created (0x83c9a8)
[New Thread 0x7fffebadf700 (LWP 3376)]
16:44:43.791 sip_endpoint.c  .Module "mod-evsub" registered
16:44:43.791 sip_endpoint.c  .Module "mod-presence" registered
16:44:43.791 sip_endpoint.c  .Module "mod-mwi" registered
16:44:43.791 sip_endpoint.c  .Module "mod-refer" registered
16:44:43.791 sip_endpoint.c  .Module "mod-pjsua-pres" registered
16:44:43.791 sip_endpoint.c  .Module "mod-pjsua-im" registered
16:44:43.791 sip_endpoint.c  .Module "mod-pjsua-options" registered
[New Thread 0x7fffeb2de700 (LWP 3377)]
16:44:43.791   pjsua_core.c  .1 SIP worker threads created
16:44:43.791   pjsua_core.c  .pjsua version 2.1 for Linux-4.4.0.22/x86_64/glibc-2.17 initialized
16:44:43.791   pjsua_core.c  .PJSUA state changed: CREATED --> INIT
16:44:43.791   pjsua_core.c  bind() error: Адрес уже используется [status=120098]
16:44:43.792   pjsua_core.c  SIP UDP socket reachable at 192.168.0.63:5061
16:44:43.792    udp0x858410  SIP UDP transport started, published address is 192.168.0.63:5061
16:44:43.792   pjsua_core.c  PJSUA state changed: INIT --> STARTING
16:44:43.792 sip_endpoint.c  .Module "mod-unsolicited-mwi" registered
16:44:43.792   pjsua_core.c  .PJSUA state changed: STARTING --> RUNNING
16:44:43.792    pjsua_acc.c  Adding account: id=sip:2@voip.kolez.com
16:44:43.792    pjsua_acc.c  .Account sip:2@voip.kolez.com added with id 0
16:44:43.792    pjsua_acc.c  .Acc 0: setting registration..
16:44:43.793   pjsua_core.c  ...TX 491 bytes Request msg REGISTER/cseq=50330 (tdta0x85d5d0) to UDP 192.168.0.63:5060:
REGISTER sip:voip.kolez.com SIP/2.0
Via: SIP/2.0/UDP 192.168.0.63:5061;rport;branch=z9hG4bKPj7947f3f9-17b0-4c6f-a1a7-8f40ccaf49e7
Max-Forwards: 70
From: <sip:2@voip.kolez.com>;tag=69bd1a4d-dca2-4717-b333-aa51d430f4ac
To: <sip:2@voip.kolez.com>
Call-ID: fdf2e7b5-845b-4edb-95e6-0dcbaf5b7e04
CSeq: 50330 REGISTER
Contact: <sip:2@192.168.0.63:5061;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length:  0


--end msg--
16:44:43.793    pjsua_acc.c  ..Acc 0: Registration sent
16:44:43.801   pjsua_core.c  .RX 677 bytes Response msg 401/REGISTER/cseq=50330 (rdata0x859a78) 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=z9hG4bKPj7947f3f9-17b0-4c6f-a1a7-8f40ccaf49e7
From: <sip:2@voip.kolez.com>;tag=69bd1a4d-dca2-4717-b333-aa51d430f4ac
To: <sip:2@voip.kolez.com>;tag=c5Xve4056SZ9N
Call-ID: fdf2e7b5-845b-4edb-95e6-0dcbaf5b7e04
CSeq: 50330 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="voip.kolez.com", nonce="04d2d833-d52f-46f7-9f52-677d991b8ce1", algorithm=MD5, qop="auth"
Content-Length: 0


--end msg--
16:44:43.801   pjsua_core.c  ....TX 753 bytes Request msg REGISTER/cseq=50331 (tdta0x85d5d0) to UDP 192.168.0.63:5060:
REGISTER sip:voip.kolez.com SIP/2.0
Via: SIP/2.0/UDP 192.168.0.63:5061;rport;branch=z9hG4bKPj87c4e071-2ad7-4745-b9b1-07d04fe92693
Max-Forwards: 70
From: <sip:2@voip.kolez.com>;tag=69bd1a4d-dca2-4717-b333-aa51d430f4ac
To: <sip:2@voip.kolez.com>
Call-ID: fdf2e7b5-845b-4edb-95e6-0dcbaf5b7e04
CSeq: 50331 REGISTER
Contact: <sip:2@192.168.0.63:5061;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Authorization: Digest username="2", realm="voip.kolez.com", nonce="04d2d833-d52f-46f7-9f52-677d991b8ce1", uri="sip:voip.kolez.com", response="c4795de4e9d110ccee9b2ff3f3e6c5aa", algorithm=MD5, cnonce="4c4ade32-178d-41ae-9069-98395be59143", qop=auth, nc=00000001
Content-Length:  0


--end msg--
16:44:43.804   pjsua_core.c  .RX 633 bytes Response msg 200/REGISTER/cseq=50331 (rdata0x7fffe4001568) 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=z9hG4bKPj87c4e071-2ad7-4745-b9b1-07d04fe92693
From: <sip:2@voip.kolez.com>;tag=69bd1a4d-dca2-4717-b333-aa51d430f4ac
To: <sip:2@voip.kolez.com>;tag=DeQNgZH932NvH
Call-ID: fdf2e7b5-845b-4edb-95e6-0dcbaf5b7e04
CSeq: 50331 REGISTER
Contact: <sip:2@192.168.0.63:5061;ob>;expires=300
Date: Mon, 27 Jun 2016 13:44:43 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--
16:44:43.804    pjsua_acc.c  ....SIP outbound status for acc 0 is not active
16:44:43.804    pjsua_acc.c  ....sip:2@voip.kolez.com: registration success, status=200 (OK), will re-register in 300 seconds
16:44:43.804    pjsua_acc.c  ....Keep-alive timer started for acc 0, destination:192.168.0.63:5060, interval:15s
16:44:43.812   pjsua_core.c  .RX 918 bytes Request msg NOTIFY/cseq=93181477 (rdata0x7fffe4001568) from UDP 192.168.0.63:5060:
NOTIFY sip:2@192.168.0.63:5061;ob SIP/2.0
Via: SIP/2.0/UDP 192.168.0.63;rport;branch=z9hG4bKm0jHK1NjX6yFQ
Max-Forwards: 70
From: <sip:2@voip.kolez.com>;tag=eQgejt2c1BcFD
To: <sip:2@voip.kolez.com>
Call-ID: 254f4da0-b710-1234-c18b-902b3433882b
CSeq: 93181477 NOTIFY
Contact: <sip:mod_sofia@192.168.0.63:5060>
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
Event: message-summary
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Subscription-State: terminated;reason=noresource
Content-Type: application/simple-message-summary
Content-Length: 63

Messages-Waiting: no
Message-Account: sip:2@voip.kolez.com


--end msg--
16:44:43.812   pjsua_pres.c  .Got unsolicited NOTIFY from 192.168.0.63:5060..
16:44:43.812   pjsua_core.c  ...TX 301 bytes Response msg 200/NOTIFY/cseq=93181477 (tdta0x7fffe4003490) to UDP 192.168.0.63:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.63;rport=5060;received=192.168.0.63;branch=z9hG4bKm0jHK1NjX6yFQ
Call-ID: 254f4da0-b710-1234-c18b-902b3433882b
From: <sip:2@voip.kolez.com>;tag=eQgejt2c1BcFD
To: <sip:2@voip.kolez.com>;tag=z9hG4bKm0jHK1NjX6yFQ
CSeq: 93181477 NOTIFY
Content-Length:  0


--end msg--
Startup dlg  finished
ESL Connected
 Window Icon setted
MainAppFrameWindow2 ctor
pLogViewWidget created
pSplitterSoundPlay created
[New Thread 0x7fffeaadd700 (LWP 3379)]
[New Thread 0x7fffea2dc700 (LWP 3380)]
[New Thread 0x7fffe9adb700 (LWP 3381)]
Main Window created
CHANNEL_CALLSTATE - CS_ROUTING|RINGING|
CHANNEL_CALLSTATE - CS_HANGUP-HANGUP-inbound-HANGUP
CHANNEL_CALLSTATE - CS_HANGUP-HANGUP-outbound-HANGUP
BACKGROUND_JOB - 
HEARTBEAT - 
[Thread 0x7fffe9adb700 (LWP 3381) exited]
[Thread 0x7fffea2dc700 (LWP 3380) exited]
16:44:53.089   pjsua_core.c !Shutting down, flags=0...
16:44:53.090   pjsua_core.c  PJSUA state changed: RUNNING --> CLOSING
16:44:53.092   pjsua_call.c  .Hangup all calls..
16:44:53.092   pjsua_pres.c  .Shutting down presence..
[Thread 0x7fffeb2de700 (LWP 3377) exited]
16:44:53.092  pjsua_media.c  .Shutting down media..
16:44:53.092  pjsua_media.c  ..Call 0: deinitializing media..
16:44:53.092  pjsua_media.c  ..Call 1: deinitializing media..
16:44:53.092  pjsua_media.c  ..Call 2: deinitializing media..
16:44:53.092  pjsua_media.c  ..Call 3: deinitializing media..
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@voip.kolez.com-Unregistered
16:44:53.285       pa_dev.c  ..PortAudio sound library shutting down..
[Thread 0x7fffebadf700 (LWP 3376) exited]
16:44:53.286    pjsua_acc.c  .Acc 0: setting unregistration..
16:44:53.286   pjsua_core.c  ...TX 391 bytes Request msg REGISTER/cseq=50332 (tdta0x903280) to UDP 192.168.0.63:5060:
REGISTER sip:voip.kolez.com SIP/2.0
Via: SIP/2.0/UDP 192.168.0.63:5061;rport;branch=z9hG4bKPj5dc1593c-7193-4907-b27c-60fec5ef2ec7
Max-Forwards: 70
From: <sip:2@voip.kolez.com>;tag=df386ae1-d054-4471-a4d0-a9f86a5dc3c4
To: <sip:2@voip.kolez.com>
Call-ID: fdf2e7b5-845b-4edb-95e6-0dcbaf5b7e04
CSeq: 50332 REGISTER
Contact: <sip:2@192.168.0.63:5061;ob>
Expires: 0
Content-Length:  0


--end msg--
16:44:53.286    pjsua_acc.c  ..Acc 0: Unregistration sent
16:44:53.287   pjsua_core.c  ..RX 677 bytes Response msg 401/REGISTER/cseq=50332 (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=z9hG4bKPj5dc1593c-7193-4907-b27c-60fec5ef2ec7
From: <sip:2@voip.kolez.com>;tag=df386ae1-d054-4471-a4d0-a9f86a5dc3c4
To: <sip:2@voip.kolez.com>;tag=F096KNKgym21r
Call-ID: fdf2e7b5-845b-4edb-95e6-0dcbaf5b7e04
CSeq: 50332 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="voip.kolez.com", nonce="742265a0-10c6-467c-91fd-68c100cbdf8f", algorithm=MD5, qop="auth"
Content-Length: 0


--end msg--
16:44:53.287   pjsua_core.c  .....TX 653 bytes Request msg REGISTER/cseq=50333 (tdta0x903280) to UDP 192.168.0.63:5060:
REGISTER sip:voip.kolez.com SIP/2.0
Via: SIP/2.0/UDP 192.168.0.63:5061;rport;branch=z9hG4bKPj236278c5-5778-48c8-afb6-45a42ffcc73f
Max-Forwards: 70
From: <sip:2@voip.kolez.com>;tag=df386ae1-d054-4471-a4d0-a9f86a5dc3c4
To: <sip:2@voip.kolez.com>
Call-ID: fdf2e7b5-845b-4edb-95e6-0dcbaf5b7e04
CSeq: 50333 REGISTER
Contact: <sip:2@192.168.0.63:5061;ob>
Expires: 0
Authorization: Digest username="2", realm="voip.kolez.com", nonce="742265a0-10c6-467c-91fd-68c100cbdf8f", uri="sip:voip.kolez.com", response="73357c2a8a9d586b4a99d3b54147f2e3", algorithm=MD5, cnonce="4c4ade32-178d-41ae-9069-98395be59143", qop=auth, nc=00000001
Content-Length:  0


--end msg--
16:44:53.289   pjsua_core.c  ..RX 582 bytes Response msg 200/REGISTER/cseq=50333 (rdata0x84e308) 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=z9hG4bKPj236278c5-5778-48c8-afb6-45a42ffcc73f
From: <sip:2@voip.kolez.com>;tag=df386ae1-d054-4471-a4d0-a9f86a5dc3c4
To: <sip:2@voip.kolez.com>;tag=g92ZNg4KUXrmm
Call-ID: fdf2e7b5-845b-4edb-95e6-0dcbaf5b7e04
CSeq: 50333 REGISTER
Date: Mon, 27 Jun 2016 13:44:53 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--
16:44:53.289    pjsua_acc.c  .....sip:2@voip.kolez.com: unregistration success
PRESENCE_IN - -2@voip.kolez.com-Unregistered
CUSTOM - sofia::unregister - 2
16:44:54.298   pjsua_core.c  .Destroying...
16:44:54.298 sip_transactio  .Stopping transaction layer module
16:44:54.298 sip_transactio  .Stopped transaction layer module
16:44:54.298 sip_endpoint.c  .Module "mod-unsolicited-mwi" unregistered
16:44:54.298 sip_endpoint.c  .Module "mod-pjsua-options" unregistered
16:44:54.298 sip_endpoint.c  .Module "mod-pjsua-im" unregistered
16:44:54.298 sip_endpoint.c  .Module "mod-pjsua-pres" unregistered
16:44:54.298 sip_endpoint.c  .Module "mod-pjsua" unregistered
16:44:54.298 sip_endpoint.c  .Module "mod-stateful-util" unregistered
16:44:54.298 sip_endpoint.c  .Module "mod-refer" unregistered
16:44:54.298 sip_endpoint.c  .Module "mod-mwi" unregistered
16:44:54.298 sip_endpoint.c  .Module "mod-presence" unregistered
16:44:54.298 sip_endpoint.c  .Module "mod-evsub" unregistered
16:44:54.298 sip_endpoint.c  .Module "mod-invite" unregistered
16:44:54.298 sip_endpoint.c  .Module "mod-100rel" unregistered
16:44:54.299 sip_endpoint.c  .Module "mod-ua" unregistered
16:44:54.299 sip_transactio  .Transaction layer module destroyed
16:44:54.299 sip_endpoint.c  .Module "mod-tsx-layer" unregistered
16:44:54.299 sip_endpoint.c  .Module "mod-msg-print" unregistered
16:44:54.299 sip_endpoint.c  .Module "mod-pjsua-log" unregistered
16:44:54.300 sip_endpoint.c  .Endpoint 0x8c0448 destroyed
16:44:54.300   pjsua_core.c  .PJSUA state changed: CLOSING --> NULL
16:44:54.300   pjsua_core.c  .PJSUA destroyed...

Thread 5 "QThread" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffeaadd700 (LWP 3379)]
__pthread_mutex_trylock (mutex=0x0) at ../nptl/pthread_mutex_trylock.c:39
39      ../nptl/pthread_mutex_trylock.c: Нет такого файла или каталога.
(gdb) bt
#0  __pthread_mutex_trylock (mutex=0x0) at ../nptl/pthread_mutex_trylock.c:39
#1  0x000000000049be19 in esl_mutex_trylock ()
#2  0x00000000004991a1 in esl_recv_event_timed ()
#3  0x000000000049965c in esl_connect_timeout ()
#4  0x000000000049494f in ESL::Reconnect (this=0x6c0a80 <ESLconnect>) at ESL.cpp:46
#5  0x00000000004477cd in Events::EventsTimerTick (this=this@entry=0x6c0a40 <EventsObject>) at MainAppFrameWindow3.cpp:6973
#6  0x0000000000496870 in Events::qt_static_metacall (_o=0x6c0a40 <EventsObject>, _id=13, _a=0x1141250, _c=<optimized out>)
    at moc_MainAppFrameWindow3.cpp:606
#7  0x00007ffff62a8db1 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007ffff67bbfdc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#9  0x00007ffff67c2f16 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#10 0x00007ffff628e90d in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#11 0x00007ffff62923c6 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#12 0x00007ffff62bf13e in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#13 0x00007ffff2b4e127 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#14 0x00007ffff2b4e380 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#15 0x00007ffff2b4e42c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#16 0x00007ffff62bf2ae in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#17 0x00007ffff628d18f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#18 0x00007ffff628d4f5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#19 0x00007ffff617c549 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#20 0x00007ffff617ee3c in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#21 0x00007ffff5eee6fa in start_thread (arg=0x7fffeaadd700) at pthread_create.c:333
#22 0x00007ffff5383b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

comment:2 by alx, 8 years ago

И как еще показала проверка, для воспроизведения падения не нужно никого вызывать - достаточно просто войти в систему и завершить программу.

comment:3 by dimag, 8 years ago

Resolution: fixed
Status: newclosed

r238.
Под Windows я не смог воспроизвести эту ошибку.

comment:4 by alx, 8 years ago

Resolution: fixed
Status: closedreopened

Пожалуйста, не закрывайте тикет с резолюцией fixed, если проблема не исправлена.

comment:5 by dimag, 8 years ago

Resolution: fixed
Status: reopenedclosed

Я нашёл причину в тикете 201, ревизии r238, все эти ошибки проявляются когда есть в сети пользователи из другового домена, которые посылают сообщения sophia::register, sophia::unregister и подобные, для них я должен изменить состояние пользователя и перерисовать его если надо, номер пользователя в векторе я получаю так:
int iUserIndex = currentConfig.getUserIndex(sAffectedUser);
Пользователи из другого домена не обрабатываются, и функция getUserIndex вернет -1, который я далее не проверяя возвращаемого значения применял в качкстве вектора массива. Надо было внимательнее смотреть.
Ошибка в данном тикете похоже по логу вызывалась по подобным причинам, как в тикете 201, так как последнее принятое сообщение
CUSTOM - sofia::expire -
PRESENCE_IN - -2@…
Поэтому я закрыл тикет вместе с 201, 202.

comment:6 by dimag, 8 years ago

Вернее 202, 204

comment:7 by alx, 8 years ago

OK, подтверждаю, падения при завершении прекратились.

comment:8 by san, 7 years ago

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

Milestone renamed

Note: See TracTickets for help on using tickets.