Hello *,

asymptote-3.00 has just appeared, and I'm trying to update the ebuild.

asymptote now bundles boehm-gc; the option to use system boehm-gc is now absent. asymptote-3.00/gc/README.md says that it's 8.2.8; however, the sourse tree asymptote-3.00/gc differs from the plain gc-8.2.8. I suppose some hacking autoconf files is needed to unbundle it, and it's a nontrivial work. A pity.

What's more, compiling this bundled gc leads to sandbox violations like

F: open_wr
S: deny
P: /proc/4643/clear_refs
A: /proc/4643/clear_refs
R: /proc/4643/clear_refs
C: ./cordtest

and several more. All of them are in some test programs:

cordtest
gctest
staticrootstest
disclaim_test
disclaim_weakmap_test

All of them try to write to some /proc/*/clear_refs; I don't know what are these /proc/*/clear_refs files. Surprisingly, all gc test are marked as passed. Maybe, the resulting libgc (and the resulting asymptote) even work. But, of course, the ebuild fails, and does not install these results.

Interestingly, emerging boehm-gc succeeds, no sandbox violations.

I suppose the best way out is to somehow force asymptote to use the system boehm-gc. As a stopgap measure, is it possible to allow these test programs to write to /proc/*/clear_refs?

Hoping for some help,
Andrey

Reply via email to