[openib-general] OFED-1.1: *** stack smashing detected ***: opensm terminated

Hal Rosenstock halr at voltaire.com
Fri Nov 10 15:31:17 PST 2006


Can you see if this fixes it ? Thanks.
 
-- Hal
 
Index: opensm/osm_helper.c
===================================================================
--- opensm/osm_helper.c (revision 10089)
+++ opensm/osm_helper.c (working copy)
@@ -1264,7 +1264,7 @@
   IN const ib_service_record_t* const p_sr,
   IN const osm_log_level_t log_level )
 {
-  char buf_service_key[33];
+  char buf_service_key[35];
   char buf_service_name[65];
   if( osm_log_is_active( p_log, log_level ) )

________________________________

From: Hal Rosenstock
Sent: Fri 11/10/2006 4:13 PM
To: chris_youb at yahoo.ca
Cc: openib-general at openib.org
Subject: RE: [openib-general] OFED-1.1: *** stack smashing detected ***: opensm terminated


I think I see the problem. Give me a little time to give you a patch to try.
 
-- Hal

________________________________

From: openib-general-bounces at openib.org on behalf of chris_youb at yahoo.ca
Sent: Fri 11/10/2006 3:33 PM
To: openib-general at openib.org
Subject: Re: [openib-general] OFED-1.1: *** stack smashing detected ***: opensm terminated



Backtrace related to previous posting of the same title:

Core was generated by `opensm -V'.
Program terminated with signal 6, Aborted.
#0  0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7e6e770 in raise () from /lib/tls/i686/cmov/libc.so.6
#2  0xb7e6fef3 in abort () from /lib/tls/i686/cmov/libc.so.6
#3  0xb7ea3d0b in __fsetlocking () from /lib/tls/i686/cmov/libc.so.6
#4  0xb7f27e41 in __stack_chk_fail () from /lib/tls/i686/cmov/libc.so.6
#5  0xb7fb7834 in __stack_chk_fail_local () from /usr/local/lib/libopensm.so.1
#6  0xb7fb4a83 in osm_dump_service_record (p_log=0x80bd810, p_sr=0x8109108,
    log_level=8 '\b') at osm_helper.c:1360
#7  0x0807d7f0 in osm_sr_rcv_process_set_method (p_rcv=0x80bd260,
    p_madw=0x80d0980) at osm_sa_service_record.c:863
#8  0x0807dd91 in osm_sr_rcv_process (p_rcv=0x80bd260, p_madw=0x80d0980)
    at osm_sa_service_record.c:1083
#9  0x0807e0aa in __osm_sr_rcv_ctrl_disp_callback (context=0x80bd334,
    p_data=0x80d0980) at osm_sa_service_record_ctrl.c:66
#10 0xb7fa193e in __cl_disp_worker (context=0x80bd840) at cl_dispatcher.c:108
#11 0xb7fa8c49 in __cl_thread_pool_routine (context=0x80bd880)
    at cl_threadpool.c:79
#12 0xb7fa8a55 in __cl_thread_wrapper (arg=0x80be478) at cl_thread.c:61
#13 0xb7f87504 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#14 0xb7f1251e in clone () from /lib/tls/i686/cmov/libc.so.6
(gdb) f 6
#6  0xb7fb4a83 in osm_dump_service_record (p_log=0x80bd810, p_sr=0x8109108,
    log_level=8 '\b') at osm_helper.c:1360
1360    }
(gdb) l
1355                 cl_ntoh32(p_sr->service_data32[3]),
1356                 cl_ntoh64(p_sr->service_data64[0]),
1357                 cl_ntoh64(p_sr->service_data64[1])
1358                 );
1359      }
1360    }
1361   
1362    /**********************************************************************
1363     **********************************************************************/
1364    void
(gdb) p p_sr
$1 = (const ib_service_record_t * const) 0x8109108
(gdb) p *$1
$3 = {service_id = 6004495675223179280, service_gid = {
    raw = "þ\200\000\000\000\000\000\000\000\bñ\004\000A\fä", unicast = {
      prefix = 33022, interface_id = 16432580608706807808}, multicast = {
      header = "þ\200",
      raw_group_id = "\000\000\000\000\000\000\000\bñ\004\000A\fä"}},
  service_pkey = 65535, resv = 0, service_lease = 4294967295,
  service_key = "\000\000\000\000\000\000\bñÿÿ\000\000\000\000\000",
  service_name = "DAPL Address Translation Service", '\0' <repeats 31 times>,
  service_data8 = '\0' <repeats 12 times>, "ÃEUR¨\002d", service_data16 = {61704,
    0, 0, 0, 0, 0, 0, 0}, service_data32 = {961696585, 758395440, 879059760,
    1953068800}, service_data64 = {26723, 0}}
(gdb) p /x $3
$4 = {service_id = 0x53544100e10c0010, service_gid = {raw = {0xfe, 0x80, 0x0,
      0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8, 0xf1, 0x4, 0x0, 0x41, 0xc, 0xe4},
    unicast = {prefix = 0x80fe, interface_id = 0xe40c410004f10800},
    multicast = {header = {0xfe, 0x80}, raw_group_id = {0x0, 0x0, 0x0, 0x0,
        0x0, 0x0, 0x0, 0x8, 0xf1, 0x4, 0x0, 0x41, 0xc, 0xe4}}},
  service_pkey = 0xffff, resv = 0x0, service_lease = 0xffffffff,
  service_key = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8, 0xf1, 0xff, 0xff, 0x0,
    0x0, 0x0, 0x0, 0x0, 0x0}, service_name = {0x44, 0x41, 0x50, 0x4c, 0x20,
    0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x20, 0x54, 0x72, 0x61, 0x6e,
    0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x53, 0x65, 0x72, 0x76,
    0x69, 0x63, 0x65, 0x0 <repeats 32 times>}, service_data8 = {
    0x0 <repeats 12 times>, 0xc0, 0xa8, 0x2, 0x64}, service_data16 = {0xf108,
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, service_data32 = {0x39525349,
    0x2d343230, 0x34656330, 0x74697700}, service_data64 = {0x6863, 0x0}}
(gdb)
$5 = {service_id = 0x53544100e10c0010, service_gid = {raw = {0xfe, 0x80, 0x0,
      0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8, 0xf1, 0x4, 0x0, 0x41, 0xc, 0xe4},
    unicast = {prefix = 0x80fe, interface_id = 0xe40c410004f10800},
    multicast = {header = {0xfe, 0x80}, raw_group_id = {0x0, 0x0, 0x0, 0x0,
        0x0, 0x0, 0x0, 0x8, 0xf1, 0x4, 0x0, 0x41, 0xc, 0xe4}}},
  service_pkey = 0xffff, resv = 0x0, service_lease = 0xffffffff,
  service_key = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8, 0xf1, 0xff, 0xff, 0x0,
    0x0, 0x0, 0x0, 0x0, 0x0}, service_name = {0x44, 0x41, 0x50, 0x4c, 0x20,
    0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x20, 0x54, 0x72, 0x61, 0x6e,
    0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x53, 0x65, 0x72, 0x76,
    0x69, 0x63, 0x65, 0x0 <repeats 32 times>}, service_data8 = {
    0x0 <repeats 12 times>, 0xc0, 0xa8, 0x2, 0x64}, service_data16 = {0xf108,
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, service_data32 = {0x39525349,
    0x2d343230, 0x34656330, 0x74697700}, service_data64 = {0x6863, 0x0}}
(gdb) quit


--
This message was sent on behalf of chris_youb at yahoo.ca at openSubscriber.com
http://www.opensubscriber.com/message/openib-general@openib.org/5325029.html

_______________________________________________
openib-general mailing list
openib-general at openib.org
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general 





More information about the general mailing list