Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] bc segfaults when using math library, and patch
@ 2015-06-09 22:56 grepper
  2015-06-10 14:17 ` Peter Korsgaard
  0 siblings, 1 reply; 2+ messages in thread
From: grepper @ 2015-06-09 22:56 UTC (permalink / raw)
  To: buildroot

I have attached a patch that fixes the segfault in bc when it is used
with the math library loaded. A developer on #buildroot also commented
that perhaps buildroot should use the alpha version of bc like many
distros instead - I can't comment on that.

regards,
Robert


-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_mathlib_segfault.patch
Type: text/x-patch
Size: 464 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150609/0e61a099/attachment.bin>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Buildroot] bc segfaults when using math library, and patch
  2015-06-09 22:56 [Buildroot] bc segfaults when using math library, and patch grepper
@ 2015-06-10 14:17 ` Peter Korsgaard
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2015-06-10 14:17 UTC (permalink / raw)
  To: buildroot

>>>>> "grepper" == grepper  <grepper@gmail.com> writes:

 > I have attached a patch that fixes the segfault in bc when it is used
 > with the math library loaded. A developer on #buildroot also commented
 > that perhaps buildroot should use the alpha version of bc like many
 > distros instead - I can't comment on that.

I was going to ask if this is already upstream and if you had a
reference to the upstream version control, but GNU bc doesn't seem to
have any public vcs (or any real activity).

I see the latest alpha release is from 2006, and that one does make
save_adr static and NEWS contains the following note:

Bug fixes:
        fixes bug in load_code introduced by mathlib string storage in 1.06.


I personally don't use bc, but if people (and other distributions) think
the 1.06.95 alpha version is better then lets use it.

A quick look at the Debian package shows that they are carrying some
patches that might be interesting, E.G. 03_array_initialize.diff seems
like a clear bugfix:

https://packages.debian.org/jessie/bc

Care to send a patch to bump the version with this info?

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-06-10 14:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-09 22:56 [Buildroot] bc segfaults when using math library, and patch grepper
2015-06-10 14:17 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox