Package: dash Version: 0.5.4-7 Severity: important
Steps to reproduce segfault, within dash: mkdir -p dash-test touch dash-test/a.xpm if test -d "dash-test"; then echo "dash-test"; for pixmap in "dash-test/"*.xpm; do echo "${pixmap}"; done; fi | less The first two lines can be given in any shell, they're only for setup. The crash only seems to affect interactive operation, other things I tried like dash -c "blah blah" and dash <<EOT blah blah EOT didn't produce the crash. My bug title is a somewhat wild guess as to what actually triggers the crash. I found this bug investigating 459181, it may or may not be related. Backtraces from the above line, and a minor variant that segfaults in a different place. === CRASH VARIANT 1 if test -d "dash-test"; then echo "dash-test"; for pixmap in "dash-test/"*.xpm; do echo "${pixmap}"; done; fi | less Program received signal SIGSEGV, Segmentation fault. cmdtxt (n=0x6966) at /home/ldoolitt/deb-src/dash-0.5.4/build-tmp/../src/jobs.c:1196 1196 switch (n->type) { (gdb) bt #0 cmdtxt (n=0x6966) at /home/ldoolitt/deb-src/dash-0.5.4/build-tmp/../src/jobs.c:1196 #1 0x00000000004089f5 in cmdtxt (n=0x6966) at /home/ldoolitt/deb-src/dash-0.5.4/build-tmp/../src/jobs.c:1264 #2 0x0000000000408d28 in forkshell (jp=0x61b760, n=0x619d10, mode=<value optimized out>) at /home/ldoolitt/deb-src/dash-0.5.4/build-tmp/../src/jobs.c:1178 #3 0x0000000000403cb6 in evalpipe (n=0x61b5c0, flags=0) at /home/ldoolitt/deb-src/dash-0.5.4/build-tmp/../src/eval.c:540 #4 0x0000000000403978 in evaltree (n=0x61b5c0, flags=0) at /home/ldoolitt/deb-src/dash-0.5.4/build-tmp/../src/eval.c:289 #5 0x0000000000409da5 in cmdloop (top=1) at /home/ldoolitt/deb-src/dash-0.5.4/build-tmp/../src/main.c:237 #6 0x0000000000409ff9 in main (argc=1, argv=0x7fff272a89c8) at /home/ldoolitt/deb-src/dash-0.5.4/build-tmp/../src/main.c:178 === CRASH VARIANT 2 if test -d "dash-test"; then for pixmap in "dash-test/"*.xpm; do echo "${pixmap}"; done; fi | less Program received signal SIGSEGV, Segmentation fault. cmdtxt (n=0x619de0) at /home/ldoolitt/deb-src/dash-0.5.4/build-tmp/../src/jobs.c:1204 1204 cmdtxt(lp->n); (gdb) bt #0 cmdtxt (n=0x619de0) at /home/ldoolitt/deb-src/dash-0.5.4/build-tmp/../src/jobs.c:1204 #1 0x00000000004089f5 in cmdtxt (n=0x619de0) at /home/ldoolitt/deb-src/dash-0.5.4/build-tmp/../src/jobs.c:1264 #2 0x0000000000408d28 in forkshell (jp=0x61b760, n=0x619d10, mode=<value optimized out>) at /home/ldoolitt/deb-src/dash-0.5.4/build-tmp/../src/jobs.c:1178 #3 0x0000000000403cb6 in evalpipe (n=0x619ed8, flags=0) at /home/ldoolitt/deb-src/dash-0.5.4/build-tmp/../src/eval.c:540 #4 0x0000000000403978 in evaltree (n=0x619ed8, flags=0) at /home/ldoolitt/deb-src/dash-0.5.4/build-tmp/../src/eval.c:289 #5 0x0000000000409da5 in cmdloop (top=1) at /home/ldoolitt/deb-src/dash-0.5.4/build-tmp/../src/main.c:237 #6 0x0000000000409ff9 in main (argc=1, argv=0x7ffffaa861a8) at /home/ldoolitt/deb-src/dash-0.5.4/build-tmp/../src/main.c:178 -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.24-1-amd64 (SMP w/1 CPU core) Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/bash Versions of packages dash depends on: ii libc6 2.7-8 GNU C Library: Shared libraries dash recommends no packages. -- debconf information excluded -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]