ksh crash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ksh (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
ksh is crashing when I run a script. I'm not sure if this is the same cause as 638867 so I am reporting it separately. A typical callstack is:
Program terminated with signal 11, Segmentation fault.
#0 0x00000000004e867b in sfsync (f=0x790ce0) at /home/frankster
117 (void)(
(gdb) where
#0 0x00000000004e867b in sfsync (f=0x790ce0) at /home/frankster
#1 0x000000000042add6 in sh_iosave (shp=0x7930a0, origfd=0, oldtop=0, name=0x0) at /home/frankster
#2 0x0000000000466f40 in sh_exec (t=0xd7ceb0, flags=516) at /home/frankster
#3 0x0000000000467aa9 in sh_exec (t=0xd7ceb0, flags=516) at /home/frankster
#4 0x0000000000467ba2 in sh_exec (t=0xd7d1d0, flags=516) at /home/frankster
#5 0x0000000000468e7c in sh_exec (t=0xd7c9a0, flags=516) at /home/frankster
#6 0x0000000000467bd6 in sh_exec (t=0xd7c9a0, flags=516) at /home/frankster
#7 0x000000000046832c in sh_exec (t=0xd7c1d0, flags=4) at /home/frankster
#8 0x0000000000467bd6 in sh_exec (t=0xd7c1d0, flags=4) at /home/frankster
#9 0x0000000000468eac in sh_exec (t=0xd7bde0, flags=4) at /home/frankster
#10 0x00000000004080d8 in exfile ()
#11 0x0000000000407517 in sh_main ()
#12 0x0000000000406819 in main (argc=3, argv=0x7fff38a4
(gdb)
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: ksh 93u-1
ProcVersionSign
Uname: Linux 3.0.0-12-generic x86_64
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
Date: Wed Oct 19 16:20:23 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
ProcEnviron:
LANGUAGE=en_GB:en
PATH=(custom, user)
LANG=en_GB
SHELL=/bin/bash
SourcePackage: ksh
UpgradeStatus: Upgraded to oneiric on 2011-10-14 (4 days ago)
One thing that's odd about it is that if I run the script that causes the crash on its own, its fine. However when this script is run in sequence from another script then the crash reliably occurs.