|
01:33
shareable6 left
01:36
shareable6 joined
04:39
kjp left
04:42
kjp joined
07:20
lizmat left,
lizmat joined
|
|||
| ShimmerFairy | I'm running into a segfault in MVM_spesh_arg_guard_run(), and it seems the issue boils down to the fact that the local variable `test` starts out NULL, and the function implicitly expects `MVM_SPESH_GUARD_OP_LOAD_ARG` to always be the first case hit in the loop over the nodes. | 07:48 | |
| I can't tell if this is just poor C programming, or if there's a deeper problem where LOAD_ARG needs to be the first thing and isn't. | 07:49 | ||
|
08:08
shareable6 left
08:11
shareable6 joined
|
|||
| ShimmerFairy | Another tidbit: It seems to me the node list starts off with a list of CALLSITE nodes, and the one that leads to the problem node is pointing a couple elements after a LOAD_ARG that links to it. Also, the CALLSITE node just before the one that escapes has its "escape" set to another CALLSITE, creating an infinite loop. Not sure if that's intended. | 08:23 | |
| Well, that loopback didn't occur in another run, so likely unrelated. | 08:31 | ||
| OK, while I don't understand the function fully, I see that add_nodes_for_typed_argument() is intentionally returning indexes to the problem node types, which is used to set the first node of the callsite. It's a recursive function, so perhaps the top-level call isn't intended to return them, but I don't immediately see any clue that that's the case. | 09:32 | ||
| In any case, AFAICT, adding in null guards wouldn't just cover up the real issue, so that's the fix I'll try. | |||
| That didn't entirely fix the problem, but oh wow, I think my problem might actually come down to the fact that MVMSpeshArgGuardNode uses 16-bit integers for their "yes" and "no" indexes, even though MVMSpeshArgGuard measures the node array with *32*-bit integers. | 11:02 | ||
| lizmat | that feels... hmmm... sub-optimal :-) | 11:11 | |
| ShimmerFairy | Yeah, as soon as I get some baseline times I'll test changing the struct over (the previous fix I did made my code miracuously faster, so I want to get a better sense of how the changes affect things) | 11:22 | |
|
12:28
lizmat left
12:29
lizmat_ joined
13:17
lizmat_ left
13:18
lizmat joined
16:17
rakkable left
16:18
rakkable joined
22:35
Geth left
23:08
Geth joined
23:29
Geth joined
|
|||