Post AUqCd3VbaS8Qtvb0zo by i@declin.eu
(DIR) More posts by i@declin.eu
(DIR) Post #AUqCCXVlvhQs8N1w0m by crunklord420@kiwifarms.cc
2023-04-20T10:46:51.330248Z
3 likes, 0 repeats
I'm getting the impression that clang plays fast and loose with memory compared to gcc. I'm trying to track down the issue I've been having, and using -fsanitize=address on Linux clang -O3 -flto produces bad memory reads inside ZSTDs codebase, while GCC is fine.I might upload a draft of my code and ask @Inginsub to look at it.
(DIR) Post #AUqCd3VbaS8Qtvb0zo by i@declin.eu
2023-04-20T10:52:18.188806Z
0 likes, 0 repeats
@crunklord420 @Inginsub also try -fsanitize=undefined, you might be hitting nasal daemons like https://github.com/facebook/zstd/pull/3555 that only triggers on llvm
(DIR) Post #AUqEf20ULFP6jM6xQu by Inginsub@clubcyberia.co
2023-04-20T11:14:57.752792Z
0 likes, 0 repeats
@crunklord420 see if using clang is worth it. The last time I tested it, clang produced code 7-8% slower than gcc, up to 35% slower with simd operations. It also breaks all conventions trying to produce binaries that are like 4 bytes smaller for no reason
(DIR) Post #AUqGvE3tUOlKeyYPUe by test_1111111@kiwifarms.cc
2023-04-20T11:24:01.977978Z
0 likes, 0 repeats
@crunklord420 @Inginsub run it through gdb and valgrind and show us the stack trace.
(DIR) Post #AUqGvEf7G0XKWPy8Vk by Kirino@kiwifarms.cc
2023-04-20T11:39:58.492726Z
1 likes, 0 repeats
@test_1111111 I know this means nothing to you but I was worried after you stopped posting. Glad you're okay friend :comfyheart:
(DIR) Post #AUqKXbShEjH66I98z2 by crunklord420@kiwifarms.cc
2023-04-20T12:20:21.569962Z
2 likes, 0 repeats
@Inginsub I'm just a believer in the idea that if you can get your code compiling without warnings across multiple compilers it will end up revealing hidden issues.I actually just ran the code through tcc, works on Linux (but I might have to tweak the ELF reader and it seems to be linking to extra symbols).
(DIR) Post #AUsd3q52bkSACFWSq8 by RedTechEngineer@bae.st
2023-04-21T14:57:54.468104Z
0 likes, 0 repeats
@crunklord420 @Inginsub gnu victory? :rms: