pylyzer icon indicating copy to clipboard operation
pylyzer copied to clipboard

Stack overflow with the spotipy library

Open UnusualEgg opened this issue 1 year ago • 3 comments

Describe the bug When importing spotipy and using pylyzer, it causes a stack overflow

Reproducible Code

#main.py
import spotipy
$ pylyzer --verbose 2
Start checking: main.py
Checking [====================] 5/5: __init__.py                      

Checking [==========         ] 27/50: _oid.py                        
Checking [====================] 6/6: ocsp.py                         


Checking [====================] 1/1: sentinel.py                   
Checking [============       ]  75/122: __init__.py                   
thread 'pylyzer' has overflowed its stack
fatal runtime error: stack overflow
Aborted (core dumped)

Expected behavior Shouldn't overflow

Environment

  • OS: x86_64 GNU/Linux Ubuntu
  • Version: 22.04.5 LTS

UnusualEgg avatar Dec 04 '24 17:12 UnusualEgg

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] avatar Feb 07 '25 02:02 github-actions[bot]

Same. Any module big enough causes overflow, such as torch.

$ pylyzer --version
0.0.82
$ pylyzer --verbose 2 -c "import torch"

...
recursion limit exceed: structural_supertype_of({?Path}, {"numpy/f2py"})
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

thread 'scipy/_lib/_docscrape' has overflowed its stack

...

thread 'dense' has overflowed its stack
fatal runtime error: stack overflow
Aborted (core dumped)

neosr-project avatar Mar 08 '25 07:03 neosr-project

Can confirm: https://github.com/mtshiba/pylyzer/issues/130

savchenko avatar Apr 02 '25 01:04 savchenko