惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

H
Heimdal Security Blog
P
Privacy International News Feed
S
Schneier on Security
P
Proofpoint News Feed
L
Lohrmann on Cybersecurity
Spread Privacy
Spread Privacy
P
Privacy & Cybersecurity Law Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Scott Helme
Scott Helme
K
Kaspersky official blog
大猫的无限游戏
大猫的无限游戏
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
aimingoo的专栏
aimingoo的专栏
Simon Willison's Weblog
Simon Willison's Weblog
S
Securelist
Help Net Security
Help Net Security
B
Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Security Archives - TechRepublic
Security Archives - TechRepublic
云风的 BLOG
云风的 BLOG
The GitHub Blog
The GitHub Blog
N
News and Events Feed by Topic
Hacker News: Ask HN
Hacker News: Ask HN
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
M
MIT News - Artificial intelligence
雷峰网
雷峰网
博客园 - 司徒正美
V
V2EX
AWS News Blog
AWS News Blog
Know Your Adversary
Know Your Adversary
N
News | PayPal Newsroom
T
Tor Project blog
Cisco Talos Blog
Cisco Talos Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
PCI Perspectives
PCI Perspectives
Google DeepMind News
Google DeepMind News
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
U
Unit 42
C
Cybersecurity and Infrastructure Security Agency CISA
P
Palo Alto Networks Blog
G
Google Developers Blog
T
Threat Research - Cisco Blogs
博客园 - Franky
I
InfoQ
D
DataBreaches.Net
爱范儿
爱范儿
Y
Y Combinator Blog
博客园 - 叶小钗
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

Inside Nutrient

A guide to the invisible work behind documents Introducing Nutrient Documents for Salesforce: Native document generation and signing Document AI vs. traditional OCR: Choosing between OCR, AI, and hybrid pipelines PDF SDK compliance and security evaluation checklist for enterprise teams (2026) Invariant Corp replaces paper processes with Nutrient Workflow and scales without limits What is process mapping? A complete guide Nutrient vs. Conga Composer for Salesforce document generation (2026) Document routing: How to automate document distribution The CTO’s AI playbook: Why accountability architecture beats orchestration Compliance workflow automation: Why built-in compliance is table stakes Workflow diagrams: Examples, symbols, and how to build one that actually runs Digital forms: Replace paper forms with automated workflows Approval workflow software: How to automate approvals Why document-centric automation is different The CEO’s AI playbook: Why decision architecture beats model selection Nutrient SDK product updates for Q1 2026 PDF redaction verification: How to prove sensitive data is permanently removed What is a VPAT? The complete guide to accessibility conformance reports What is PDF/UA? The accessible PDF standard explained Salesforce eSignatures: Generate, sign, and track documents in one flow Online document viewer: Options, tradeoffs, and how to embed one Document viewer for web apps: React, Vue, Angular (2026) Best document viewers in 2026: A buyer’s guide How to edit a PDF in Python: Add text, images, and annotations Nutrient advances Workflow platform with agentic AI for enterprise-grade speed and consistency in document-heavy operations How to create a Salesforce quote template from opportunity data The business case for accessibility: Five ways it drives enterprise value Python PDF library comparison (2026): 7 libraries for developers Why your AI agent hallucinates PDF table data PDF.js limitations: When to upgrade to a commercial PDF SDK How Subject scaled 5× with Nutrient’s PDF SDK without rebuilding its document layer I replaced our sales training with an AI coach that runs in Slack — here’s what broke Redirecting to: https://securitybuzz.com/cybersecurity-news/why-enterprise-permissions-are-ais-most-dangerous-inheritance/ Nutrient .NET SDK vs. iText Core: Complete comparison for .NET developers DocuVieware: Support’s most frequently asked setup questions Introducing Nutrient Workflow How to convert PDF to Word in C# (.NET) When email and spreadsheets stop working: Work order approval workflows for field teams on the move Compliance with confidence: Why document-centric automation is the foundation of your mission Nutrient expands AI Assistant, automating multistep document workflows inside any application What is document generation? A developer’s guide to PDF generation Document Converter data flow and how real-time watermarks skip the queue PDF/UA compliance guide: Requirements, standards, and best practices Computers still can’t understand you How Athena Intelligence built AI agents for regulated enterprises with Nutrient’s document infrastructure How to convert HTML to PDF (2026): 4 methods from browser print to SDK How to build a document extraction pipeline with Nutrient Vision API OCR vs. intelligent document processing: Choosing the right document extraction engine Beyond OCR: How document intelligence eliminates manual processing in regulated industries Nutrient vs. IronPDF: Complete comparison for .NET developers Nutrient vs. Aspose.PDF: Complete comparison for .NET developers Redirecting to: https://fortune.com/2026/02/19/openclaw-who-is-peter-steinberger-openai-sam-altman-anthropic-moltbook/ Lufthansa Systems uses Nutrient to deliver reliable, scalable PDF rendering for pilots worldwide Nutrient vs. Syncfusion: Complete comparison for .NET developers React’s useTransition: The hook you’re probably using wrong First City Monument Bank streamlines banking processes with Nutrient Workflow Redirecting to: https://www.sdcexec.com/warehousing/automation/article/22957364/nutrient-workflow-automation-the-missing-link-in-supply-chain-efficiency The complete guide to digital signatures: PAdES, CAdES, and XAdES explained Nutrient Python SDK: Production-grade document processing for Python Introducing agentic document editing for web applications with AI Assistant Nutrient vs. QuestPDF: Complete comparison for .NET developers How we fixed the GdPicture license expiration (and what to do if you’re affected) Red team security testing with agentic AI The future of healthcare document automation Best healthcare workflow software compared Nutrient SDK product updates for Q4 2025 How Harvey scaled legal document workflows 50 percent MoM without rebuilding infrastructure HIPAA-compliant document management in hospitals How we optimized rendering performance while handling thousands of annotations in React — Part 2 Automated PII removal with Nutrient API Redirecting to: https://www.devopsdigest.com/2026-low-code-no-code-predictions Redirecting to: https://www.kmworld.com/Articles/Editorial/ViewPoints/Leaders-predict-AI-to-continue-permeating-all-aspects-of-KM-in-2026-172594.aspx What are deep agents and how do they solve complex problems? Whipping up document magic: Your easy-bake recipe for Vue and Nutrient Web SDK 🧁 What I’ve learned about product iteration planning while building SDKs Passwordless document signing: Three-layer security guide New zip folder functionality streamlines file management in Document Automation Server The keyboard shortcuts playbook: Taking control of keyboard events in Nutrient Web SDK From experienced engineer to AI beginner: My unexpected journey AI-assisted manual testing: Handling Safari’s PDF rendering and UI quirks How to keep a 20-year-old SDK up to date How we optimized rendering performance while handling thousands of annotations in React — Part 1 Nutrient announces new executive hires to accelerate next phase of growth High performance UI using web workers Automate document conversion at scale with Python and Nutrient DCS From curiosity to PLG (and AI): My journey to understanding product-led growth Prost to progress: One year as Nutrient Pigeon usage at Nutrient: Bridging native SDKs to Flutter Modernizing CI build servers: How to migrate from Chef to Ansible Unix man pages: AI-friendly documentation since 1971 Consistent hashing for even load distribution Best AI redaction APIs: Complete comparison guide for 2025 Why AI document redaction matters for modern security From coding to coordinating: How AI transformed my workflow What is intelligent document processing (IDP)? A complete guide Enterprise PDF SDKs: Best PSPDFKit (now Nutrient) alternatives Nutrient SDK product updates for Q3 2025 GdPicture support best practices Redacting sensitive data with Nutrient AI redaction API How AI is transforming the customer experience at Nutrient: From instant answers to intelligent support
Investigating a dynamic linking crash with Xcode 16
Stefan Kieleithner · 2024-07-18 · via Inside Nutrient

When Xcode 16 was released as a beta build at WWDC24, we were quick to download it and start testing our product with iOS 18. However, when running our project for the first time, we noticed a crash on the launch of our example app when initializing PSPDFKit, and it was related to dynamic linking of symbols. The origin of this issue and the fix for this weren’t immediately obvious, so this blog post will go into details of how we debugged the issue and came up with a solution.

Identifying the issue

The crash we saw happened when initializing PSPDFKit, which caused an EXC_BAD_ACCESS error message on Xcode 16. More specifically, this crash was happening for customers using Xcode 16 with already released versions of PSPDFKit, which is distributed as a binary framework. We even had a customer contact us on support with the same issue shortly after we discovered it during testing.

As such, it was all the more important for us to fix the crash. This is because it wasn’t related to our framework built with Xcode 16; the issue also happened when our framework was built with Xcode 15. It’s great to see our customers eager to adopt the latest technologies, and we were keen to unblock them.

We discovered that calling sqlite3_threadsafe is what caused the issue. But for some more background on this, we have to dive into why we’re calling this function in the first place.

PSPDFKit for iOS uses SQLite internally for various features, like full-text search. By default, we use the SQLite library the system provides. However, it’s also possible for customers to provide their own version of SQLite if they’re linking a custom SQLite library in their project — in which case, PSPDFKit for iOS uses this library instead. Since we can’t control which SQLite library is used, we perform some checks to verify that all the symbols PSPDFKit uses from SQLite are available in the provided library.

Note that we’re using C in our codebase to work with SQLite; this is a mature part of our codebase that has been proven to be reliable. One of the verification steps in place is making sure all the SQLite symbols we load come from the same dynamic library. If that isn’t the case and there are symbols from another library, we abort the process and we don’t link SQLite. This is accomplished using code along the lines of the following:

