Title: switch to a whitelist for #include
Open Graph Title: switch to a whitelist for #include
X Title: switch to a whitelist for #include
Description: Build-time feature detection does not seem to be an option here, but I'd like to suggest using a whitelist for backtrace() functionality rather than an ever-growing stoplist (e.g., #1338, #796): Rcpp/inst/include/Rcpp/exceptions_impl.h L...
Open Graph Description: Build-time feature detection does not seem to be an option here, but I'd like to suggest using a whitelist for backtrace() functionality rather than an ever-growing stoplist (e.g., #1338, #796): Rc...
X Description: Build-time feature detection does not seem to be an option here, but I'd like to suggest using a whitelist for backtrace() functionality rather than an ever-growing stoplist (e.g., #1338, #796)...
Opengraph URL: https://github.com/RcppCore/Rcpp/issues/1400
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"switch to a whitelist for #include \u003cexecinfo.h\u003e","articleBody":"Build-time feature detection does not seem to be an option here, but I'd like to suggest using a whitelist for `backtrace()` functionality rather than an ever-growing stoplist (e.g., #1338, #796):\n\nhttps://github.com/RcppCore/Rcpp/blob/65707515bb392059bf10b773898cb67292d1ea41/inst/include/Rcpp/exceptions_impl.h#L24-L44\n\nWhat brought me here is that the `__MUSL__` exception (added long ago in #449) is an unreliable kludge as musl itself doesn't define such a macro ([by design](http://openwall.com/lists/musl/2013/03/29/13)).\n\nAFAICS, a suitable whitelist should be as simple as\n\n```C\ndefined(__GLIBC__) || defined(__APPLE__)\n```\n\nwhere execinfo is built-in. The additional compiler check (gcc|clang) seems to be redundant (probably a relict). The suggested change is similar in spirit to the original commit in #449, which was discarded simply because it forgot to cover macOS. BSDs have long provided execinfo, too, but a web search suggests they require separate linking with `-lexecinfo`.\n","author":{"url":"https://github.com/bastistician","@type":"Person","name":"bastistician"},"datePublished":"2025-10-20T15:06:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/1400/Rcpp/issues/1400"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2fdb79df-a216-0e77-5c8d-ebbbd90cf3bd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B6BA:D7362:26AE72F:331566F:696B2A65 |
| html-safe-nonce | 903634fa92f7dac2e8bae97c86dd8ddff0ae647c752581c5132e878e221ad098 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNkJBOkQ3MzYyOjI2QUU3MkY6MzMxNTY2Rjo2OTZCMkE2NSIsInZpc2l0b3JfaWQiOiIxMTE3NjcyODkwMTY1ODMyMjkzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b3acf5fffcdbee7a0fcd09486147bbfca8b9b8bffda9ea8113cbfe5a814c1de6 |
| hovercard-subject-tag | issue:3532815573 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/RcppCore/Rcpp/1400/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ea8abedf2577dd4b351752d93c831ec21628caf76a934c98ed9f7e5bab425e0b/RcppCore/Rcpp/issues/1400 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ea8abedf2577dd4b351752d93c831ec21628caf76a934c98ed9f7e5bab425e0b/RcppCore/Rcpp/issues/1400 |
| og:image:alt | Build-time feature detection does not seem to be an option here, but I'd like to suggest using a whitelist for backtrace() functionality rather than an ever-growing stoplist (e.g., #1338, #796): Rc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bastistician |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/RcppCore/Rcpp git https://github.com/RcppCore/Rcpp.git |
| octolytics-dimension-user_id | 5811336 |
| octolytics-dimension-user_login | RcppCore |
| octolytics-dimension-repository_id | 14005591 |
| octolytics-dimension-repository_nwo | RcppCore/Rcpp |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14005591 |
| octolytics-dimension-repository_network_root_nwo | RcppCore/Rcpp |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width