Re: seg fault with simple tv or tvrd() [message #55470] |
Tue, 21 August 2007 15:50  |
George N. White III
Messages: 56 Registered: September 2000
|
Member |
|
|
On Tue, 21 Aug 2007, David Fanning wrote:
>
>
> kirt writes:
>
>> I'm trying to resurrect IDL on a ubuntu box and am struggling with a
>> basic tv (or tvrd) seg fault.
>> I feel like an idiot asking this, but I can't perform a simple tv or
>> tvrd() without a segmentation fault.
>
> Here you go:
>
> http://www.dfanning.com/misc_tips/segfault.html
Or update to IDL 6.4 (in which case you may get to consult
a different techtip for yet another workaround -- 4228)
Some of the information techtip 4177 is no longer useful. For Fedora Core
6 it recommends installing an older version of libX11, but this is no
longer available in repositories. One option is to recompile the library,
after editing the SPEC file to omit the patch.
--
George N. White III <aa056@chebucto.ns.ca>
|
|
|
|
Re: seg fault with simple tv or tvrd() [message #55536 is a reply to message #55473] |
Mon, 27 August 2007 09:02  |
Foldy Lajos
Messages: 268 Registered: October 2001
|
Senior Member |
|
|
On Tue, 21 Aug 2007, David Fanning wrote:
> kirt writes:
>
>> I'm trying to resurrect IDL on a ubuntu box and am struggling with a
>> basic tv (or tvrd) seg fault.
>> I feel like an idiot asking this, but I can't perform a simple tv or
>> tvrd() without a segmentation fault.
>
> Here you go:
>
> http://www.dfanning.com/misc_tips/segfault.html
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
>
Hi,
I have found a workaround, which does not require deprecating the system
X11 library.
1. find a copy of the old "working" libX11.so.6 file and copy it
somewhere, eg. /my/private/lib/libX11.so.6
2. bash: export LD_PRELOAD_PATH=/my/private/lib
tcsh: setenv LD_PRELOAD_PATH /my/private/lib
3. run IDL
Now IDL will use /my/private/lib/libX11.so.6 instead of the system library
and it will work correctly.
regards,
lajos
|
|
|