| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
|---|---|---|---|---|---|---|---|---|---|
| 0004470 | Spring engine | AI | public | 2014-07-07 13:37 | 2014-08-30 11:36 | ||||
| Reporter | Anarchid | ||||||||
| Assigned To | abma | ||||||||
| Priority | normal | Severity | major | Reproducibility | always | ||||
| Status | resolved | Resolution | fixed | ||||||
| Product Version | 97.0.1+git | ||||||||
| Target Version | Fixed in Version | ||||||||
| Summary | 0004470: Java AI's cause segfault on attempt to query an unit's customParams | ||||||||
| Description | It seems that any attempt to query customParams on economy buildings in ZK causes an immediate and unconditional segfault. | ||||||||
| Steps To Reproduce | 1) java.util.Map<java.lang.String,java.lang.String> params = unit.getDef().getCustomParams(); 2) Segfault | ||||||||
| Additional Information | Infolog: 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). | ||||||||
| Tags | No tags attached. | ||||||||
| Checked infolog.txt for Errors | |||||||||
| Attached Files |
| ||||||||
Notes |
|
|
Anarchid (reporter) 2014-07-07 13:39 |
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 (reporter) 2014-08-26 01:12 |
https://github.com/spring/spring/pull/125 |
|
abma (administrator) 2014-08-30 11:36 |
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 |


