Summary: | ASTERISK-25779: pjproject: Data race in pj_time | ||
Reporter: | Badalian Vyacheslav (slavon) | Labels: | |
Date Opened: | 2016-02-11 23:07:09.000-0600 | Date Closed: | 2016-10-30 13:54:22 |
Priority: | Minor | Regression? | |
Status: | Closed/Complete | Components: | pjproject/pjsip |
Versions: | 13.7.2 | Frequency of Occurrence | |
Related Issues: | |||
Environment: | [root@vm-asterisk04t asterisk]# git branch -v * master a394865 Merge "Resources/res_phoneprov: fix memory leak and heap-use-after-free" | Attachments: | |
Description: | {code}
================== WARNING: ThreadSanitizer: data race (pid=11900) Write of size 8 at 0x7d0400031e10 by main thread (mutexes: write M1263): #0 free <null> (libtsan.so.0+0x000000025da9) #1 tzset_internal <null> (libc.so.6+0x0000000ae8d8) #2 pj_time_decode ../src/pj/os_time_common.c:35 (libpj.so.2+0x000000016570) #3 <null> <null> (res_pjsip_mwi.so+0x00000000689d) #4 start_resource /root/asterisk/main/loader.c:1015 (asterisk+0x0000004ff12f) #5 load_resource_list /root/asterisk/main/loader.c:1213 (asterisk+0x000000500c7c) #6 load_modules /root/asterisk/main/loader.c:1366 (asterisk+0x000000501ade) #7 asterisk_daemon /root/asterisk/main/asterisk.c:4659 (asterisk+0x0000002d6e5d) #8 main /root/asterisk/main/asterisk.c:4230 (asterisk+0x0000002d5cfd) Previous write of size 8 at 0x7d0400031e10 by thread T44: #0 malloc <null> (libtsan.so.0+0x000000025a33) #1 __strdup <null> (libc.so.6+0x000000085fe9) #2 pj_time_decode ../src/pj/os_time_common.c:35 (libpj.so.2+0x000000016570) #3 thread_main ../src/pj/os_core_unix.c:541 (libpj.so.2+0x00000000f5f9) Mutex M1263 (0x7f49768a9230) created at: #0 pthread_mutex_lock <null> (libtsan.so.0+0x000000037816) #1 __ast_pthread_mutex_lock /root/asterisk/main/lock.c:313 (asterisk+0x000000503d01) #2 load_modules /root/asterisk/main/loader.c:1260 (asterisk+0x000000500eab) #3 asterisk_daemon /root/asterisk/main/asterisk.c:4544 (asterisk+0x0000002d6a6d) #4 main /root/asterisk/main/asterisk.c:4230 (asterisk+0x0000002d5cfd) Thread T44 (tid=12425, running) created by main thread at: #0 pthread_create <null> (libtsan.so.0+0x000000027b07) #1 pj_thread_create ../src/pj/os_core_unix.c:634 (libpj.so.2+0x00000000f448) #2 start_resource /root/asterisk/main/loader.c:1015 (asterisk+0x0000004ff12f) #3 load_resource_list /root/asterisk/main/loader.c:1213 (asterisk+0x000000500c7c) #4 load_modules /root/asterisk/main/loader.c:1366 (asterisk+0x000000501ade) #5 asterisk_daemon /root/asterisk/main/asterisk.c:4659 (asterisk+0x0000002d6e5d) #6 main /root/asterisk/main/asterisk.c:4230 (asterisk+0x0000002d5cfd) SUMMARY: ThreadSanitizer: data race ??:0 free ================== {code} | ||
Comments: | By: Asterisk Team (asteriskteam) 2016-02-11 23:07:10.781-0600 Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report. Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process]. |