Go Back   nV News Forums > Linux Support Forums > NVIDIA Solaris

Newegg Daily Deals

Reply
 
Thread Tools
Old 01-02-08, 01:10 PM   #1
deaton
Registered User
 
Join Date: Jan 2008
Posts: 1
Default Solaris 10 seg fault when using libdl to load libGL

Hi all,

I don't know if this is an appropriate forum for this question -- please point me in the right direction if you can.

I'm porting some GL code from linux to Solaris 10 and found that it was causing segmentation faults. I've reduced the code to a single file to highlight the problem (attached as libgldebug.cpp.txt). To compile, I've been using:

g++ -g -c -I /usr/X11/include/NVIDIA/ libgldebug.cpp
g++ -o libgldebug -lpthread -lX11 -lXext libgldebug.o

I'm using g++ version 3.4.5.

Briefly, the problem seems to arise from using multithreading (pthreads) in conjunction with lib DL (dynamic linking functions). I dynamically-programatically link libGL (grabbing the function "glxChooseVisual") and call it. If I make the call in one thread only, it succeeds, but for more than one thread it seg faults in libGL.so. This same code works *fine* in Linux. I'm very confused...

Thanks,
Dan
Attached Files
File Type: txt libgldebug.cpp.txt (1.3 KB, 181 views)
deaton is offline   Reply With Quote
Old 01-06-08, 11:53 PM   #2
methimpikehoses
Guest
 
Posts: n/a
Default Re: Solaris 10 seg fault when using libdl to load libGL

hmmm
  Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:24 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.