#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 , 8 years ago
comment:2 by , 8 years ago
И как еще показала проверка, для воспроизведения падения не нужно никого вызывать - достаточно просто войти в систему и завершить программу.
comment:3 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
r238.
Под Windows я не смог воспроизвести эту ошибку.
comment:4 by , 8 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Пожалуйста, не закрывайте тикет с резолюцией fixed, если проблема не исправлена.
comment:5 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Я нашёл причину в тикете 201, ревизии r238, все эти ошибки проявляются когда есть в сети пользователи из другового домена, которые посылают сообщения sophia::register, sophia::unregister и подобные, для них я должен изменить состояние пользователя и перерисовать его если надо, номер пользователя в векторе я получаю так:
int iUserIndex = currentConfig.getUserIndex(sAffectedUser);
Пользователи из другого домена не обрабатываются, и функция getUserIndex вернет -1, который я далее не проверяя возвращаемого значения применял в качкстве вектора массива. Надо было внимательнее смотреть.
Ошибка в данном тикете похоже по логу вызывалась по подобным причинам, как в тикете 201, так как последнее принятое сообщение
CUSTOM - sofia::expire -
PRESENCE_IN - -2@…
Поэтому я закрыл тикет вместе с 201, 202.
Вторая попытка выполнить те же действия привела к падению, но уже в другой строке Events::EventsTimerTick():