Double-free in SmartscopesClient
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unity-scopes-api |
Fix Released
|
Undecided
|
Marcus Tomlinson | ||
unity-scopes-api (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I just got this out of the blue on a test run:
12/37 Test #12: JsonNode .......
Start 13: SmartScopesClient
*** Error in `/home/
I found a core in the test directory but, after looking with gdb, there was no usable information in the core.
I started running the SmartScopesClie
core: ELF 64-bit LSB core file x86-64, version 1 (SYSV), SVR4-style, from 'python /home/michi/
Here is the test output near the failure (earlier output looks normal):
[ RUN ] SmartScopesClie
127.0.0.1 - - [20/Dec/2013 16:18:25] "GET /smartscopes/
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
'Date: %s\r\n' % format_
File "/usr/lib/
self.flush()
File "/usr/lib/
self.
error: [Errno 32] Broken pipe
127.0.0.1 - - [20/Dec/2013 16:18:25] "GET /smartscopes/
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.finish()
File "/usr/lib/
self.
File "/usr/lib/
self.flush()
File "/usr/lib/
self.
error: [Errno 32] Broken pipe
127.0.0.1 - - [20/Dec/2013 16:18:25] "GET /smartscopes/
failed to retrieve search results for session: 1234
error:unity:
[ OK ] SmartScopesClie
[----------] 3 tests from SmartScopesClie
[----------] Global test environment tear-down
[==========] 3 tests from 1 test case ran. (1811 ms total)
[ PASSED ] 3 tests.
Running main() from gtest_main.cc
[==========] Running 3 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 3 tests from SmartScopesClie
[ RUN ] SmartScopesClie
127.0.0.1 - - [20/Dec/2013 16:18:26] "GET /smartscopes/
[ OK ] SmartScopesClie
[ RUN ] SmartScopesClie
127.0.0.1 - - [20/Dec/2013 16:18:26] "GET /smartscopes/
[ OK ] SmartScopesClie
[ RUN ] SmartScopesClie
127.0.0.1 - - [20/Dec/2013 16:18:27] "GET /smartscopes/
Segmentation fault (core dumped)
Related branches
- PS Jenkins bot (community): Approve (continuous-integration)
- Michal Hruby (community): Approve
- Michi Henning: Pending requested
-
Diff: 58 lines (+7/-11)2 files modifiedsrc/internal/smartscopes/HttpClientQtThread.cpp (+4/-8)
test/gtest/scopes/internal/smartscopes/RaiiServer.h (+3/-3)
Changed in unity-scopes-api: | |
assignee: | nobody → Marcus Tomlinson (marcustomlinson) |
Changed in unity-scopes-api: | |
status: | New → In Progress |
Changed in unity-scopes-api: | |
status: | Fix Committed → Fix Released |
I ran this with valgrind too, but didn't get any complaints. It's definitely a race condition of some kind. Possibly related to the issues reported by thread sanitizer?