View Issue Details

IDProjectCategoryView StatusLast Update
0004470Spring engineAIpublic2014-08-30 11:36
ReporterAnarchid Assigned Toabma  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version97.0.1+git 
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

Activities

Anarchid

2014-07-07 13:39

reporter   ~0013421

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

Anarchid

2014-08-26 01:12

reporter   ~0013574

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

abma

2014-08-30 11:36

administrator   ~0013581

thanks!

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

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