[Home]

Summary:ASTERISK-25764: TSAN: low potencial data race in sig_flags
Reporter:Badalian Vyacheslav (slavon)Labels:
Date Opened:2016-02-09 18:46:44.000-0600Date Closed:2016-02-09 19:23:28.000-0600
Priority:TrivialRegression?
Status:Closed/CompleteComponents:
Versions:11.13.0 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:{code}
==================
WARNING: ThreadSanitizer: data race (pid=22242)
 Read of size 1 at 0x7f094d207860 by thread T75:
   #0 monitor_sig_flags /root/asterisk-13.7.0/main/asterisk.c:3772 (asterisk+0x0000002c5ba9)
   #1 dummy_start /root/asterisk-13.7.0/main/utils.c:1237 (asterisk+0x00000067e255)
   #2 <null> <null> (libtsan.so.0+0x000000023659)

 Previous write of size 1 at 0x7f094d207860 by main thread:
   #0 __quit_handler /root/asterisk-13.7.0/main/asterisk.c:2158 (asterisk+0x0000002bb8f4)
   #1 <null> <null> (libtsan.so.0+0x000000023783)
   #2 ast_el_read_char /root/asterisk-13.7.0/main/asterisk.c:2754 (asterisk+0x0000002bddb3)
   #3 el_getc /root/asterisk-13.7.0/main/editline/read.c:350 (asterisk+0x0000006bc045)
   #4 read_getcmd /root/asterisk-13.7.0/main/editline/read.c:243 (asterisk+0x0000006c0400)
   #5 el_gets /root/asterisk-13.7.0/main/editline/read.c:446 (asterisk+0x0000006c0400)
   #6 asterisk_daemon /root/asterisk-13.7.0/main/asterisk.c:4741 (asterisk+0x0000002ca874)
   #7 main /root/asterisk-13.7.0/main/asterisk.c:4282 (asterisk+0x0000002c93ad)

 Location is global 'sig_flags' of size 4 at 0x7f094d207860 (asterisk+0x000000c87860)

 Thread T75 (tid=22798, running) created by main thread at:
   #0 pthread_create <null> (libtsan.so.0+0x000000027b07)
   #1 ast_pthread_create_stack /root/asterisk-13.7.0/main/utils.c:1290 (asterisk+0x00000067e69e)
   #2 ast_pthread_create_detached_stack /root/asterisk-13.7.0/main/utils.c:1310 (asterisk+0x00000067e862)
   #3 asterisk_daemon /root/asterisk-13.7.0/main/asterisk.c:4728 (asterisk+0x0000002ca76f)
   #4 main /root/asterisk-13.7.0/main/asterisk.c:4282 (asterisk+0x0000002c93ad)

SUMMARY: ThreadSanitizer: data race /root/asterisk-13.7.0/main/asterisk.c:3772 monitor_sig_flags
==================
{code}
Comments:By: Asterisk Team (asteriskteam) 2016-02-09 18:46:46.544-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].

By: Badalian Vyacheslav (slavon) 2016-02-09 19:23:28.736-0600

ASTERISK-25765