Segfault from Pike 8.1 - possible type check issue?
From the Pike developers mailinglist [LysLysKOM 24913337]:
24913337 idag 08:30 /14 rader/ Chris Angelico <rosuav@gmail.com>
Extern mottagare: Pike Developers <pike-devel@lists.lysator.liu.se>
Mottagare: Pike (-) developers forum <21243>
Ärende: Segfault from Pike 8.1 - possible type check issue?
float thing_sum(array(string) things) {
return `+(@(array(float))things) + 1.0;
}
Without the "+ 1.0" at the end (or some other arithmetic operation), it doesn't bomb out.
GDB is pointing to src/pike_types.cmod:11185 which is just an assignment, but I suspect the issue is the add_ref above it. Unfortunately that line gets hit a LOT, so I didn't get very far with debugging.
ChrisA
(24913337) /Chris Angelico <rosuav@gmail.com>/------