Re: [Gc] gc, guile, and NetBSD

Greg Troxel <gdt-2FjktZCtrC/[email protected]> Wed, 29 Oct 2014 08:37:07 -0400
Newsgroups gmane.comp.programming.garbage-collection.boehmgc
Message-ID <[email protected]>
  Current GC_FirstDLOpenedLinkMap() for NetBSD calls dlinfo(RTLD_SELF,
  RTLD_DI_LINKMAP, &lm) to find link_map.  So it will find link_map of
  libgc.

  With guile's case, libgc is link to libguile and libguile is linked to
  the guile command, so libgc is not the first one in the link_map chain.

  That's why, data section of libguile, where scm_protects exists, isn't
  added to GC root and GC_is_visible fails.

Very interesting!   That's great to have figured out what's going on.

I wonder if this is a general issue not about NetBSD, or really why
guile/gc seem to work on Linux and other platforms.  Is it a happy
accident of the dynamic linker and ordering, or is a more general fix
appropriate.

_______________________________________________
bdwgc mailing list
[email protected]
https://lists.opendylan.org/mailman/listinfo/bdwgc
signature.asc (application/pgp-signature, 180 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlRQ33MACgkQ+vesoDJhHiU1ogCgtcsQlMhXOGdCnHR45TrzbjRM
E+sAoKL25jJhN8Kf01Pargo8eMbqgLQV
=IL3o
-----END PGP SIGNATURE-----