bool pspdf_sqlite_dynamic_linking_check(const void *handle, const char *method, Dl_info *last_info) {

void *address = dlsym(handle, method);

Dl_info info;

dladdr(address, &info);

if (last_info->dli_fname && strcmp(info.dli_fname, last_info->dli_fname) != 0)) {

LOGWARN("shared object for %s (%s) doesn't match the one from the previous method (%s)", method, info.dli_fname, last_info->dli_fname);

return false;

}

*last_info = info;

return true

}

void *handle = dlopen(sqlite_path, 0);

Dl_info last_info = {0};

if (!pspdf_sqlite_dynamic_linking_check(handle, "sqlite3_config", &last_info)) { return false }

if (!pspdf_sqlite_dynamic_linking_check(handle, "sqlite3_close", &last_info)) { return false }

if (!pspdf_sqlite_dynamic_linking_check(handle, "sqlite3_threadsafe", &last_info)) { return false }

...

In the code above, sqlite_path is either libsqlite3.dylib or the path to the custom SQLite library the customer provided.

We check whether the function to be loaded comes from the same library as the previous one, which is done by seeing if info.dli_fname is the same as last_info->dli_fname. dli_fname is the path name of the object that contains the address of the symbol we just loaded into memory.

If the check fails, we return false and stop loading the rest of the SQLite methods using dlsym, in which case only a subset of functions are loaded. When using the libsqlite3.dylib system library with Xcode 15, everything works as expected, and all symbols are loaded from the same library. However, after switching to Xcode 16, we noticed a crash related to this logic.

More specifically, after calling and searching for SQLite symbols using dlsym(handle, "sqlite3_close"), we observed an unexpected value for Dl_info.dli_fname. Instead of pointing to libsqlite3.dylib, the reported path is /Library/Developer/CoreSimulator/Volumes/iOS_22A5282m/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.0.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libRPAC.dylib. This was unexpected and caused our validation check that all symbols need to come from the same library to fail.

Also, not all symbols were reporting the libRPAC.dylib path; only some of the SQLite-related methods did. And since sqlite3_threadsafe is the first method we call after loading SQLite has been aborted, resulting in the function not being loaded, we get the crash mentioned above.

Investigating the problem

Once we narrowed down what caused the crash, we could begin investigating why it happened. The incorrect path including libRPAC.dylib suggested that the dynamic linker was resolving symbols from the wrong library. This behavior is inconsistent with previous versions of Xcode, where all the SQLite-related methods we were loading were coming from libsqlite3.dylib.

What this means is that there was a change in Xcode 16 related to the libRPAC library. Upon inspecting the libRPAC.dylib binary using nm -g, we discovered that it now includes some SQLite-related symbols. This wasn’t the case in Xcode 15 (with the iOS 17 SDK).

Figuring out a solution

Since we noticed this right after Xcode 16 beta 1 was released, we still had time to book a WWDC lab, where we received some pointers on how to debug the situation and figure out what causes it. It was motivating to have the opportunity to dig into this with engineers at Apple and see them at work. Labs are a fantastic part of WWDC, and I recommend booking them if you’re ever able to.

Some of the tips we got were to add environment variables to the scheme in Xcode to figure out why libRPAC is loaded and why the addresses aren’t coming from libsqlite. For this, we tried setting DYLD_PRINT_SEGMENTS and DYLD_PRINT_APIS to 1. Doing so logs events related to dynamic linking(opens in a new tab) to the console.

Then we set another environment variable, DYLD_PRINT_LINKS_WITH libRPAC.dylib, which logs to the console whenever the specified dynamic library is loaded. In our case, this happened right when launching the app, so it looked like libRPAC was something Xcode inserted.

While debugging this together with Apple engineers, we discovered libRPAC is interposing SQLite methods. But why is libRPAC even loaded in the first place? To figure this out, we disabled various settings in the Options and Diagnostics tabs in scheme settings until we found a setting that caused libRPAC to be loaded. We found out that the culprit was the Thread Performance Checker(opens in a new tab) tool, which is enabled by default in the scheme settings in Xcode. The Thread Performance Checker tool loads libRPAC at app startup, and when disabling the tool, we could no longer reproduce the crash.

With the Thread Performance Checker tool, libRPAC apparently does some analyzing behind the scenes for SQLite symbols. With that knowledge, we immediately recommend the customer who reported this to disable the Thread Performance Checker tool. However, this isn’t a long-term solution, as we don’t want to recommend disabling useful features. So we also adjusted our checks to allow libRPAC.dylib in addition to libsqlite3.dylib. This only requires customers to update the PSPDFKit version to avoid this crash, while still being able to keep the Thread Performance Checker tool enabled.

Conclusion

We already shipped this fix with PSPDFKit 13.7 for iOS, which now won’t crash on Xcode 16.

Dynamic linking issues can be tricky to diagnose, and the reason for a change like this might not be immediately obvious. But by investigating the path discrepancies and symbol inclusion, we were able to resolve the issue and make sure running with the newest Xcode beta builds won’t crash.