Package: posh
Version: 0.11
Severity: normal
Control: found -1 0.10.2

I can get a segfault with posh with the following command:

 function x( ) { echo foo; }

this happens on both 0.10.2 and 0.11

attached is a backtrace from 0.11 (rebuilt with DEB_BUILD_OPTIONS=nostrip):

0 dkg@alice:~$ gdb posh
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 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 /bin/posh...done.
(gdb) run -c 'function x() { echo foo; }'
Starting program: /bin/posh -c 'function x() { echo foo; }'
warning: no loadable sections found in added symbol-file system-supplied DSO at 
0x7ffff7ffa000

Program received signal SIGSEGV, Segmentation fault.
errorf (fmt=fmt@entry=0x0) at io.c:24
24              if (*fmt) {
(gdb) bt
#0  errorf (fmt=fmt@entry=0x0) at io.c:24
#1  0x000000000040abc1 in yyerror (
    fmt=fmt@entry=0x4199a9 "syntax error: `%s' %s\n") at lex.c:831
#2  0x000000000041098f in syntaxerr (what=0x419972 "unexpected") at syn.c:734
#3  0x0000000000411744 in get_command (cf=<optimized out>, cf@entry=0)
    at syn.c:261
#4  0x0000000000411bb1 in pipeline (cf=cf@entry=0) at syn.c:80
#5  0x0000000000411ca7 in andor () at syn.c:101
#6  c_list (multi=1) at syn.c:120
#7  0x0000000000412245 in yyparse () at syn.c:67
#8  compile (s=<optimized out>) at syn.c:773
#9  0x000000000040d126 in shell (s=0x0, s@entry=0x626ee8, toplevel=6454173, 
    toplevel@entry=1) at main.c:538
#10 0x00000000004024a9 in main (argc=<optimized out>, argv=0x7fffffffe6c8)
    at main.c:371
(gdb) 

regards,

        --dkg

-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (500, 'testing'), (200, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.8-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages posh depends on:
ii  debconf [debconf-2.0]  1.5.49
ii  libc6                  2.13-38

posh recommends no packages.

posh suggests no packages.

-- debconf-show failed


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to