Re: Bc segmentation fault.

2006-03-17 Thread Dan Nicholson
On 3/17/06, Ag Hatzim [EMAIL PROTECTED] wrote:

 Some examples.
 ##
 [631](~)echo scale=3; 13 / 12 |bc
 1.083
 [632](~)echo scale=3; 13 / 12 |bc -l
 zsh: doneecho scale=3; 13 / 12 |
 zsh: segmentation fault  bc -l
 ##
 Same thing in interactive mode.

 This happens with or without readline support.

I'm getting the same thing here on an lfs-alpha build from 20060312
using gcc-4.0.3.  This is weird.  I'm gonna strace it and see if I can
figure anything out.

My other system is lfs-20061005 abouts, and bc -l works fine there.

 Attached is the built log.

#=  CONFIFURE  =

CONFIFURE? :-)

--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: Bc segmentation fault.

2006-03-17 Thread Dan Nicholson
On 3/17/06, Dan Nicholson [EMAIL PROTECTED] wrote:
  [632](~)echo scale=3; 13 / 12 |bc -l
  zsh: doneecho scale=3; 13 / 12 |
  zsh: segmentation fault  bc -l
  ##
  Same thing in interactive mode.

Jeez.  Figured it out, Ag.  Apply

http://www.linuxfromscratch.org/patches/downloads/bc/bc-1.06-fixes-1.patch

Can anyone else confirm this behavior?

--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: Bc segmentation fault.

2006-03-17 Thread Ag Hatzim
Dan Nicholson([EMAIL PROTECTED])@Fri, Mar 17, 2006 at 02:48:55PM -0800:
 
 Jeez.  Figured it out, Ag.  Apply
 
 http://www.linuxfromscratch.org/patches/downloads/bc/bc-1.06-fixes-1.patch

That was it Dan,many thanks.

Funny,i search all the web for the fix,and i had it (the patch) in my disk. :)

CONFIFURE? :-)
Fixed :)
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page