Try to replace clear with what clear really does and see which line crashes(if any still does).
if(window.setActive())
{
glClearColor(0.f,0.f,0.f,1.f);
glClear(GL_COLOR_BUFFER_BIT);
}
should work but you need to link opengl yourself.
You can also try running with debug SFML with some IDE(or just raw gdb) and seeing where in SFML it crashes.