Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

MarcoGorelli/mcve-segfaulty-plugin

Repository files navigation

Polars Plugin segfault MCVE

There's a really small Polars plugin which sometimes segfaults.

How to reproduce:

  • cd polars-business
  • make venv
  • make install
  • pytest (run this one a few times)

This doesn't always segfault, just sometimes.

I just ran pytest 10 times, and it passed 4 times and segfaulted 6 times.

If I apply the following diff:

diff --git a/polars_business/polars_business/polars_business/__init__.py b/polars_business/polars_business/polars_business/__init__.py
index ebd9bbfaf..89b8c02b0 100644
--- a/polars_business/polars_business/polars_business/__init__.py
+++ b/polars_business/polars_business/polars_business/__init__.py
@@ -44,7 +44,7 @@ class ExprBusinessDateTimeNamespace:
             lib=lib,
             symbol="sub",
             is_elementwise=True,
-            args=[other],
+            # args=[other],
             kwargs={
                 "holidays": holidays,
             },

then pytest always passes.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages