pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: qt5 questions
On Thu, Jan 23, 2014 at 10:51:41PM +0100, Joerg Sonnenberger wrote:
> On Thu, Jan 23, 2014 at 10:44:47PM +0100, Thomas Klausner wrote:
> > On Thu, Jan 16, 2014 at 04:02:12PM +0100, Joerg Sonnenberger wrote:
> > > On Thu, Jan 16, 2014 at 11:32:04PM +0900, Ryo ONODERA wrote:
> > > > Thread 1 (LWP 1):
> > > > #0 0x00007f7f94733162 in autofree () from
> > > > /usr/pkg/lib/dri/swrast_dri.so
> > > > #1 0x00007f7fe68f0cdd in __cxa_finalize (dso=0x0)
> > > > at /mnt/cvs/src-current/src/lib/libc/stdlib/atexit.c:202
> > > > #2 0x00007f7fe68f099a in exit (status=0)
> > > > at /mnt/cvs/src-current/src/lib/libc/stdlib/exit.c:58
> > > > #3 0x000000000042c8b9 in ___start ()
> > > > #4 0x00007f7ff7c05eac in _rtld_exclusive_exit (mask=0x7f7fffffdbd0)
> > > > at /mnt/cvs/src-current/src/libexec/ld.elf_so/rtld.c:1619
> > > > #5 dlclose (handle=0x7f7fffffdbc8)
> > > > at /mnt/cvs/src-current/src/libexec/ld.elf_so/rtld.c:946
> > >
> > > The very likely problem is that they are using atexit when it should be
> > > __cxa_atexit...
> >
> > Something like the attached?
> > (Can't currently test, too many other local changes.)
>
> I think it is:
> __cxa_atexit(autofree, NULL, &_DYNAMIC);
So like this?
Weird, I had compile-tested the previous version (not the one that's
now attached). Probably missing prototype.
Thomas
$NetBSD$
--- src/glsl/ralloc.c.orig 2011-10-15 00:43:58.000000000 +0000
+++ src/glsl/ralloc.c
@@ -283,7 +283,7 @@ ralloc_autofree_context(void)
{
if (unlikely(autofree_context == NULL)) {
autofree_context = ralloc_context(NULL);
- atexit(autofree);
+ __cxa_atexit(autofree, NULL, &_DYNAMIC);
}
return autofree_context;
}
Home |
Main Index |
Thread Index |
Old Index