bugGPSD - Bugs: bug #42184, Crash when client disconnects

 
 

bug #42184: Crash when client disconnects

Submitter:  None
Submitted:  Thu 24 Apr 2014 01:28:22 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  esr
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 24 Apr 2014 01:28:22 PM UTC, original submission:  

I observed GPSD crash when a client disconnects.

The access to subscriber_t->fd is not synchronized between the main loop and the ppsthread. So the ppsthread may call asynchronously detach_client() via ship_pps_drift_message()/notify_watchers()/throttled_write().

The attached patch tries to avoid that race condition.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #31241:  gps-client-detach.patch added by None (3KiB - text/x-patch)
file #31242:  gspd-backtrace.txt added by None (391B - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by esr (Updated the item)
  • -email is unavailable- added by weo
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-08-23 esr Open/ClosedOpen Closed
    2014-05-17 esr StatusNone Fixed
        Assigned toNone esr
    2014-04-24 weo Carbon-Copy- Added weo
    2014-04-24 None Attached File- Added gps-client-detach.patch, #31241
        Attached File- Added gspd-backtrace.txt, #31242

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code