Menu

#2322 sfcb SEGV fault in objectImpl.c:131 (ClObjectGetClString)

Stability
pending-fixed
sfcb (1090)
5
2012-04-06
2012-01-10
No

I was using sfcb-1.3.10-51.ppcnf

Program terminated with signal 11, Segmentation fault.
#0 0x0ff1fdb4 in ClObjectGetClString (hdr=0x10021ef8, id=0x3082b688) at objectImpl.c:131
131 objectImpl.c: No such file or directory.
in objectImpl.c
(gdb) BT
**NOTE: debug frames are hidden in bt display**
#0 0x0ff1fdb4 in ClObjectGetClString (hdr=0x10021ef8, id=0x3082b688) at objectImpl.c:131
#1 0x0ff1fe70 in ClObjectGetClObject (hdr=0x10021ef8, id=0x3082b688) at objectImpl.c:136
#2 0x0ff2b268 in ClArgsGetArgAt (arg=0x10021ef8, id=2, data=0x3082b680, name=0x0) at objectImpl.c:2388
#3 0x0ff04be4 in __aft_getArgAt (args=0x1002e930, i=2, name=0x0, rc=0x0) at args.c:130
#4 0x0ff0c378 in invokeMethod (broker=0xff787e8, context=0x10026f00, cop=0x1003c868, method=0xf90628c "", in=0x1002e930, out=0x0,
rc=0x3082b8f0) at brokerUpc.c:1028
#5 0x0f9043b8 in InteropProviderInvokeMethod (mi=0xf916988, ctx=0x10026f00, rslt=0x10020800, ref=0x10022fa0, methodName=0x1002301c "_deliver",
in=0x1003df78, out=0x10021e38) at interopProvider.c:1155
#6 0x0ff4344c in invokeMethod (hdr=0x10022f40, info=0x10020728, requestor=-54) at providerDrv.c:1521
#7 0x0ff4c9c4 in processProviderInvocationRequestsThread (prms=0x10020698) at providerDrv.c:2807
#8 0x0fd8caec in start_thread (arg=<value optimized out>) at pthread_create.c:308
#9 0x0fcdb8fc in clone () from /opt/mcp/ppcnf/crossroot/lib/libc.so.6
(gdb)
**NOTE: debug frames are hidden in bt display**
#0 0x0ff1fdb4 in ClObjectGetClString (hdr=0x10021ef8, id=0x3082b688) at objectImpl.c:131
#1 0x0ff1fe70 in ClObjectGetClObject (hdr=0x10021ef8, id=0x3082b688) at objectImpl.c:136
#2 0x0ff2b268 in ClArgsGetArgAt (arg=0x10021ef8, id=2, data=0x3082b680, name=0x0) at objectImpl.c:2388
#3 0x0ff04be4 in __aft_getArgAt (args=0x1002e930, i=2, name=0x0, rc=0x0) at args.c:130
#4 0x0ff0c378 in invokeMethod (broker=0xff787e8, context=0x10026f00, cop=0x1003c868, method=0xf90628c "", in=0x1002e930, out=0x0,
rc=0x3082b8f0) at brokerUpc.c:1028
#5 0x0f9043b8 in InteropProviderInvokeMethod (mi=0xf916988, ctx=0x10026f00, rslt=0x10020800, ref=0x10022fa0, methodName=0x1002301c "_deliver",
in=0x1003df78, out=0x10021e38) at interopProvider.c:1155
#6 0x0ff4344c in invokeMethod (hdr=0x10022f40, info=0x10020728, requestor=-54) at providerDrv.c:1521
#7 0x0ff4c9c4 in processProviderInvocationRequestsThread (prms=0x10020698) at providerDrv.c:2807
#8 0x0fd8caec in start_thread (arg=<value optimized out>) at pthread_create.c:308
#9 0x0fcdb8fc in clone () from /opt/mcp/ppcnf/crossroot/lib/libc.so.6
(gdb) p buf
$1 = (ClStrBuf *) 0x1005f250
(gdb) p *buf
$2 = {iUsed = 6, iMax = 32784, indexOffset = 265767880, indexPtr = 0x1003ab90, bUsed = 5349, bMax = 8192, buf = "i"}
(gdb) p id
$3 = (ClString *) 0x3082b688
(gdb) p hdr
$4 = (ClObjectHdr *) 0x10021ef8
(gdb) p *id
$5 = {id = 268847096}
(gdb) p *hdr
$6 = {size = 0, flags = 21, type = 4, {strBufOffset = 268825168, strBuffer = 0x1005f250}, {arrayBufOffset = 0, arrayBuffer = 0x0}}
(gdb) p buf->buf
$7 = "i"
(gdb) p buf->indexPtr
$8 = (int *) 0x1003ab90
(gdb) p *buf->indexPtr
$9 = 0

Discussion

  • Narasimha Sharoff

    This problem looks familiar and looks like it is addressed as part of bug fixing for another issue.
    Attached is the back ported version of patch back. Give it a try.

     
  • Narasimha Sharoff

    3471814-75997-withoutalignment

     
  • Sarabjit S Saini

    Could you please provide the patch over sfcb-1.3.12-52.ppcnf.

    This is the latest sfcb version we have running on our newer drivers.

     
  • Narasimha Sharoff

    The patch attached below works with SF CVS version of 1.3.12 as well.

     
  • Narasimha Sharoff

    patch applied to cvs head

     
  • Chris Buccella

    Chris Buccella - 2012-04-06

    committed to git Apr 3

     
  • Chris Buccella

    Chris Buccella - 2012-04-06
    • status: open --> pending-fixed
     

Log in to post a comment.