I now have repro steps that do not require SnapPy at all: Rx = PolynomialRing(RationalField(), 'x') R = PolynomialRing(Rx, 'y') R('-y^2 + x^2 - x + 1').resultant(R('(2*x - 1)*y'))
On Saturday, January 29, 2022 at 11:19:38 PM UTC-8 Matthias Goerner wrote: > I am getting a crash when I am running SnapPy's > https://github.com/3-manifolds/SnapPy test suite against SageMath with > the stack trace below. > I created several different conda environments, all with python 3.9.9, on > Mac OS 11.5.2 x86_64 and it seems to be related to the (cy)pari version. > That is, I can fix the crash or recreate the crash by changing the > environment with "conda install pari==2.11.4" or "conda install 2.13.2". > Those commands change the packages as follows: > > added / updated specs: > - pari==2.11.4 > > > The following packages will be DOWNGRADED: > > cypari2 2.1.2-py39hbeebeb8_3 --> > 2.1.2-py39he58a9ab_0 > cysignals 1.11.2-py39h7972417_0 --> > 1.10.3-py39h520947a_0 > eclib 20210503-h06317ce_2 --> > 20210503-h5af3530_0 > giac 1.6.0.47-h3e19eb6_2 --> > 1.6.0.47-h5514456_0 > lcalc 1.23-he3dd645_1006 --> > 1.23-h3e22c04_1004 > pari 2.13.2-h491590d_1_pthread --> > 2.11.4-h797e938_2 > sagelib 9.3-py39hf07016b_5 --> > 9.3-py39h2a6771f_4 > > l also tried Marc Culler's Sage releases ( > https://github.com/3-manifolds/Sage_macOS/releases), version 9.4 and 9.5 > prerelease. The crash didn't happen in either version. I think those use > pari 2.13.1 and 2.13.3. > > Hmmm... I noted that the downgrading that fixed the crash removed > "_pthread" from the pari version. So maybe pthread support causes the crash. > > Here is the stacktrace: > > * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT > * frame #0: 0x00007fff203b84c2 libsystem_kernel.dylib`__kill + 10 > frame #1: 0x000000010ffd40ac libpari-gmp-tls.dylib`pari_err + 4940 > frame #2: 0x000000010fca26ec libpari-gmp-tls.dylib`_gtopoly + 172 > frame #3: 0x00000001169ec422 > gen.cpython-39-darwin.so`__pyx_pf_7cypari2_3gen_8Gen_base_14Polrev > + 178 > frame #4: 0x000000010f7b450c > signals.cpython-39-darwin.so`__Pyx_CyFunction_CallAsMethod > + 92 > frame #5: 0x0000000118534c77 > polynomial_element.cpython-39-darwin.so`__Pyx_PyObject_Call2Args > + 215 > frame #6: 0x00000001185972cf > polynomial_element.cpython-39-darwin.so`__pyx_pw_4sage_5rings_10polynomial_18polynomial_element_10Polynomial_221_pari_with_name > > + 1071 > frame #7: 0x000000010f0b1f24 python`cfunction_call + 52 > frame #8: 0x0000000118534ea3 > polynomial_element.cpython-39-darwin.so`__Pyx_PyObject_CallOneArg > + 339 > frame #9: 0x00000001185967a2 > polynomial_element.cpython-39-darwin.so`__pyx_pw_4sage_5rings_10polynomial_18polynomial_element_10Polynomial_217__pari__ > > + 386 > frame #10: 0x0000000118535904 > polynomial_element.cpython-39-darwin.so`__Pyx_PyObject_CallNoArg > + 132 > frame #11: 0x0000000118598497 > polynomial_element.cpython-39-darwin.so`__pyx_pw_4sage_5rings_10polynomial_18polynomial_element_10Polynomial_231resultant > > + 551 > frame #12: 0x000000010f060bd5 python`method_vectorcall_O + 117 > frame #13: 0x00000001108491d4 > element.cpython-39-darwin.so`__pyx_pw_4sage_9structure_7element_12coerce_binop_1new_method > > + 1208 > frame #14: 0x000000010f051288 python`_PyObject_MakeTpCall + 136 > frame #15: 0x000000010f055d9e python`method_vectorcall + 686 > frame #16: 0x000000010f186e4f python`call_function + 175 > frame #17: 0x000000010f184940 python`_PyEval_EvalFrameDefault + 44816 > frame #18: 0x000000010f1781e4 python`_PyEval_EvalCode + 548 > frame #19: 0x000000010f05272b python`_PyFunction_Vectorcall + 427 > frame #20: 0x000000010f186e4f python`call_function + 175 > frame #21: 0x000000010f184972 python`_PyEval_EvalFrameDefault + 44866 > frame #22: 0x000000010f1781e4 python`_PyEval_EvalCode + 548 > frame #23: 0x000000010f05272b python`_PyFunction_Vectorcall + 427 > frame #24: 0x000000010f186e4f python`call_function + 175 > frame #25: 0x000000010f184972 python`_PyEval_EvalFrameDefault + 44866 > frame #26: 0x000000010f1781e4 python`_PyEval_EvalCode + 548 > frame #27: 0x000000010f05272b python`_PyFunction_Vectorcall + 427 > frame #28: 0x000000010f186e4f python`call_function + 175 > frame #29: 0x000000010f184972 python`_PyEval_EvalFrameDefault + 44866 > frame #30: 0x000000010f052672 python`_PyFunction_Vectorcall + 242 > frame #31: 0x000000010f186e4f python`call_function + 175 > frame #32: 0x000000010f184972 python`_PyEval_EvalFrameDefault + 44866 > frame #33: 0x000000010f052672 python`_PyFunction_Vectorcall + 242 > frame #34: 0x000000010f186e4f python`call_function + 175 > frame #35: 0x000000010f184972 python`_PyEval_EvalFrameDefault + 44866 > frame #36: 0x000000010f1781e4 python`_PyEval_EvalCode + 548 > frame #37: 0x000000010f05272b python`_PyFunction_Vectorcall + 427 > frame #38: 0x000000010f186e4f python`call_function + 175 > frame #39: 0x000000010f184a2b python`_PyEval_EvalFrameDefault + 45051 > frame #40: 0x000000010f1781e4 python`_PyEval_EvalCode + 548 > frame #41: 0x000000010f05272b python`_PyFunction_Vectorcall + 427 > frame #42: 0x000000010f055b8e python`method_vectorcall + 158 > frame #43: 0x000000010f186e4f python`call_function + 175 > frame #44: 0x000000010f184a2b python`_PyEval_EvalFrameDefault + 45051 > frame #45: 0x000000010f1781e4 python`_PyEval_EvalCode + 548 > frame #46: 0x000000010f1722c3 python`builtin_exec + 371 > frame #47: 0x000000010f0b2473 python`cfunction_vectorcall_FASTCALL + 99 > frame #48: 0x000000010f186e4f python`call_function + 175 > frame #49: 0x000000010f184972 python`_PyEval_EvalFrameDefault + 44866 > frame #50: 0x000000010f052672 python`_PyFunction_Vectorcall + 242 > frame #51: 0x000000010f186e4f python`call_function + 175 > frame #52: 0x000000010f18489e python`_PyEval_EvalFrameDefault + 44654 > frame #53: 0x000000010f1781e4 python`_PyEval_EvalCode + 548 > frame #54: 0x000000010f05272b python`_PyFunction_Vectorcall + 427 > frame #55: 0x000000010f186e4f python`call_function + 175 > frame #56: 0x000000010f18489e python`_PyEval_EvalFrameDefault + 44654 > frame #57: 0x000000010f1781e4 python`_PyEval_EvalCode + 548 > frame #58: 0x000000010f05272b python`_PyFunction_Vectorcall + 427 > frame #59: 0x000000010f186e4f python`call_function + 175 > frame #60: 0x000000010f184972 python`_PyEval_EvalFrameDefault + 44866 > frame #61: 0x000000010f1781e4 python`_PyEval_EvalCode + 548 > frame #62: 0x000000010f05272b python`_PyFunction_Vectorcall + 427 > frame #63: 0x000000010f186e4f python`call_function + 175 > frame #64: 0x000000010f184a2b python`_PyEval_EvalFrameDefault + 45051 > frame #65: 0x000000010f1781e4 python`_PyEval_EvalCode + 548 > frame #66: 0x000000010f05272b python`_PyFunction_Vectorcall + 427 > frame #67: 0x000000010f186e4f python`call_function + 175 > frame #68: 0x000000010f184a2b python`_PyEval_EvalFrameDefault + 45051 > frame #69: 0x000000010f052672 python`_PyFunction_Vectorcall + 242 > frame #70: 0x000000010f186e4f python`call_function + 175 > frame #71: 0x000000010f184972 python`_PyEval_EvalFrameDefault + 44866 > frame #72: 0x000000010f1781e4 python`_PyEval_EvalCode + 548 > frame #73: 0x000000010f1eb463 python`PyRun_FileExFlags + 403 > frame #74: 0x000000010f1eac0d python`PyRun_SimpleFileExFlags + 525 > frame #75: 0x000000010f216279 python`pymain_run_file + 329 > frame #76: 0x000000010f215960 python`pymain_run_python + 992 > frame #77: 0x000000010f215525 python`Py_RunMain + 37 > frame #78: 0x000000010f216c91 python`pymain_main + 49 > frame #79: 0x000000010efdd388 python`main + 56 > frame #80: 0x00007fff20402f3d libdyld.dylib`start + 1 > > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/13ec652c-c1db-449d-86d0-b0550180c45bn%40googlegroups.com.