Segmentation fault: 11 in macOS Catalina

Forum for OpenSees users to post questions, comments, etc. on the use of the OpenSees interpreter, OpenSees.exe

Moderators: silvia, selimgunay, Moderators

Post Reply
mtsonicc
Posts: 55
Joined: Wed Mar 14, 2012 6:27 pm
Location: Hanyang University

Segmentation fault: 11 in macOS Catalina

Post by mtsonicc » Mon Jan 13, 2020 2:49 am

Hello,

I'm experiencing a problem while using Joint2D in macOS Catalina.

Joint2D element requires input parameters as shown below:
"element Joint2D $eleTag $Nd1 $Nd2 $Nd3 $Nd4 $NdC <$Mat1 $Mat2 $Mat3 $Mat4> $MatC $LrgDspTag"

If I set "$Mat1 $Mat2 $Mat3 $Mat4" to zero, OpenSees returns "segmentation fault: 11" in macOS Catalina.

an example line is shown below:
"element Joint2D 10100 10101 10102 10103 10104 10100 10101 10102 0 10104 10100 0;"

The exact same code works fine in Windows 10 (version 1903).

If I don't use zeros in "<$Mat1 $Mat2 $Mat3 $Mat4>", "segmentation fault: 11" does not happen.

example code is provided below::

########## ########## ########## ##########
# Define dimensions #
########## ########## ##########
model BasicBuilder -ndm 2 -ndf 3;
########## ########## ##########
# joint nodes #
########## ########## ##########
puts "node"
node 10101 10.000000 100.000000;
node 10102 0.000000 110.000000;
node 10103 -10.000000 100.000000;
node 10104 0.000000 90.0000000;
node 10201 310.000000 100.000000;
node 10202 300.000000 110.000000;
node 10203 290.000000 100.000000;
node 10204 300.000000 90.0000000;
########## ########## ##########
# support node
########## ########## ##########
node 102 0.00000000 0.00000000;
node 202 300.00000007 0.00000000;
########## ########## ##########
# Fix nodes #
########## ########## ##########
puts "fix"
fix 102 1 1 1;
fix 202 1 1 1;
########## ########## ########## ##########
# geomtransf
########## ########## ########## ##########
puts "geomTransf"
geomTransf PDelta 1;
geomTransf Linear 2;
########## ########## ##########
# column mat
########## ########## ##########
puts "col mat"
uniaxialMaterial Elastic 10000 2000000.;
########## ########## ##########
# column ele
########## ########## ##########
puts "col ele"
element elasticBeamColumn 1010100 102 10104 99999. 99999. 99999. 1; # NS=1, NB=1
element elasticBeamColumn 1010200 202 10204 99999. 99999. 99999. 1; # NS=1, NB=2
########## ########## ##########
# beam ele
########## ########## ##########
puts "beam ele"
element elasticBeamColumn 2010100 10101 10203 99999. 99999. 99999. 2; # NS=1, NB=1
########## ########## ##########
# jnt ele
########## ########## ##########
puts "jnt ele"
element Joint2D 10100 10101 10102 10103 10104 10100 10000 0 0 10000 10000 0; # this prompts "Segmentation fault: 11"
element Joint2D 10200 10201 10202 10203 10204 10200 0 0 10000 10000 10000 0; # this prompts "Segmentation fault: 11"

# element Joint2D 10100 10101 10102 10103 10104 10100 10000 10000 10000 10000 10000 0; # this one works fine"
# element Joint2D 10200 10201 10202 10203 10204 10200 10000 10000 10000 10000 10000 0; # this one works fine"
########## ########## ########## ##########
# analysis
########## ########## ########## ##########
puts "analysis"
set Tol 1.0e-8;
constraints Transformation;
numberer RCM;
system BandGeneral;
test EnergyIncr $Tol 3000 0;
algorithm Newton -initial;
integrator LoadControl 0.1;
analysis Static;
analyze 10;
loadConst -time 0.0
########## ########## ########## ##########

Thank you for your help!

Post Reply