| Ticket UUID: | 715944a1f71855ab32424a2229d09674adfd4f64 | |||
| Title: | json::json2dict from tcllibc is not thread safe | |||
| Type: | Bug | Version: | 1.3.3 | |
| Submitter: | petasis | Created on: | 2016-08-31 19:37:37 | |
| Subsystem: | json | Assigned To: | aku | |
| Priority: | 9 Immediate | Severity: | Critical | |
| Status: | Closed | Last Modified: | 2016-09-04 00:31:34 | |
| Resolution: | Fixed | Closed By: | aku | |
| Closed on: | 2016-09-04 00:31:34 | |||
| Description: |
If the tcllibc package is available, json::json2dict will cause problems if multiple threads use it, as the underline implementation is not thread safe. To my understanding, a bison generated parser is used, which is not a "pure" one: instead it uses global symbols. | |||
| User Comments: |
aku added on 2016-09-04 00:31:34:
Confirmed working and fixing the issue. Merged to trunk with commit [3870a868297e67addf77feef289ab968ac95587b]. aku added on 2016-09-01 04:18:59: New branch [jsonc-tkt-715944a1f7] Commit [56dcef567957f409ffcc03303c96ca13e3719a4d] Declared the parser as pure/re-entrant. Regenerated with bison 3.0.2. Fixed build issues. Ran testsuite. Passed. So, the referenced branch and commit are not worse off. Hopefully it is now thread-safe. Please try in your environs. To get a zip-archive or tarball of the commit log in with your account, or as anon, then go to the commit's info page and use the appropriate "Download" link. aku added on 2016-08-31 23:03:54: Googling around I found * https://www.gnu.org/software/bison/manual/html_node/Pure-Decl.html * https://www.gnu.org/software/bison/manual/html_node/Pure-Calling.html | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki