Re: Segmentation Fault w/ X11 apps on Red Hat 5.3 (190 Views)
Reply
Esteemed Contributor
Victor Semaska_3
Posts: 345
Registered: ‎09-09-2004
Message 1 of 3 (190 Views)
Accepted Solution

Segmentation Fault w/ X11 apps on Red Hat 5.3

Greetings,

I just started to install and use Red Hat 5.3 and I'm running into a problem. Whenever I run a X11 app that's piped to my Windows XP PC via X11 tunneling it aborts with Segmentation Fault. When I run the same app on a RHEL4 it runs fine.

I suspect the problem lies with the Xwindows emulator that I'm using. It's very old software called eXcursion. What I want to do is try a different emulator. Can anyone recommend one to try?

Thanks,
Vic
There are 10 kinds of people, one that understands binary and one that doesn't.
Honored Contributor
Matti_Kurkela
Posts: 6,271
Registered: ‎12-02-2001
Message 2 of 3 (190 Views)

Re: Segmentation Fault w/ X11 apps on Red Hat 5.3

If your old Xwindows emulator sends bad data to your application, the X11 libraries should reject the data with a meaningful error message, *not* cause the application to crash with a generic Segmentation Fault. If your old Xwindows emulator truly causes this behaviour, it means either the application or the X11 library has a *very* basic programming error.

The X11 libraries required for X11 connection at the application end are pretty mature by now. I would expect that any bugs of this magnitude would have been found and fixed long ago. But everything is possible, I guess.

If you wish to try a newer Xwindows emulator, I've been successfully using Xming:

http://www.straightrunning.com/XmingNotes/

--------------

If your application (the exact same binary) runs fine unmodified on RHEL4, it is possible that the newer libraries on RHEL 5.3 are causing it some trouble. Recompiling the application on RHEL 5.3 might help, if you have the source code.

If that is not possible, you might use "ldd " to identify the libraries your application uses, copy the RHEL4 versions of those libraries to some directory (e.g. /usr/local/oldlibs) and then run your application with a custom LD_LIBRARY_PATH variable (e.g. start the application with "LD_LIBRARY_PATH=/usr/local/oldlibs application").

Because the old libraries have known bugs, you might wish to try and minimize the amount of old libraries used by your application. If the program runs successfully with the full set of old libraries, start removing the old libs one by one and see when the problem reappears.
When you have found the minimal set of old libraries that allows the program to run, you have a good workaround, and you can make a very informative bug report to the application developers.

MK
MK
Esteemed Contributor
Victor Semaska_3
Posts: 345
Registered: ‎09-09-2004
Message 3 of 3 (190 Views)

Re: Segmentation Fault w/ X11 apps on Red Hat 5.3

Matti,

Thanks for the information. What I did was download and install Xming. The app.s work with that fine although a little sluggish. It does seem that eXcursion was just too old.
There are 10 kinds of people, one that understands binary and one that doesn't.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.