Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#38585 - [calc] crashes & archlinux does not ship readline version
Attached to Project:
Community Packages
Opened by Mathias Buhr (napcode) - Monday, 20 January 2014, 09:25 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 27 January 2014, 09:04 GMT
Opened by Mathias Buhr (napcode) - Monday, 20 January 2014, 09:25 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 27 January 2014, 09:04 GMT
|
DetailsDescription:
Calc's internal history implementation segfaults (at least on x86_64). I already wrote a patch for the calc developers but my mail didn't come through. Nevertheless, there is a readline version which is working and probably better supported but archlinux does not ship this version. It can be enabled in the Makefile by (un-)commenting the appropriate lines. I suggest building & shipping the readline version. Additional info: * package version(s): calc-2.12.4.3 * config and/or log files etc. Steps to reproduce: Enter a few commands & calculations in calc and navigate though the history using the arrow keys. Valgrind reports problems as well. |
This task depends upon
Closed by Sergej Pupykin (sergej)
Monday, 27 January 2014, 09:04 GMT
Reason for closing: Fixed
Additional comments about closing: or try to reproduce it on clean system and provide steps to reproduce.
Monday, 27 January 2014, 09:04 GMT
Reason for closing: Fixed
Additional comments about closing: or try to reproduce it on clean system and provide steps to reproduce.
$ ldd /usr/bin/calc
linux-vdso.so.1 (0x00007fff899fe000)
libcalc.so.2.12.4.13 => /usr/lib/libcalc.so.2.12.4.13 (0x00007f0c6f7ad000)
libcustcalc.so.2.12.4.13 => /usr/lib/libcustcalc.so.2.12.4.13 (0x00007f0c6f5a7000)
libreadline.so.6 => /usr/lib/libreadline.so.6 (0x00007f0c6f361000)
libhistory.so.6 => /usr/lib/libhistory.so.6 (0x00007f0c6f158000)
libncursesw.so.5 => /usr/lib/libncursesw.so.5 (0x00007f0c6eef3000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007f0c6eb49000)
/lib64/ld-linux-x86-64.so.2 (0x00007f0c6fa89000)
it is built using
make USE_READLINE="-DUSE_READLINE" READLINE_LIB="-lreadline" READLINE_EXTRAS="-lhistory -lncurses" -j1
$ calc
C-style arbitrary precision calculator (version 2.12.4.13)
Calc is open software. For license details type: help copyright
[Type "exit" to exit, or "help" for help.]
; 2+2
4
; 3+3
6
; 4+4
8
; 2+2
4
;
$ pacman -Q calc
calc 2.12.4.13-1