|Summary:||ASTERISK-21724: [patch] __ast_rwlock_destroy can segfault with DEBUG_THREADS|
|Reporter:||Corey Farrell (coreyfarrell)||Labels:|
|Date Opened:||2013-04-29 11:05:17||Date Closed:||2013-05-15 10:58:38|
|Versions:||SVN 220.127.116.11 11.4.0||Frequency of|
|Environment:||DEBUG_THREADS enabled||Attachments:||( 0) ast_rwlock_destroy-segv.patch|
|Description:||__ast_rwlock_destroy doesn't check if t->track is NULL before using it. This causes a segfault if the rwlock was initialized by value with tracking, then never used.
I've marked this minor since I'm not aware any place in asterisk where this crash can happen. I found this while testing other changes and starting asterisk with no modules.