Julia Hansbrough 9ce14f4b01 prog: Fix page fault for syz-stress users.
In resources.go, haveGettime is False when SyscallMap["clock_gettime"]
is nil.

In this code, there's a branch that's entered only if Gettime is False,
which appends SyscallMap["clock_gettime"] to resourceCtors.  That is, it
appends nil to resourceCtors, then iterates through resourceCtors and
tries to dereference the .Name of each time, in this case, nil.Name.

This was causing a page fault on Fuchsia.

I'm not certain how the "standard" flow is supposed to work, since it
seems like any code that enters the `if cantCreate == "" && !haveGettime`
should fail... but, removing that section causes test failures, so let's
just enforce that SyscallMap["clock_gettime"] is non-nil.

If there's a better way to solve this, I'm open to suggestions.
2018-05-03 07:50:03 +02:00
..
2018-02-19 21:48:20 +01:00
2018-02-19 21:48:20 +01:00
2018-02-26 18:21:51 +01:00
2018-03-21 12:18:36 +01:00
2018-02-19 21:48:20 +01:00
2018-03-08 12:02:17 +01:00
2018-02-19 21:48:20 +01:00
2018-04-24 13:23:01 +02:00
2018-03-08 18:48:26 +01:00
2018-04-24 13:23:01 +02:00
2018-02-19 21:48:20 +01:00
2018-03-08 12:02:17 +01:00
2018-03-08 18:48:26 +01:00
2018-03-08 18:48:26 +01:00
2018-03-08 18:48:26 +01:00
2018-03-08 18:48:26 +01:00
2018-03-08 18:48:26 +01:00