Develop
Ticket #1805 (closed defect: fixed)
valgrind: Use of unintialized value (task, new waypoint from task file)
| Reported by: | apf | Owned by: | apf |
|---|---|---|---|
| Priority: | low | Milestone: | XCSoar 6.3 |
| Component: | Waypoints | Version: | 6.3 |
| Keywords: | Cc: |
Description
==6871== Conditional jump or move depends on uninitialised value(s) ==6871== at 0x483653: WaypointVisitorMap::Calculate(ProtectedRoutePlanner const&) (WaypointRenderer.cpp:388) ==6871== by 0x4825EA: WaypointRenderer::render(Canvas&, LabelBlock&, MapWindowProjection const&, WaypointRendererSettings const&, TaskBehaviour const&, MoreData const&, ProtectedTaskManager const*, ProtectedRoutePlanner const*) (WaypointRenderer.cpp:445) ==6871== by 0x48B381: MapWindow::DrawWaypoints(Canvas&) (MapWindowWaypoints.cpp:34) ==6871== by 0x489A68: MapWindow::Render(Canvas&, PixelRect const&) (MapWindowRender.cpp:127) ==6871== by 0x48CA76: GlueMapWindow::Render(Canvas&, PixelRect const&) (GlueMapWindowEvents.cpp:335) ==6871== by 0x487084: MapWindow::OnPaintBuffer(Canvas&) (MapWindow.cpp:187) ==6871== by 0x48C959: GlueMapWindow::OnPaintBuffer(Canvas&) (GlueMapWindowEvents.cpp:314) ==6871== by 0x53F08D: DoubleBufferWindow::OnPaint(Canvas&) (DoubleBufferWindow.cpp:104) ==6871== by 0x487990: MapWindow::OnPaint(Canvas&) (MapWindowEvents.cpp:92) ==6871== by 0x48C910: GlueMapWindow::OnPaint(Canvas&) (GlueMapWindowEvents.cpp:304) ==6871== by 0x541701: ContainerWindow::OnPaint(Canvas&) (ContainerWindow.cpp:357) ==6871== by 0x544103: TopWindow::expose() (TopWindow.cpp:107) ==6871== Uninitialised value was created by a heap allocation ==6871== at 0x4C292C7: operator new(unsigned long) (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==6871== by 0x5E3679: Deserialiser::deserialise_waypoint() (Deserialiser.cpp:215) ==6871== by 0x5E2B7B: Deserialiser::deserialise_point(OrderedTask&) (Deserialiser.cpp:57) ==6871== by 0x5E39F7: Deserialiser::deserialise(OrderedTask&) (Deserialiser.cpp:256) ==6871== by 0x408AB2: TaskFileXCSoar::GetTask(Waypoints const*, unsigned int) const (TaskFileXCSoar.cpp:58) ==6871== by 0x40DE97: ProtectedTaskManager::TaskCreate(char const*, Waypoints const*, unsigned int) const (ProtectedTaskManager.cpp:214) ==6871== by 0x40DF1E: ProtectedTaskManager::TaskCreateDefault(Waypoints const*, TaskFactoryType) (ProtectedTaskManager.cpp:230) ==6871== by 0x4C7ED9: XCSoarInterface::AfterStartup() (Components.cpp:185) ==6871== by 0x4C89B5: XCSoarInterface::Startup() (Components.cpp:475) ==6871== by 0x51DE7C: main (XCSoar.cpp:126)
Change History
Note: See
TracTickets for help on using
tickets.
