Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Segmentation fault (core dumped) in torch.nn.functional.alpha_dropout #152777

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

Open
cx104906 opened this issue May 4, 2025 · 1 comment
Open
Assignees
Labels
module: crash Problem manifests as a hard crash, as opposed to a RuntimeError module: empty tensor module: error checking Bugs related to incorrect/lacking error checking oncall: quantization Quantization support in PyTorch topic: fuzzer triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Comments

@cx104906
Copy link

cx104906 commented May 4, 2025

πŸ› Describe the bug

reproduce

curl -L -o 003-args "https://github.com/cx104906/poc/raw/main/pytorch/id%3A000003-args"
curl -L -o 003-kwargs "https://github.com/cx104906/poc/raw/main/pytorch/id%3A000003-kwargs"
python cxtest1.py

cxtest1.py

import pickle
print(torch.__version__)
mylist = torch.load("/home/cx/cxtemp/003-args",weights_only=True)
mydict = torch.load("/home/cx/cxtemp/003-kwargs",weights_only=True)
print("test.....")
torch.nn.functional.alpha_dropout(*mylist,**mydict)

output

2.8.0a0+gitcbcf677
/home/cx/pytorch/torch/_utils.py:425: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly.  To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()
  device=storage.device,
test.....
Segmentation fault (core dumped)

Versions

versions

python collect_env.py

Collecting environment information...
PyTorch version: 2.8.0a0+gitcbcf677
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: Ubuntu 20.04.6 LTS (x86_64)
GCC version: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
Clang version: Could not collect
CMake version: version 3.28.3
Libc version: glibc-2.31

Python version: 3.11.11 (main, Dec 11 2024, 16:28:39) [GCC 11.2.0] (64-bit runtime)
Python platform: Linux-5.4.0-144-generic-x86_64-with-glibc2.31
Is CUDA available: False
CUDA runtime version: No CUDA
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

CPU:
Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
Address sizes:                   46 bits physical, 48 bits virtual
CPU(s):                          32
On-line CPU(s) list:             0-31
Thread(s) per core:              1
Core(s) per socket:              32
Socket(s):                       1
NUMA node(s):                    1
Vendor ID:                       GenuineIntel
CPU family:                      6
Model:                           85
Model name:                      Intel(R) Xeon(R) Gold 5218R CPU @ 2.10GHz
Stepping:                        7
CPU MHz:                         2095.076
BogoMIPS:                        4190.15
Virtualization:                  VT-x
Hypervisor vendor:               KVM
Virtualization type:             full
L1d cache:                       1 MiB
L1i cache:                       1 MiB
L2 cache:                        128 MiB
L3 cache:                        16 MiB
NUMA node0 CPU(s):               0-31
Vulnerability Itlb multihit:     Not affected
Vulnerability L1tf:              Not affected
Vulnerability Mds:               Not affected
Vulnerability Meltdown:          Not affected
Vulnerability Mmio stale data:   Vulnerable: Clear CPU buffers attempted, no microcode; SMT Host state unknown
Vulnerability Retbleed:          Mitigation; Enhanced IBRS
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1:        Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:        Mitigation; Enhanced IBRS, IBPB conditional, RSB filling, PBRSB-eIBRS SW sequence
Vulnerability Srbds:             Not affected
Vulnerability Tsx async abort:   Mitigation; TSX disabled
Flags:                           fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl xtopology cpuid tsc_known_freq pni pclmulqdq vmx ssse3 fma cx16 pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves arat umip pku ospke avx512_vnni md_clear arch_capabilities

Versions of relevant libraries:
[pip3] numpy==2.2.5
[pip3] optree==0.15.0
[pip3] torch==2.8.0a0+gitcbcf677
[conda] numpy                     2.2.5                    pypi_0    pypi
[conda] optree                    0.15.0                   pypi_0    pypi
[conda] torch                     2.8.0a0+gitcbcf677           dev_0    <develop>

cc @jerryzh168 @jianyuh @raghuramank100 @jamesr66a @vkuzo @jgong5 @Xia-Weiwen @leslie-fang-intel @msaroufim @malfet

@malfet malfet added module: crash Problem manifests as a hard crash, as opposed to a RuntimeError triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module topic: fuzzer labels May 4, 2025
@malfet
Copy link
Contributor

malfet commented May 4, 2025

@cx104906 can you modify your fuzzer script to just generates program that initializes headers inline rather than require to download weights? Because looks like all those files are doing, are creating non-empty quantized tensor that is backed by empty storage...

@malfet malfet added module: empty tensor oncall: quantization Quantization support in PyTorch labels May 4, 2025
@malfet malfet self-assigned this May 4, 2025
@malfet malfet added the module: error checking Bugs related to incorrect/lacking error checking label May 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: crash Problem manifests as a hard crash, as opposed to a RuntimeError module: empty tensor module: error checking Bugs related to incorrect/lacking error checking oncall: quantization Quantization support in PyTorch topic: fuzzer triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

No branches or pull requests

2 participants