2025-06-14 04:44 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001470Spring engineLuapublic2009-06-30 20:48
ReporterSirMaverick 
Assigned ToKloot 
PrioritynormalSeverityminorReproducibilitysometimes
StatusresolvedResolutionfixed 
Product Version0.79.1.0 
Target VersionFixed in Version0.79.1.0+git 
Summary0001470: LevelHeightMap can crash spring
DescriptionLevelHeightMap can crash spring when x2/z2 has lower values than x1/z1.

Spring.LevelHeightMap(100, 500, 500, 50, 50) causes a crash

Spring.LevelHeightMap(500, 500, 50, 50, 50) does not cause a crash
Additional Informationstack trace:

#0 0xb7ee6430 in __kernel_vsyscall ()
#1 0xb73a1680 in raise () from /lib/i686/cmov/libc.so.6
#2 0xb73a4d68 in abort () from /lib/i686/cmov/libc.so.6
0000003 0xb75e3f9f in __gnu_cxx::__verbose_terminate_handler () from /usr/lib/libstdc++.so.6
0000004 0xb75e1e85 in ?? () from /usr/lib/libstdc++.so.6
0000005 0xb75e1ec2 in std::terminate () from /usr/lib/libstdc++.so.6
#6 0xb75e2001 in __cxa_throw () from /usr/lib/libstdc++.so.6
#7 0xb75e2683 in operator new () from /usr/lib/libstdc++.so.6
#8 0xb75e277d in operator new[] () from /usr/lib/libstdc++.so.6
#9 0x08993dd1 in CSmfReadMap::HeightmapUpdatedNow (this=0xa2bd690, x1=248, x2=128, y1=124, y2=252) at rts/Map/SMF/SmfReadMap.cpp:171
0000010 0x0895a926 in CReadMap::UpdateDraw (this=0xa2bd690) at rts/Map/ReadMap.cpp:248
#11 0x0880560b in CGame::Draw (this=0x9cfe268) at rts/Game/Game.cpp:2750
0000012 0x083daf69 in SpringApp::Update (this=0xbfa045b0) at rts/System/SpringApp.cpp:893
0000013 0x083e2eaa in SpringApp::Run (this=0xbfa045b0, argc=1, argv=0xbfa04694) at rts/System/SpringApp.cpp:1104
0000014 0x08411738 in Run (argc=1, argv=0xbfa04694) at rts/System/Main.cpp:93
#15 0x0841179b in main (argc=1, argv=0xbfa04694) at rts/System/Main.cpp:110
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0003694

Auswaschbar (reporter)

I wonder what the best sollution would be:
* threat them as invalid arguments
* use inverse ranges (z1 <-> z2, ..)

~0003695

Kloot (developer)

It was apparently decided to swap the args.
+Notes

-Issue History
Date Modified Username Field Change
2009-06-21 22:12 SirMaverick New Issue
2009-06-30 16:02 Auswaschbar Note Added: 0003694
2009-06-30 20:48 Kloot Note Added: 0003695
2009-06-30 20:48 Kloot Status new => resolved
2009-06-30 20:48 Kloot Fixed in Version => 0.79.1.0+git
2009-06-30 20:48 Kloot Resolution open => fixed
2009-06-30 20:48 Kloot Assigned To => Kloot
+Issue History