0

I have a executable file and when I double-click it, it works OK. but when I use terminal and type ./paraview it gives me this error message:

Segmentation fault(Core dumped)

How to run paraview in terminal?

9
  • 1
    try sh paraview Commented Apr 2, 2018 at 4:55
  • It didn't work and gives me the following error paraview: 1: paraview: Syntax error: "(" unexpected Commented Apr 2, 2018 at 20:41
  • 1
    Which version of Paraview are you using? Did you installed a pre-built binary from Kitware or did you build Paraview on your own? Could you also precise which Linux distribution and version you are using? Commented May 2, 2018 at 22:19
  • @jcgiret I use ParaView 5.5.0-RC2 64-bit on Ubuntu 16.04 Commented May 5, 2018 at 1:28
  • @jcgiret I only downloaded it. Commented May 5, 2018 at 3:45

3 Answers 3

2

Whatever is going on here is specific to this paraview program and not especially related to the Linux shell. I don't know exactly what you're double-clicking on, but it could be a shortcut that includes specific command-line arguments, a specific working directory, etc. It could also be that the way you're running a terminal causes it to have different environment variables set or something.

At any rate, a program shouldn't just crash by segfaulting when it's run in a way it doesn't expect, so this would definitely count as a bug in paraview.

Sign up to request clarification or add additional context in comments.

Comments

1

To know more about what the program is doing and why failing you could use strace. based on your distro you could install it by using: apt-get install strace or yum install strace

Then give a try to this:

strace -f ./paraview

The option -f is to trace child processes, it will help to get more info and hopefully find the root cause of the problem.

1 Comment

I used strace but I don't understand the output. Could you please look at it and see if you understand what is going on? [pid 4834] recvmsg(10, 0x7ffd1832a070, 0) = -1 EAGAIN (Resource temporarily unavailable) [pid 4834] recvmsg(10, 0x7ffd1832a070, 0) = -1 EAGAIN (Resource temporarily unavailable) [pid 4834] --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} --- [pid 4835] +++ killed by SIGSEGV (core dumped) +++ +++ killed by SIGSEGV (core dumped) +++ Segmentation fault (core dumped)
0

The problem arises from some permission issues. You will notice that if you are in PATH_TO_PARAVIEW_DIR/bin , try

sudo PATH_TO_PARAVIEW_DIR/bin/paraview

This should work.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.