[test-results] [Bamboo] Asterisk Testing > Asterisk 11 Branch > #19 was SUCCESSFUL (with 284 tests). Change made by Mark Michelson.

Bamboo bamboo at asterisk.org
Wed Aug 22 03:28:07 CDT 2012


-----------------------------------------------------------------------
Asterisk Testing > Asterisk 11 Branch > #19 was successful (rerun once).
-----------------------------------------------------------------------
Code has been updated by Mark Michelson.
284 tests in total.

http://bamboo.asterisk.org/browse/TESTING-AST11BRANCH-19/


--------------
Code Changes
--------------
Mark Michelson (371571):

>Use thread-local storage to store pj_thread_descs.
>
>pj_thread_register() takes a parameter of type pj_thread_desc.
>It was assumed that pj_thread_register either used this item
>temporarily or made a copy of it. Unfortunately, all it does is
>keep a pointer to the structure in thread-local storage. This
>means that if our pj_thread_desc goes out of scope, then pjlib
>will be referencing bogus data quite often, most commonly on
>operations involving a pj_mutex_t.
>
>In our case, our pj_thread_desc was on the stack and went out
>of scope very shortly after registering our thread with pjlib.
>With this change, the pj_thread_desc is stored in thread-local
>storage so the pointer that pjlib keeps in thread-local storage
>will reference legitimate memory.
>
>(closes issue ASTERISK-20237)
>reported by Jeremy Pepper
>Patches:
>	ASTERISK-20237.patch uploaded by Mark Michelson (license #5049)
>Tested by Jeremy Pepper
>
>



--------------
Tests
--------------
Fixed Tests (1)
   - AsteriskTestSuite: S/channels/ s i p/sip blind transfer/caller with reinvite

--
This message is automatically generated by Atlassian Bamboo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/test-results/attachments/20120822/398d93a3/attachment-0001.htm>


More information about the Test-results mailing list