Backtrace from core dump obtained by running this in a debug build of
ksh:

ubu...@ubuntu:~$ gdb `which ksh` core
GNU gdb (GDB) 7.2-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/ksh...done.
[New Thread 32594]

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Core was generated by `ksh /u/kreti/read_all_files_in_hierarchy.ksh 
/media/ACER'.
Program terminated with signal 11, Segmentation fault.
#0  0x00000000004dee53 in sfswap (f1=0x2365c80, f2=0x2001) at 
/home/ubuntu/ksh-93t+20100309/src/lib/libast/sfio/sfswap.c:45
45              if(f2 && SFFROZEN(f2) && (f2->mode&SF_PUSH) )
(gdb) where
#0  0x00000000004dee53 in sfswap (f1=0x2365c80, f2=0x2001) at 
/home/ubuntu/ksh-93t+20100309/src/lib/libast/sfio/sfswap.c:45
#1  0x000000000042678f in sh_iorestore (shp=0x77e560, last=0, jmpval=0) at 
/home/ubuntu/ksh-93t+20100309/src/cmd/ksh93/sh/io.c:1557
#2  0x000000000045d4b3 in sh_exec (t=0x235c5e0, flags=7) at 
/home/ubuntu/ksh-93t+20100309/src/cmd/ksh93/sh/xec.c:1419
#3  0x000000000045dac7 in sh_exec (t=0x235c5e0, flags=7) at 
/home/ubuntu/ksh-93t+20100309/src/cmd/ksh93/sh/xec.c:1540
#4  0x000000000045dbff in sh_exec (t=0x235c600, flags=7) at 
/home/ubuntu/ksh-93t+20100309/src/cmd/ksh93/sh/xec.c:1565
#5  0x0000000000461742 in sh_funscope (argn=3, argv=0x2353518, fun=0, 
arg=0x7fffca4d8c80, execflg=7) at 
/home/ubuntu/ksh-93t+20100309/src/cmd/ksh93/sh/xec.c:2646
#6  0x0000000000461d31 in sh_funct (shp=0x77e560, np=0x235c7c0, argn=3, 
argv=0x2353518, envlist=0x0, execflg=7) at 
/home/ubuntu/ksh-93t+20100309/src/cmd/ksh93/sh/xec.c:2728
#7  0x000000000045c6f1 in sh_exec (t=0x23651b0, flags=7) at 
/home/ubuntu/ksh-93t+20100309/src/cmd/ksh93/sh/xec.c:1138
#8  0x0000000000461742 in sh_funscope (argn=2, argv=0x23534d8, fun=0, 
arg=0x7fffca4d95d0, execflg=5) at 
/home/ubuntu/ksh-93t+20100309/src/cmd/ksh93/sh/xec.c:2646
#9  0x0000000000461d31 in sh_funct (shp=0x77e560, np=0x2352dc0, argn=2, 
argv=0x23534d8, envlist=0x0, execflg=5) at 
/home/ubuntu/ksh-93t+20100309/src/cmd/ksh93/sh/xec.c:2728
#10 0x000000000045c6f1 in sh_exec (t=0x2353450, flags=5) at 
/home/ubuntu/ksh-93t+20100309/src/cmd/ksh93/sh/xec.c:1138
#11 0x0000000000407dca in exfile (shp=0x77e560, iop=0x235b340, fno=10) at 
/home/ubuntu/ksh-93t+20100309/src/cmd/ksh93/sh/main.c:600
#12 0x0000000000407247 in sh_main (ac=3, av=0x7fffca4d9fa8, userinit=0) at 
/home/ubuntu/ksh-93t+20100309/src/cmd/ksh93/sh/main.c:372
#13 0x0000000000406523 in main (argc=3, argv=0x7fffca4d9fa8) at 
/home/ubuntu/ksh-93t+20100309/src/cmd/ksh93/sh/pmain.c:46
(gdb) quit

-- 
ksh93 crashed with SIGSEGV
https://bugs.launchpad.net/bugs/638867
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to