On Tue, 26 Aug 2003, GOTO Masanori wrote: > At Mon, 25 Aug 2003 19:01:14 -0500 (CDT), > Adam Heath wrote: > > On Fri, 22 Aug 2003, GOTO Masanori wrote: > > > > > It was reported by joshk on IRC, but I'm not still clear where this > > > problem come from. Example: > > > > > > ultra30:~> dpkg -s libc6 | grep Version > > > Version: 2.3.2-3 > > > ultra30:~> dpkg -s dpkg | grep Version > > > Version: 1.10.10 > > > ultra30:~> dpkg > > > Bus error > > > > > > dpkg works well with some options, but only typing `dpkg' breaks with > > > bus error. It's not related with the existence of libc6-sparc64. > > > From tracking with gdb, dpkg breaks setjmp()/longjmp(). The > > > mysterious thing is that it works fine to compile gcc-3.2/gcc-3.3 > > > without -O2 optimization. It's also ok with glibc 2.3.1-17, IIRC. > > > > Hmm. I'm reminded of a problem on s390x. 64-bit arch, but when dpkg was > > initializing some variable, it only did it to the lower(or upper, can't > > recall) 32 bits. Later, it blew up. > > dpkg works fine with trex.debian.org dchroot unstable + my self built > 2.3.2-1 (2003-07-08 cvs) using LD_LIBRARY_PATH, so it seems other > issue. > > > It's too bad valgrind doesn't work on non-i386. > > > > Is there a debian machine I can access that has this problem? The last 2 > > times some odd issue came up like this, one turned out to be a dpkg > > bug(s390x), and one was a multi-year old bug in libc6 assem(memcpy error, at > > the end of the buffer, when using mmap, on alpha). In both cases, it didn't > > take me long to track down(not more than half a day). > > Yes, you can check on vore.debian.org dchroot unstable. > > vore:~> dpkg > Bus error
Well, if I compile lib/myopt.c and lib/startup.c, without -O2, I get no bus error. Maybe this is a gcc issue? -- (unstable)[EMAIL PROTECTED]:~/dpkg-1.10.10$ gcc -v Reading specs from /usr/lib/gcc-lib/sparc-linux/3.3.2/specs Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --with-cpu=v7 --enable-objc-gc sparc-linux Thread model: posix gcc version 3.3.2 20030812 (Debian prerelease) (unstable)[EMAIL PROTECTED]:~/dpkg-1.10.10$ dpkg -s libc6 Version: 2.3.2-3 -- dpkg is 1.10.10.