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

Newegg Daily Deals

Reply
 
Thread Tools
Old 09-05-05, 01:02 AM   #1
skwid
Registered User
 
skwid's Avatar
 
Join Date: May 2005
Posts: 13
Default x86-64 76.76 atexit registration causes segfault

I can provide a stack trace for more info, but basicly glXChannelRectSyncSGIX() is calling free() during library _fini() and segfaulting.

NOTE: My application is registering an atexit() callback which does a cleanup of the GLX context and closes the X server connection (all of this executes cleanly).

Another thing to note is that there is no XWindow creation between the glx context creation and destruction. I will contine onward and see if the XWindow creation fixes this.

I am guessing that the problem lies in either the atexit registration or that the libGL cleanup is assuming a XWindow was created.

/j

Last edited by skwid; 09-05-05 at 02:33 AM. Reason: better title
skwid is offline   Reply With Quote
Old 09-05-05, 02:25 AM   #2
skwid
Registered User
 
skwid's Avatar
 
Join Date: May 2005
Posts: 13
Default Re: x86-64 76.76 glXChannelRectSyncSGIX segfault on _fini

I was able to create the X Window just fine, the problem still exists. I removed the atexit() registration and sure enough no segfault.

It seems that someone should be checking thier pointers before calling free(). Perhaps atexit() registration is creating a unique situation with uninitialized pointers?

/j
skwid is offline   Reply With Quote
Old 09-05-05, 11:47 AM   #3
netllama
NVIDIA Corporation
 
Join Date: Dec 2004
Posts: 8,763
Default Re: x86-64 76.76 glXChannelRectSyncSGIX segfault on _fini

skwid,
Can you post your test app along with an nvidia-bug-report.log ?

Thanks,
Lonni
netllama is offline   Reply With Quote
Old 09-05-05, 11:07 PM   #4
skwid
Registered User
 
skwid's Avatar
 
Join Date: May 2005
Posts: 13
Default Re: x86-64 76.76 glXChannelRectSyncSGIX segfault on _fini

I cannot post my program source verbatim, but upon request I can post any of the X11/GLX function calls or even write a seperate test app.
I have attached the requested log.
Attached Files
File Type: txt nvidia-bug-report.txt (48.8 KB, 202 views)
skwid is offline   Reply With Quote
Old 09-06-05, 03:02 AM   #5
skwid
Registered User
 
skwid's Avatar
 
Join Date: May 2005
Posts: 13
Default Re: x86-64 76.76 glXChannelRectSyncSGIX segfault on _fini

Resolved (maybe).
I tracked to problem to a subsystem class that was missing a virtual keyword for the destructor which seemed to fix the problem. No idea why it had anything to do with a segfault in libGL. The subsystem itself has nothing to do with any GL/GLX/Xlib calls.
skwid is offline   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 03:37 AM.


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