Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault when juliacall is imported before paddle #70593

Open
AndPuQing opened this issue Jan 2, 2025 · 0 comments
Open

Segmentation fault when juliacall is imported before paddle #70593

AndPuQing opened this issue Jan 2, 2025 · 0 comments
Assignees
Labels
PFCC Paddle Framework Contributor Club,https://github.com/PaddlePaddle/community/tree/master/pfcc status/new-issue 新建 type/bug-report 报bug

Comments

@AndPuQing
Copy link
Contributor

AndPuQing commented Jan 2, 2025

bug描述 Describe the Bug

paddle import 在 juliacall 之后将会发生core dumped, 下面是最小复现代码

# paddlepaddle-gpu              3.0.0b1
import pysr
from pysr import PySRRegressor
import numpy as np
import paddle # <---- 此处如果在 pysr 前面被import 将不会core dumped

X = np.random.randn(100, 10)
y = np.ones(X.shape[0])
model = PySRRegressor(
    progress=False,
    max_evals=10000,
    model_selection="accuracy",
    extra_sympy_mappings={},
    output_paddle_format=True,
)
model.fit(X, y) <----- core dumped

When paddle is imported after juliacall, a core dump occurs. Below is the minimal reproducible code:

# paddlepaddle-gpu 3.0.0b1
import pysr
from pysr import PySRRegressor
import numpy as np
import paddle  # <---- Importing this *before* pysr prevents the core dump

X = np.random.randn(100, 10)
y = np.ones(X.shape[0])
model = PySRRegressor(
    progress=False,
    max_evals=10000,
    model_selection="accuracy",
    extra_sympy_mappings={},
    output_paddle_format=True,
)
model.fit(X, y)  # <----- core dumped

该问题在其他框架也有类似的问题


This problem also has similar problems in other frameworks

Related Issues

其他补充信息 Additional Supplementary Information

No response

@paddle-bot paddle-bot bot added the PFCC Paddle Framework Contributor Club,https://github.com/PaddlePaddle/community/tree/master/pfcc label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PFCC Paddle Framework Contributor Club,https://github.com/PaddlePaddle/community/tree/master/pfcc status/new-issue 新建 type/bug-report 报bug
Projects
None yet
Development

No branches or pull requests

2 participants