oneflow icon indicating copy to clipboard operation
oneflow copied to clipboard

Floating point exception (core dumped) in `flow.floor_divide`

Open Daisy2ang opened this issue 1 year ago • 0 comments

Summary

When calling flow.floor_divide(), division by zero occurs due to zero divisors, triggering a floating point exception and resulting in a crash and core dump.

Code to reproduce bug

import oneflow as flow
flow.floor_divide(flow.tensor([1, 2, 3]), flow.tensor([0, 0, 0]))

output:

Floating point exception (core dumped)

System Information

  • What is your OneFlow installation (pip, source, dockerhub): pip
  • OS: Ubuntu 22.04.5 LTS
  • OneFlow version (run python3 -m oneflow --doctor): path: ['/root/anaconda3/envs/oneflow1.0.0/lib/python3.10/site-packages/oneflow'] version: 0.9.0 git_commit: https://github.com/Oneflow-Inc/oneflow/commit/381b12cb083a1cf0ad2376dae047f058f26ad284 cmake_build_type: Release rdma: True mlir: True
  • Python version: 3.10.0
  • CUDA driver version: 12.2
  • GPU models: NVIDIA GeForce RTX 4090
  • Other info: None

Daisy2ang avatar Jun 30 '25 15:06 Daisy2ang