Develop

Ticket #1390 (closed defect: fixed)

Opened 22 months ago

Last modified 22 months ago

SEGV during igc replay (Android)

Reported by: apf Owned by: max
Priority: highest Milestone: XCSoar 6.x @ Android
Component: Other Version: 6.1
Keywords: Cc:

Description

SEGV during igc replay in SIM mode on Android. Shortly after takeoff without any user interaction.

6.1.4 (nearly vanilla non-debug build). Resolved symbols at top of call stack:

_ZN12AndroidTimer3runEv
_ZN9TopWindow10event_loopEv
...

Could not reproduce, probably a race.

Attachments

logcat-crash.txt (21.2 KB) - added by apf 22 months ago.

Change History

Changed 22 months ago by apf

comment:1 Changed 22 months ago by apf

  • Priority changed from high to highest

Occured again, this time during igc replay on master branch build

_ZN12AndroidTimer3runEv
_ZN9EventLoop8dispatchERK5Event
_ZN9TopWindow10event_loopEv
Java_org_xcsoar_NativeView_runNative

Never noticed this before, must be a recent regression.

comment:2 Changed 22 months ago by max

  • Owner set to max
  • Status changed from new to accepted

Race condition between ~AndroidTimer?() and ~Bridge(), when a timer gets deleted:

  1. ~AndroidTimer?() purges all pending events of the timer from the queue
  1. Java callback is invoked, appends new event to the queue
  1. ~Bridge() disables Java callback
  1. event queue launches the AndroidTimer? that just got deleted

comment:3 Changed 22 months ago by max

  • Status changed from accepted to closed
  • Resolution set to fixed

40f5f4f8a48baad044f86eea53c87bc3898a9eea

Note: See TracTickets for help on using tickets.