SliTaz SliTaz Forum

You are not logged in.

#1 2014-10-05 11:30:57

ernie.cordell
Member
Registered: 2013-10-06
Posts: 2

bc -l segfaults

bc seems to run fine, but the addition of mathlib causes a segfault with the most trivial operation. 

I found this https://bbs.archlinux.org/viewtopic.php?id=27514

which attributes the problem to compilation with optimisation:  With O set to zero, they say the  problem goes away -- do you believe I have the same problem? because I suspect some other part of the libraries has become corrupted in my installation. 

I'm still using 4.0, which I have expanded beyond its flavour, and I'm running it off a small hard-disk partition.

Offline

#2 2014-10-05 19:57:01

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: bc -l segfaults

Compiled with -O0 it does this calculation without segfault.

tux@slitaz:~$ echo "scale=10; 4*a(1)" | bc -l

3.1415926532

bc-1.06.95 allows compiling with slitaz default -Os without segfault.

Offline

#3 2014-10-06 20:53:51

ernie.cordell
Member
Registered: 2013-10-06
Posts: 2

Re: bc -l segfaults

Thanks: Runs as advertised.  If my libraries have a problem, it doesn't show up here. smile

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]