Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#925·trafilatura

SIGSEGV occurs during concurrent extract() calls in 2.2.0

Author: LucasLeRayCreated Aug 31, 2026Updated Sep 16, 2026
Labelsquestion

Hi, we have observed the same failure from #840 again in production with Trafilatura 2.2.0, after the fix from #856.

Environment

  • Trafilatura 2.2.0
  • lxml 6.1.1
  • extruct 0.18.0
  • Python 3.13
  • Linux/amd64 container
  • Up to 10 concurrent calls

Execution pattern

The extractions run concurrently through asyncio.to_thread():

python
content = await asyncio.to_thread(trafilatura.extract, html)

Metadata extraction using extruct also runs through asyncio.to_thread() in the same concurrent batch, so lxml may simultaneously be used by both Trafilatura and extruct.

Concurrency is bounded to 10 tasks, rather than the 50–100+ calls mentioned in the original report.

Observed failure

On 2026-08-30, the main Python process terminated abruptly while processing a batch:

  • process exit code: 139
  • signal: SIGSEGV
  • no Python traceback
  • no application-level exception before termination
  • the process had been running for about seven minutes
  • the failure occurred during the extraction phase

Before upgrading, we had also observed a concurrent production run terminate with SIGABRT and:

munmap_chunk(): invalid pointer

Upgrading to 2.2.0 appears to have reduced the frequency, but it has not eliminated native crashes.

We have not yet reduced this occurrence to a deterministic HTML fixture. Our current mitigation options are to serialize Trafilatura/extruct calls or isolate them in worker processes.

Since this happened with the version containing #856, would you be open to reopening the issue #840 ? We can provide additional sanitized runtime details or test a diagnostic patch if useful.

Source: adbar/trafilatura

View original on GitHubView discussion on GitHub