Re: dpkg bus error on sparc/unstable: Re: Bits from the RM

2003-08-30 Thread Aaron Lehmann
On Tue, Aug 26, 2003 at 12:29:09PM -0500, Adam Heath wrote:
 Well, if I compile lib/myopt.c and lib/startup.c, without -O2, I get no bus
 error.  Maybe this is a gcc issue?

It's probably a good idea to try gcc-snapshot and see if this has been
fixed already. In the worst cases, gcc hackers sometimes use binary
searches of the CVS repository to find out when something broke, or
when something was fixed.


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



Re: dpkg bus error on sparc/unstable: Re: Bits from the RM

2003-08-27 Thread Phil Edwards
On Tue, Aug 26, 2003 at 12:29:09PM -0500, Adam Heath wrote:
 
  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?

FWIW, the comment here

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11366#c8

originally dealing with the XDM-AUTHORIZATION cookie issue, applies equally
well to these sorts of situation.  If someone works it down to a flag,
or a combination of flags, and a preprocessed source file, then GCC's
upstream can hack on it.

-- 
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.
- Brian W. Kernighan


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



dpkg bus error on sparc/unstable: Re: Bits from the RM

2003-08-26 Thread Adam Heath
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.



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



Re: dpkg bus error on sparc/unstable: Re: Bits from the RM

2003-08-26 Thread Adam Heath
On Tue, 26 Aug 2003, Adam Heath wrote:

 Well, if I compile lib/myopt.c and lib/startup.c, without -O2, I get no bus
 error.  Maybe this is a gcc issue?

gcc 3.2 also fails, but 2.95 works fine, no errors.

doogie lib/myopt.c(loadcfgfile)
mrvn doogie: Did that ever stop anything from breaking?
doogie with -O2, it fails in that function, on the last free
doogie when I remove -O2, it fails in lib/startup.c:standard_startup
doogie removing -O2 from that file, and it works(I don't know where it
failed in that function)

ps: compiling statically with 2.95 and libc 2.3.2-2 fails, with:

gcc-2.95 -L../lib -L../optlib -static -o md5sum-static  md5sum.o -ldpkg -lopt
/usr/lib/gcc-lib/sparc-linux/2.95.4/libgcc.a(_udivdi3.o)(.text+0xac): In function 
`__udivdi3':
: undefined reference to `.udiv'
/usr/lib/gcc-lib/sparc-linux/2.95.4/libgcc.a(_umoddi3.o)(.text+0xac): In function 
`__umoddi3':
: undefined reference to `.udiv'



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