Debugging a strange FPE (maybe about GLFW)

I get a Floating Point Exception when I run my program either normally or in gdb... here's the backtrace: https://bpaste.net/show/5c100c28920f

But in valgrind, it works fine always. It's strange because this project is getting quite old, and I haven't really had problems like this with OpenGL/GLFW before. However, I've always had the following errors in valgrind at the very start of my program, but I don't know what to do about it: https://bpaste.net/show/8ffb249942a4

When I try with clang's AddressSanitizer, I get this output:
https://bpaste.net/show/d5cb3635b488

My project has gotten quite big so I don't know what piece of code could be helpful. Maybe GLFW_boilerPlate(): https://bpaste.net/show/137343cd8456

What I need help with is just how I can proceed to find the origins of all my problems.
Topic archived. No new replies allowed.