FS#74565 - [synergy] 1.10.3-3 aborts
Attached to Project:
Community Packages
Opened by Jake Barnes (DuBistKomisch) - Tuesday, 26 April 2022, 10:50 GMT
Last edited by Toolybird (Toolybird) - Sunday, 11 June 2023, 23:06 GMT
Opened by Jake Barnes (DuBistKomisch) - Tuesday, 26 April 2022, 10:50 GMT
Last edited by Toolybird (Toolybird) - Sunday, 11 June 2023, 23:06 GMT
|
Details
Description:
Running synergyd directly or via systemd results in an abort, regardless of config file. Downgrading back to 1.10.3-2 works. Additional info: $ synergys --no-daemon /usr/include/c++/11.2.0/bits/stl_vector.h:1045: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>; std::vector<_Tp, _Alloc>::reference = unsigned char&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]: Assertion '__n < this->size()' failed. Aborted (core dumped) Apr 26 20:38:22 tantalum systemd[1177]: Started Synergy Server Daemon. Apr 26 20:38:22 tantalum systemd-coredump[51884]: [🡕] Process 51880 (synergys) of user 1000 dumped core. ... Apr 26 20:38:22 tantalum systemd[1177]: synergys.service: Main process exited, code=dumped, status=6/ABRT Apr 26 20:38:22 tantalum systemd[1177]: synergys.service: Failed with result 'core-dump'. I can attach the dump etc, but the stack trace doesn't seem particular meaningful. Steps to reproduce: Run `synergys --no-daemon`. |
This task depends upon
Closed by Toolybird (Toolybird)
Sunday, 11 June 2023, 23:06 GMT
Reason for closing: Upstream
Additional comments about closing: Please follow up with upstream.
Sunday, 11 June 2023, 23:06 GMT
Reason for closing: Upstream
Additional comments about closing: Please follow up with upstream.
Turns out it's just a legit out-of-bounds write to a vector triggering the assertion.
I've submitting fixes upstream for synergy [1] and barrier [2].
[1]: https://github.com/symless/synergy-core/pull/7236
[2]: https://github.com/debauchee/barrier/pull/1827
apparently because it needs more work and you said "I'll update when I have time"...