octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: the nvidia/osmesa dilema


From: Andreas Weber
Subject: Re: the nvidia/osmesa dilema
Date: Sun, 15 May 2016 17:12:30 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.7.0

On 04.05.2016 12:36, Juan Pablo Carbajal wrote:
We still have this issue with building the documentation and running
tests (https://savannah.gnu.org/bugs/?44478) that casues segfaults
when the user is running with nvidia drivers.

Hi all,
I've been playing around with jwe's idea to create an external filter program which renders the plot and isn't linked with libGL.

Can someone explain why this simple code works with proprietary nvidia drivers? https://github.com/Andy1978/octave-debugging/blob/master/hgload_print/render_ofig.cpp

The Makefile create an .ofig with
"figure visible off; sombrero; hgsave sombrero.ofig;"

and render_ofig calls hgload ("sombrero.ofig") print ("sombrero.pdf") which uses __osmesa_print__ and gl2ps.

it's also linked against libGL.so:
$ ldd render_ofig | grep libGL
 libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x00007f5cc908a000)
 libGLU.so.1 => /usr/lib/x86_64-linux-gnu/libGLU.so.1 (0x00007f5cc8e1c000

$ readlink -e /usr/lib/x86_64-linux-gnu/libGL.so.1
/usr/lib/x86_64-linux-gnu/nvidia/legacy-304xx/libGL.so.304.131

why doesn't this segfault?

-- Andy



reply via email to

[Prev in Thread] Current Thread [Next in Thread]