moved to ports@ On 2019-07-09, STeve Andre' <[email protected]> wrote: > > > On 7/8/19 10:57 PM, [email protected] wrote: >> Hi! >> >> We all know that bugs don't get fixed without backtraces. >> >> After few years of using OpenBSD I am annoyed to get mocked for not >> sending backtraces, but why I don't send them? The answer is: OpenBSD >> doesn't provide software packages with debugging symbols. >> >> Do I look like a Gentoo user? It's not cool to leave no choice to bug >> reporters but to make them rebuild all ports they use with: >> $ env CFLAGS='-pipe -g' DEBUG=-g make -j $(sysctl -n hw.ncpu) reinstall >> >> The current OpenBSD is definetely not friendly to bug reporters, so >> don't blame me when I refuse to send backtraces, I am simply not in mood >> to rebuild software when it shouldn't be necessary, I value my time. > > For heavens sake, why don't you compile the code with symbols? If you > have the ability to go inside and look for problems, you can compile > stuff yourself. If you're going to submit a patch you have to build > to test the fix!
Perhaps you have a core from a hard to trigger crash, and you aren't able to get a matching binary by rebuilding things. It is a valid request and has been made before by people with rather more tact. But it's not an easy fix. An all-arches package snapshot currently runs at 200GB and adding symbols across the board would add a lot to this. Slower builds, more disk space and bandwidth needed on build/signing infrastructure and mirrors and, if they're in the main packages, also on user systems. But done on a port-by-port opt-in basis for more important ports (major libraries, for example) it might be viable. I think it would need to use detached symbols in a subpackage - build with symbols, then postprocess the various files, it looks like this might do the trick objcopy --only-keep-debug $file $file.debug objcopy --strip-debug $file objcopy --add-gnu-debuglink $file.debug $file or llvm-objcopy --only-keep=debug $file $file.debug llvm-objcopy --strip-debug $file llvm-objcopy --add-gnu-debuglink $file.debug $file And then it needs additional infrastructure to handle putting these into subpackages (which gets complicated where a port already uses subpackages). Unfortunately the tone of mazocomp's mail ather puts one off from wanting to spend time on this... Maybe I need to polish my scorefile as it only dropped the original mail not the replies :-)
