https://bugs.kde.org/show_bug.cgi?id=413767

            Bug ID: 413767
           Summary: libktorrent isn't a thread-safe
           Product: ktorrent
           Version: 5.1
          Platform: Kubuntu Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: joris.guis...@gmail.com
          Reporter: trufano...@gmail.com
  Target Milestone: ---

The libktorrent runs UTPServer instance in a separate thread. Its
`UTPServer::changePort(bt::Uint16 p)` may be called from another thread (main
thread of KTorrent app) if someone will try to change a port setting in
Settings/Network/Port.
Previously this resulted in a warning but since Kubuntu 18.04 based on Qt 5.9.5
it causes a crash of the app with 
`Thread 5 "utp::UTPServerT" received signal SIGSEGV, Segmentation fault.`

I've pushed a workaround to KTorrent project (just restarting UTPServer with a
new port instead of changing a port in current instance):
https://phabricator.kde.org/D13045
More tech details available in the review above.

Still we agreed to leave this bug here to not forget about this thread-safety
problem in libktorrent.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to