Develop

Ticket #1674 (closed defect: fixed)

Opened 17 months ago

Last modified 17 months ago

FIXED=y assertion error. Angle.cpp:94:

Reported by: RobD Owned by: max
Priority: normal Milestone: XCSoar 6.3
Component: Other Version: 6.3
Keywords: angle Cc:

Description

To replicate:
Compile with FIXED=y
Start XCSoar in SIM Mode.
Bring up waypoint list.
Double click a waypoint to show the waypoint details screen.

GCE_STARTUP_SIMULATOR
xcsoar-ns: src/Math/Angle.cpp:94: Angle Angle::AsBearing?() const: Assertion `fabs(value) < fixed(100) * FullCircle?().Native()' failed.

Program received signal SIGABRT, Aborted.
0x0012d422 in kernel_vsyscall ()
(gdb) bt
#0 0x0012d422 in
kernel_vsyscall ()
#1 0x00408651 in *GI_raise (sig=6)

at ../nptl/sysdeps/unix/sysv/linux/raise.c:64

#2 0x0040ba82 in *GI_abort () at abort.c:92
#3 0x00401718 in *GI_assert_fail (

assertion=0x82d64f0 "fabs(value) < fixed(100) * FullCircle?().Native()",
file=0x82d64bd "src/Math/Angle.cpp", line=94,
function=0x82d6524 "Angle Angle::AsBearing?() const") at assert.c:81

#4 0x08238398 in Angle::AsBearing? (this=0xbfffdc40) at src/Math/Angle.cpp:94
#5 0x0823861d in Angle::Reciprocal (this=0xbfffdd30) at src/Math/Angle.cpp:126
#6 0x082100ca in GlideState::CalcSpeedups? (this=0xbfffdd18, _wind=...)

at src/Engine/GlideSolvers/GlideState.cpp:92

#7 0x0821007e in GlideState? (this=0xbfffdd18, vector=..., htarget=...,

altitude=..., wind=...) at src/Engine/GlideSolvers/GlideState.cpp:84

#8 0x081f11a5 in TaskSolution::GlideSolutionRemaining? (location=...,

target=..., target_elevation=..., altitude=..., wind=..., settings=...,
polar=...) at src/Engine/Task/Tasks/TaskSolvers/TaskSolution.cpp:40

#9 0x08150220 in UpdateArrivalAltitudes? (settings_computer=..., basic=...,

calculated=..., waypoint=...) at src/Dialogs/dlgWaypointDetails.cpp:531

#10 0x081507f8 in dlgWaypointDetailsShowModal (parent=..., _waypoint=...,

allow_navigation=true) at src/Dialogs/dlgWaypointDetails.cpp:603

#11 0x080aca2d in InputEvents::eventWaypointDetails (misc=0x8249aa4 "select")

at src/Input/InputEventsActions.cpp:328

---Type <return> to continue, or q <return> to quit---

Change History

comment:1 Changed 17 months ago by Turbo

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

which revision?

comment:2 Changed 17 months ago by max

Regression caused by Turbo's patch ec8b5f994afa7d2d25298996716bf6e4f88f642c (use of uninitialised variable)

comment:3 Changed 17 months ago by max

  • Status changed from assigned to accepted

comment:4 Changed 17 months ago by max

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

476bde39a3127c5c35874ee04b0c037f696adeed

Note: See TracTickets for help on using tickets.