Description of problem:
ksh executing a script
Version-Release number of selected component:
cmdline: ksh /home/christian/bin/fib.sh 25
runlevel: 5 3
Thread no. 1 (10 frames)
#0 sh_assignok at /usr/src/debug/ksh-20120801/src/cmd/ksh93/sh/subshell.c:243
#1 nv_putval at /usr/src/debug/ksh-20120801/src/cmd/ksh93/sh/name.c:1615
#2 b_dot_cmd at /usr/src/debug/ksh-20120801/src/cmd/ksh93/bltins/misc.c:316
#3 sh_funct at /usr/src/debug/ksh-20120801/src/cmd/ksh93/sh/xec.c:3523
#4 sh_exec at /usr/src/debug/ksh-20120801/src/cmd/ksh93/sh/xec.c:1579
#5 sh_subshell at /usr/src/debug/ksh-20120801/src/cmd/ksh93/sh/subshell.c:590
#6 comsubst at /usr/src/debug/ksh-20120801/src/cmd/ksh93/sh/macro.c:2135
#7 varsub at /usr/src/debug/ksh-20120801/src/cmd/ksh93/sh/macro.c:1168
#8 copyto at /usr/src/debug/ksh-20120801/src/cmd/ksh93/sh/macro.c:633
#9 sh_mactrim at /usr/src/debug/ksh-20120801/src/cmd/ksh93/sh/macro.c:183
Created attachment 850800 [details]
Created attachment 850801 [details]
Created attachment 850802 [details]
Created attachment 850803 [details]
Created attachment 850804 [details]
Created attachment 850805 [details]
Created attachment 850806 [details]
Created attachment 850807 [details]
Created attachment 850808 [details]
Created attachment 850809 [details]
Created attachment 850810 [details]
FWIW, this "fib.sh" is a small script to generate Fibonacci numbers, written by someone else: http://stackoverflow.com/a/19624322/2303098
And yeah, it's 100% reproducible with ksh with arguments greater than 24. bash,zsh seem to be fine. Also, ksh on an entirely different system (powerpc, ksh 93u+ 2012-02-29) dumps core as well, so this may be an "upstream" issue, if there is such a thing for "ksh".
ksh-20120801-12.fc19 has been submitted as an update for Fedora 19.
ksh-20120801-14.fc20 has been submitted as an update for Fedora 20.
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ksh-20120801-14.fc20'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
After installing this update, ksh-20120801-14, man ksh inside ksh freezes the shell and it must be killed with SIGKILL.
Updating : ksh-20120801-14.fc20.x86_64 1/2
Cleanup : ksh-20120801-11.fc20.x86_64 2/2
Verifying : ksh-20120801-14.fc20.x86_64 1/2
Verifying : ksh-20120801-11.fc20.x86_64 2/2
[sample@example ~]$ ksh
$ man ksh
ksh-20120801-15.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
ksh-20120801-17.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.