2024-04-19 13:56 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0004470Spring engineAIpublic2014-08-30 11:36
ReporterAnarchid 
Assigned Toabma 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version97.0.1+git 
Target VersionFixed in Version 
Summary0004470: Java AI's cause segfault on attempt to query an unit's customParams
DescriptionIt seems that any attempt to query customParams on economy buildings in ZK causes an immediate and unconditional segfault.
Steps To Reproduce1) java.util.Map<java.lang.String,java.lang.String> params = unit.getDef().getCustomParams();
2) Segfault

Additional InformationInfolog: http://hastebin.com/fivilutamu.xml
gdb "set logging on file": http://hastebin.com/itutediruj.pas (no symbols, sorry, will obtain if needed)

Possible cause: https://github.com/ZeroK-RTS/Zero-K/blo ... ar.lua#L27 -> is an int, while interface doesn't suspect such treachery.

Possibly related thread: http://springrts.com/phpbb/viewtopic.php?f=15&t=32298

I also suspect that because since 95.0 UnitRulesParams also can contain string values, querying those will crash as well (http://spring.abma.de/doc-Interface-JavaOO/com/springrts/ai/oo/clb/ModParam.html doesn't expect receiving a string).
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0013421

Anarchid (reporter)

The "possible cause" link was cut off and i can't edit the bug description.
Link should read as https://github.com/ZeroK-RTS/Zero-K/blob/master/units/armsolar.lua#L27

~0013574

Anarchid (reporter)

https://github.com/spring/spring/pull/125

~0013581

abma (administrator)

thanks!

https://github.com/spring/spring/commit/28fadd806a1779eefb8954d879e975b3478f10f9
+Notes

-Issue History
Date Modified Username Field Change
2014-07-07 13:37 Anarchid New Issue
2014-07-07 13:39 Anarchid Note Added: 0013421
2014-08-26 01:12 Anarchid Note Added: 0013574
2014-08-30 11:36 abma Note Added: 0013581
2014-08-30 11:36 abma Status new => resolved
2014-08-30 11:36 abma Resolution open => fixed
2014-08-30 11:36 abma Assigned To => abma
+Issue History