Segmentation Violation

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

Moderators: silvia, selimgunay, Moderators

Post Reply
laskar
Posts: 23
Joined: Tue Jan 09, 2007 12:55 pm
Location: IIT Bombay
Contact:

Segmentation Violation

Post by laskar »

I am getting the following error message when I try to run some tcl/tk input files using opensees.exe:
"child killed: segmentation violation"

could anyone tell me the probable cause of this error.
laskar
silvia
Posts: 3909
Joined: Tue Jan 11, 2005 7:44 am
Location: Degenkolb Engineers
Contact:

Post by silvia »

are you doing some Tk graphics??
what command is breaking it???
Silvia Mazzoni, PhD
Structural Consultant
Degenkolb Engineers
235 Montgomery Street, Suite 500
San Francisco, CA. 94104
laskar
Posts: 23
Joined: Tue Jan 09, 2007 12:55 pm
Location: IIT Bombay
Contact:

Post by laskar »

Thanks for you reply.
I am not using any Tk graphics
How can I find out which command is breaking the execution.

laskar..
silvia
Posts: 3909
Joined: Tue Jan 11, 2005 7:44 am
Location: Degenkolb Engineers
Contact:

Post by silvia »

i'd put stopping points along the input file...
or at least puts commands here and there to find out which line terminates the program....
Silvia Mazzoni, PhD
Structural Consultant
Degenkolb Engineers
235 Montgomery Street, Suite 500
San Francisco, CA. 94104
laskar
Posts: 23
Joined: Tue Jan 09, 2007 12:55 pm
Location: IIT Bombay
Contact:

Post by laskar »

Silvia thanks for your prompt replies.

I inserted print commands at different positions of my input file. After running the input file I find that it runs upto the command:
analysis static

and stops at the command:
initialize...

could you please tell me the cause for this.

thanks again.
laskar.
silvia
Posts: 3909
Joined: Tue Jan 11, 2005 7:44 am
Location: Degenkolb Engineers
Contact:

Post by silvia »

remove the initialize command.
also, please follow the order i give in the examples manual.
Silvia Mazzoni, PhD
Structural Consultant
Degenkolb Engineers
235 Montgomery Street, Suite 500
San Francisco, CA. 94104
laskar
Posts: 23
Joined: Tue Jan 09, 2007 12:55 pm
Location: IIT Bombay
Contact:

Post by laskar »

I removed the initialize command.

I also matched the order of commands with that given in the file Ex1b.Portal2D.Push[1].tcl in the examples manual.

However I am still getting the error message.

Laskar.
silvia
Posts: 3909
Joined: Tue Jan 11, 2005 7:44 am
Location: Degenkolb Engineers
Contact:

Post by silvia »

please post the important part of the script...
Silvia Mazzoni, PhD
Structural Consultant
Degenkolb Engineers
235 Montgomery Street, Suite 500
San Francisco, CA. 94104
laskar
Posts: 23
Joined: Tue Jan 09, 2007 12:55 pm
Location: IIT Bombay
Contact:

Post by laskar »

Here is the relevant part of the code:
# ------------------------------
# Start of analysis generation
# ------------------------------

# Create the constraint handler
constraints Plain
puts "constraints Plain Done!"

# Create the DOF numberer
numberer Plain
puts "numberer Plain Done!"


# Create the system of equation, a sparse solver with partial pivoting
system BandGeneral
puts "system BandGeneral Done!"


# Create the convergence test
test NormDispIncrVaryIter 0.001 1 5 numStep 5000 numIter 100
puts "test NormDispIncrVaryIter Done!"

# Create the solution algorithm
algorithm KrylovNewton
puts "algorithm KrylovNewton Done!"

# Create the integration scheme,
integrator DisplacementPath 10 1 1 numStep 5000 increment 0.01
puts "integrator DisplacementPath Done!"

# Create the analysis object
analysis Static
puts "analysis Static Done!"


# ------------------------------
# End of analysis generation
# ------------------------------


# perform the analysis
analyze 5000
puts "analyze Done!"

The output I am getting is as follows:

constraints Plain Done!
numberer Plain Done!
system BandGeneral Done!
test NormDispIncrVaryIter Done!
algorithm KrylovNewton Done!
integrator DisplacementPath Done!
analysis Static Done!

Then a windows pops up saying Opensees.exe has encountered a problem and needs to close. After that I get the message
"child killed: segmentation violation"
Arghadeep Laskar
Graduate Research Assistant
Department of Civil and Environmental Engg.
University of Houston.
silvia
Posts: 3909
Joined: Tue Jan 11, 2005 7:44 am
Location: Degenkolb Engineers
Contact:

Post by silvia »

do you have some strange characters after that?
please send me the file to opensees-support@berkeley.edu
Silvia Mazzoni, PhD
Structural Consultant
Degenkolb Engineers
235 Montgomery Street, Suite 500
San Francisco, CA. 94104
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

what happens with a regular convergence test.
Post Reply