Skip to content

Segmentation fault with simple comparison #29373

@NeilGirdhar

Description

@NeilGirdhar

Description

import jax.numpy as jnp
y = 2.0
jy = jnp.asarray(2.0)
g = {'y': y}
h = {'y': jy}
print(g == h)  # Fault!!

gives

WARNING:2025-06-10 14:14:30,805:jax._src.xla_bridge:791: An NVIDIA GPU may be present on this machine, but a CUDA-enabled jaxlib is not installed. Falling back to cpu.
fish: Job 1, 'python a.py' terminated by signal SIGSEGV (Address boundary error)

System info (python version, jaxlib version, accelerator, etc.)

Python 3.13.4
jax==0.6.1
jaxlib==0.6.1

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions