[ofa-general] Opensm dies with updn specified in opensm.opts

Steven Carter scarter at ornl.gov
Mon Apr 2 09:08:30 PDT 2007


OpenSM (from OFED 1.1) runs when '-R updn' is specified on the command 
line for up/down routing, but seg faults when it is specified in 
opensm.opts.

# Start with clean opensm.opts:

[root at bruiser osm]# rm /var/cache/osm/opensm.opts
rm: remove regular file `/var/cache/osm/opensm.opts'? y
[root at bruiser osm]# /opt/ofed-1.1/bin/opensm -c
-------------------------------------------------
OpenSM Rev:openib-2.0.5
Based on OpenIB svn Exported revision
Command Line Arguments:
 Caching command line options
 Log File: /var/log/osm.log
-------------------------------------------------
OpenSM Rev:openib-2.0.5 OpenIB svn Exported revision

Using default GUID 0x8f1040397886d
Entering MASTER state

SUBNET UP

OpenSM: Got signal 2 - exiting...
Exiting SM

# Runs fine with clean opensm.opts:

[root at bruiser osm]# /opt/ofed-1.1/bin/opensm
-------------------------------------------------
OpenSM Rev:openib-2.0.5
Based on OpenIB svn Exported revision
 Using Cached Option:guid = 0x0008f1040397886d
 Using Cached Option:log_flags = 3
Command Line Arguments:
 Log File: /var/log/osm.log
-------------------------------------------------
OpenSM Rev:openib-2.0.5 OpenIB svn Exported revision

Entering MASTER state

SUBNET UP

OpenSM: Got signal 2 - exiting...
Exiting SM

# Specify up/down routing and write out to opensm.opts:

[root at bruiser osm]# /opt/ofed-1.1/bin/opensm -R updn -c
-------------------------------------------------
OpenSM Rev:openib-2.0.5
Based on OpenIB svn Exported revision
 Using Cached Option:guid = 0x0008f1040397886d
 Using Cached Option:log_flags = 3
Command Line Arguments:
 Activate 'updn' routing engine
 Caching command line options
 Log File: /var/log/osm.log
-------------------------------------------------
OpenSM Rev:openib-2.0.5 OpenIB svn Exported revision

Entering MASTER state

SUBNET UP

OpenSM: Got signal 2 - exiting...
Exiting SM

# And it dies:

[root at bruiser osm]# /opt/ofed-1.1/bin/opensm
-------------------------------------------------
OpenSM Rev:openib-2.0.5
Based on OpenIB svn Exported revision
 Using Cached Option:guid = 0x0008f1040397886d
Segmentation fault 

# The routing is the only difference:

[root at bruiser osm]# diff opensm.opts.updn opensm.opts.good
103,105d102
< # Routing engine
< routing_engine updn
<


Thanks,

Steven.



More information about the general mailing list