A lot of the programs I use on my machine exit with segfaults. Nearly all programs function normally until being closed, at which point they segfault. So far the only two programs that have not worked because of this issue are VLC and Cinnamon, while many other programs like firefox and chromium are affected, but only segfault on what would have been a normal exit.
This does not seem to be a problem with my RAM. I removed all RAM from my machine and replaced it with one known good stick, but the problem persisted.
On running the affected programs with gdb, all seem to return the same trace.
Code:
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff79af080 in __lll_unlock_elision () from /usr/lib/libpthread.so.0
So I am led to believe that the root of the problem is in libpthread. I am currently running glibc version 2.21. Please ask anything more you wish to know, and help if you can. Thank you.