[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#136349: dpkg: segfaults if path is not set



Andrew Suffield wrote:
> This is probably #135486 (zsh), please try with a different shell.

I originally saw the bug in a chroot on another machine. I was running
bash as my shell in the chroot.

Anyway:

root@paper:/var/cache/apt/archives>exec /bin/sh
sh-2.05a# env -i dpkg -i aumix_2.7-16_i386.deb
dpkg - warning: PATH is not set.
Segmentation fault
sh-2.05a# sh --version
GNU bash, version 2.05a.0(1)-release (i386-pc-linux-gnu)
Copyright 2001 Free Software Foundation, Inc.
h-2.05a# env -i dpkg-architecture            
DEB_BUILD_ARCH=i386
DEB_BUILD_GNU_CPU=i386
DEB_BUILD_GNU_SYSTEM=linux
DEB_BUILD_GNU_TYPE=i386-linux
DEB_HOST_ARCH=i386
DEB_HOST_GNU_CPU=i386
DEB_HOST_GNU_SYSTEM=linux
DEB_HOST_GNU_TYPE=i386-linux
sh-2.05a# 

My guess is this is not the same bug, and that dpkg is probably
dereferencing a NULL pointer (getenv, etc). I can reproduce the
dpkg-architecture segfault fine, but only if I am running zsh.

-- 
see shy jo



Reply to: