Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have this problem with a tool, that I launch from a terminal on a specific computer - as far as I can tell it's a binary executable. If I remotely connect via ssh (using the -Y option) to this computer and launch the tool it crashes immediately reporting a segmentation fault. When I launch it locally it works.

Since it is part of a toolkit (actually started by a TCL script, not by myself) I'm not even sure if it creates any UI elements. The TCL script generates a UI which works fine.

The computer where the tool runs, is running some older version of red hat, RHEL 5 I believe. My computer (the one I want to ssh-connect from) runs a very recent version of Ubuntu.

Of course what I would like is be able to run the tool remotely without segmentation fault. Perhaps it is caused by the discrepancy between versions of the systems (or of ssh)? What could cause a program to crash only when launched via ssh?

share|improve this question
add comment

1 Answer 1

does the program work, if you run it on the remote machine locally? try to run it with DISPLAY=:0 variable as prefix in your ssh session.

share|improve this answer
    
Do I just set the environment variable before entering the the ssd command? I just tried this but it didn't help. I'm not sure what you mean with "as prefix". –  Glemi Aug 7 '13 at 9:14
    
before the command: ssh -Y host "DISPLAY=:0 command" –  harry Aug 7 '13 at 9:48
    
if I try this then I get Xlib: connection to ":0.0" refused by server Xlib: No protocol specified Application initialization failed: couldn't connect to display ":0" –  Glemi Aug 7 '13 at 15:01
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.