pkgsrc-Users archive

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

Re: graphics/librsvg



On Fri, Feb 10, 2017 at 11:56:49AM +0000, Patrick Welche wrote:
> I think it is PR 49791,

To quote David Laight in the PR: "And if you do use it, don't even think
about calling dlclose()."

bind_local=bind_lazy=0

97        handle = dlopen (file_name,
98                         (bind_local ? 0 : RTLD_GLOBAL) | (bind_lazy ? RTLD_LAZY : RTLD_NOW));

dlopen() succeeds

  file_name = 0x7f7ff7b3b080 "/tmp/pkgsrc/graphics/librsvg/work.x86_64/librsvg-2.40.15/gdk-pixbuf-loader/libpixbufloader-svg.la", handle = 0x7f7ff7ffe800, 
  ref_count = 0, is_resident = 0, unload = 0x0, next = 0x0}


208             if (module)
(gdb) 
209                     g_module_close (module);
(gdb) 
warning: Error removing breakpoint -46
210             g_free (path);
(gdb) n
Warning:
Cannot insert breakpoint -48.
Cannot access memory at address 0x7f7ff34430cf

Command aborted.

or:

(gdb) s
_g_module_close (handle=0x7f7ff7ffe800, is_unref=0) at gmodule-dl.c:132
132       is_unref |= 1;
(gdb) n
134       if (is_unref)
(gdb) 
136           if (dlclose (handle) != 0)
(gdb) s
0x00007f7ff4401150 in _fini ()
   from /tmp/pkgsrc/graphics/librsvg/work.x86_64/librsvg-2.40.15/gdk-pixbuf-loader/.libs/libpixbufloader-svg.so
(gdb) s
Single stepping until exit from function _fini,
which has no line number information.
0x00007f7fef424160 in _fini () from /usr/pkg/lib/libcroco-0.6.so.3

(that last line looks completely spurious)


Cheers,

Patrick


Home | Main Index | Thread Index | Old Index