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

bug in toolchain on alpha?

Please cc me I'm not on this list...

Are there any known problems with the toolchain on the alpha
platform?.  While trying to diagnose bug #131293, I've run into
something very strange.  Either something is generating coreect
argument passing code or gdb is rather hrribly broken.  Consider:

(gdb) bt
#0  ElGamalSigPrivateKey::ElGamalSigPrivateKey (this=0x11ffff530, 
    __in_chrg=543177808, rng=@0x100, pbits=544719648) at elgamal.cpp:243
#1  0x120183cc4 in cElGamalSig::GenerateKeys (this=0x11ffff530, 
    retPrivate=@0x11ffff5f0, retPublic=@0x11ffff5f8) at crypto.cpp:1159
#2  0x120195388 in cKeyFile::GenerateKeys (this=0x11ffff5e0, keySize=1024, 
    passphrase=0x120783b30 "", passphraseLen=0) at keyfile.cpp:368


(gdb) p *mpData
$2 = {mKeyBits = 1024, mAction = SIGN, mpPrivateKey = 0x0, mpPublicKey = 0x0, 
  mSHA = {<IteratedHash<unsigned int>> = {<HashModule> = {_vptr. = 0x5}, 
      _vb.HashModule = 0x120784c38, blockSize = 64, countLo = 0, countHi = 0, 
      data = {size = 16, ptr = 0x120784c50}, digest = {size = 5, 
        ptr = 0x120784ca0}, _vptr. = 0x1205a59f0}, <No data fields>}, 
  mpRNG = 0x120784cc0}

Line 1159 of crypto.cpp, (the middle item in the bt above) is

ElGamalSigPrivateKey* pNewPrivateKey = new ElGamalSigPrivateKey(*mpData->mpRNG, mpData->mKeyBits);

when you look at the contents of mpData you see that the mKeyBits
entry is 1024 and the mpRNG entry is 0x120784cc0.  Yet in the
backtrace above those values become 544719648 & 0x100 respectively in
frame #0 where the ElGamalSigPrivateKey construcor is invoked.

I've built and run this on lully.d.o which shows the following tool

ii  gcc            2.95.4-9       The GNU C compiler.
ii  binutils The GNU assembler, linker and binary utiliti
ii  g++            2.95.4-9       The GNU C++ compiler.

What's going on here?


"Farcical aquatic ceremonies are no basis for a system of government!"


"And what do we burn apart from witches?"... "More witches!"

Reply to: