s002 compiles but segfaults