Spiders and cave spiders jump and rotate randomly when there is a block 6 blocks above them, see the attached video Spiders jumping and rotating (17w06a).mp4.
Note: This might relate to MC-94054 but is not a duplicate because that bug happens without a block above them as well.
- Create a Superflat world with the following preset
- Go between the two stone layers and spawn spiders and cave spiders
→ After some time you should see spiders or cave spiders randomly jumping and rotating