Develop

Ticket #1524 (closed defect: fixed)

Opened 19 months ago

Last modified 19 months ago

SIGSEGV: MapItemList causes crash

Reported by: Turbo Owned by: Turbo
Priority: high Milestone: XCSoar 6.3
Component: Map Version: 6.3
Keywords: Cc:

Description

Call Stack:

Thread [1] 1253 [core: 0] (Suspended : Signal : SIGSEGV:Segmentation fault)	
	CompareMapItems() at MapItemList.cpp:35 0x80c1c65	
	std::__unguarded_partition<MapItem**, MapItem*, bool () at stl_algo.h:2.236 0x80c234f	
	std::__unguarded_partition_pivot<MapItem**, bool () at stl_algo.h:2.265 0x80c209f	
	std::__introsort_loop<MapItem**, int, bool () at stl_algo.h:2.306 0x80c1f40	
	std::sort<MapItem**, bool () at stl_algo.h:5.368 0x80c1ed8	
	MapItemList::Sort() at MapItemList.cpp:75 0x80c1e3f	
	GlueMapWindow::ShowMapItems() at GlueMapWindowItems.cpp:60 0x80c833b	
	GlueMapWindow::on_timer() at GlueMapWindowEvents.cpp:323 0x80c912b	
	EventLoop::dispatch() at Event.cpp:60 0x816e65a	
	TopWindow::event_loop() at TopWindow.cpp:252 0x816d796	
	main() at XCSoar.cpp:106 0x8152220	

Variables in CompareMapItems?:

a	const MapItem *		0x96a9a18	
b	const MapItem *		0x13	

Variables in MapItemList::Sort():

StaticArray<MapItem*, 32u>	StaticArray<MapItem*, 32u>	{...}	
	the_size	StaticArray<MapItem*, 32u>::size_type	19	
	data	MapItem *[32]	0xbffff130	
		data[0]	MapItem *	0x96a9a18	
		data[1]	MapItem *	0x8622b78	
		data[2]	MapItem *	0x97368f0	
		data[3]	MapItem *	0x97369b0	
		data[4]	MapItem *	0x973abc8	
		data[5]	MapItem *	0x9690548	
		data[6]	MapItem *	0x97139b0	
		data[7]	MapItem *	0x8f9a1b8	
		data[8]	MapItem *	0x9699350	
		data[9]	MapItem *	0x9690340	
		data[10]	MapItem *	0x968cf60	
		data[11]	MapItem *	0x96aee08	
		data[12]	MapItem *	0x96aee18	
		data[13]	MapItem *	0x9713d40	
		data[14]	MapItem *	0x9713d50	
		data[15]	MapItem *	0x96aeea0	
		data[16]	MapItem *	0x96aeeb0	
		data[17]	MapItem *	0x96a9a08	
		data[18]	MapItem *	0x968f410	
		data[19]	MapItem *	0x1c3ff4	
		data[20]	MapItem *	0x1c3ff4	
		data[21]	MapItem *	0x969bd20	
		data[22]	MapItem *	0x1	
		data[23]	MapItem *	0x1ad69f	
		data[24]	MapItem *	0x843c888	
		data[25]	MapItem *	0xbffff1e8	
		data[26]	MapItem *	0x0	
		data[27]	MapItem *	0xffffffff	
		data[28]	MapItem *	0x0	
		data[29]	MapItem *	0x968f410	
		data[30]	MapItem *	0x5e2ff4	
		data[31]	MapItem *	0x5e4400	

Happend after clicking a few random times on the map. Only noticed it so far on 1280x800px resolution on UNIX

Change History

comment:1 Changed 19 months ago by Turbo

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

comment:2 Changed 19 months ago by Turbo

resolved by using the < operator instead of a callback function...

comment:3 Changed 19 months ago by Turbo

  • Status changed from closed to reopened
  • Resolution fixed deleted

didnt work...

comment:4 Changed 19 months ago by Turbo

  • Owner set to Turbo
  • Status changed from reopened to accepted

comment:5 Changed 19 months ago by Turbo

  • Status changed from accepted to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.