Skip to content

Buffer overwrite on allocation on CPU gen12 #1626

Open
@ZzEeKkAa

Description

@ZzEeKkAa

I've caught strange behavior that does not raise error, but produce wired results. Looks like initialization writes out of buffer.

import dpnp

size = 1000_000_000
a = dpnp.ones(size)
b = dpnp.ones(size)
c = dpnp.zeros(size) # this overwrites first 480 elements of b to zeros

print(b) # [0. 0. 0. ... 1. 1. 1.]
# expected [1. 1. 1. ... 1. 1. 1.]

# if we remove c allocation - everything works as expected
# if we remove a allocation - segmentation fault or IOT instruction

Issue is reproducible on ubuntu gen9(cpu+gpu if *2), ubuntu gen11(cpu), wsl ubuntu gen12(cpu)
On windows it hangs up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions