I started bc with the -l switch and then tried to calculate "5/6"; bc segfaulted. I tried to recompile it with no CFLAGS, then added one optimization at a time and recompiled it each time. It came out that it was the "-Os" flag which caused it to segfault. So I just added "replace-flags -Os -O2" to the ebuild and so the problem was fixed (at least in Gentoo...). Reproducible: Always Steps to Reproduce: 1. Compile bc with -Os 2. Fire it up with -l switch 3. Try to calculate some decimal value (5/6, 10/3 etc.) Actual Results: segfault Expected Results: print out right result
fixed in portage.