[Mauiusers] segfault in x86_64 maui build

Garrick Staples garrick at usc.edu
Tue Nov 2 23:00:02 MST 2004

Hi all,
   I'm trying to setup a new job chain on an x86_64 box, but I'm getting a
segfault in the SHA1 code when trying to contact qbank.


I assume the problem is between #29 and #28 below.  The 3rd arg to
MAMQBDoCommand is the same as the 1st arg to MSecGetChecksum, but it is getting
stepped on somewhere.  Stepping through it, I see that Transaction in
MAMQBDoCommand() is fine right up until the call to MSecGetChecksum(), but then
Buf is immediately junk.  I guess the stack is getting smashed before #29?
*shrug* This is over my head now.

Thanks in advance!

(gdb) set args -d
(gdb) run
Starting program: /usr/bin/maui -d

Program received signal SIGSEGV, Segmentation fault.
0x00000000004a705b in __MSecSHA1Transform (state=0x7fbfe69e40, buffer=0x0) at MSec.c:710
710       }  /* END __MSecSHA1Transform() */
(gdb) bt
#0  0x00000000004a705b in __MSecSHA1Transform (state=0x7fbfe69e40, buffer=0x0) at MSec.c:710
#1  0x0000003000000020 in ?? ()
#2  0x0000007fbfe6a230 in ?? ()
#3  0x0000007fbfe6a170 in ?? ()
#24 0x00000000009ac2d4 in MAM ()
#25 0x0000000000000019 in ?? ()
#26 0x0000007fbfe6b6f0 in ?? ()
#27 0x0000000000000000 in ?? ()
#28 0x00000000004a478f in MSecGetChecksum (Buf=0x19 <Address 0x19 out of bounds>, BufSize=0,
    Checksum=0x7fbfe6cec0 "COMMAND=version AUTH=root", Digest=0x4206e9 "¸\001", Algo=10142420,
    CSKeyString=0x7fbfe6b6f0 "") at MSec.c:209
#29 0x0000000000430540 in MAMQBDoCommand (A=0x9ac240, CmdIndex=0,
    Transaction=0x7fbfe6cec0 "COMMAND=version AUTH=root", E=0x7fbfe6b6f0, SC=0x7fbfe6c9fc,
    Response=0x7fbfe6cac0 "") at MAM.c:2937
#30 0x000000000042ce9a in MAMInitialize (AS=0x0) at MAM.c:157
#31 0x000000000049d14b in MSysStartServer (IsFBServer=33295056) at MSys.c:2715
#32 0x000000000040380e in main (ArgC=2, ArgV=0x7fbfe6d320) at Server.c:138

Garrick Staples, Linux/HPCC Administrator
University of Southern California
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.supercluster.org/pipermail/mauiusers/attachments/20041102/395ee3ff/attachment.bin

More information about the mauiusers mailing list