Project

General

Profile

Bug #12302

ksh dumps core while parsing file

Added by Alexander Pyhalov 7 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:

Description

cat test.ksh 
#!/bin/ksh93

pt () {
}

ksh93 test.ksh 
test.ksh: syntax error at line 4: `}' unexpected
Segmentation Fault (core dumped)

mdb core
Loading modules: [ libc.so.1 ld.so.1 ]
> $C
fffffd7fffdff0e0 libast.so.1`sfstack+0x41(fffffd7feeffa060, 29eeffa060)
fffffd7fffdff130 libast.so.1`stkinstall+0x8f(29eeffa060, 0)
fffffd7fffdff290 libshell.so.1`funct+0x316(4125a0)
fffffd7fffdff360 libshell.so.1`simple+0xaa3(4125a0, 85, 0)
fffffd7fffdff3c0 libshell.so.1`item+0x109(4125a0, 85)
fffffd7fffdff400 libshell.so.1`term+0x4c(4125a0, 84)
fffffd7fffdff430 libshell.so.1`list+0x11(4125a0, 84)
fffffd7fffdff480 libshell.so.1`sh_cmd+0x44(4125a0, a, 84)
fffffd7fffdff530 libshell.so.1`sh_parse+0x1cc(fffffd7fef164320, 4a9170, 0)
fffffd7fffdff630 libshell.so.1`exfile+0x3c4(fffffd7fef164320, 0, 3)
fffffd7fffdff730 libshell.so.1`sh_main+0x3cb(2, fffffd7fffdff7b8, 0)
fffffd7fffdff760 main+0x4d()
fffffd7fffdff790 _start_crt+0x83()
fffffd7fffdff7a0 _start+0x18()
> ::status
debugging core file of ksh93 (64-bit) from pyhalov
file: /usr/bin/amd64/ksh93
initial argv: ksh93 test.ksh
threading model: native threads
status: process terminated by SIGSEGV (Segmentation Fault), addr=29eeffa0bc

Also available in: Atom PDF