Skip to content

[CUDA] illegal memory read on Roll #109520

Description

@kokol16

Issue type

Bug

Have you reproduced the bug with TensorFlow Nightly?

No

Source

source

TensorFlow version

tf 2.20

Custom code

Yes

OS platform and distribution

Ubuntu 22.04

Mobile device

No response

Python version

3.10

Bazel version

No response

GCC/compiler version

No response

CUDA/cuDNN version

CUDA 12.5.1, cuDNN 9.2.1

GPU model and memory

No response

Current behavior?

Compute-Sanitizer reports an out of bounds read on cuda kernel RollKernel

Standalone code to reproduce the issue

# RollOp

import tensorflow as tf

gpus = tf.config.list_physical_devices('GPU')

assert gpus, 'No GPU found'

tf.config.experimental.set_memory_growth(gpus[0], True)

with tf.device("/GPU:0"):
    # values truncated in crash log; using uniform fill to match declared shape
    input = tf.ones([46341,46340], dtype=tf.int32)
    shift = tf.constant(2147483647, shape=[], dtype=tf.int32)
    axis = tf.constant(-1, shape=[], dtype=tf.int32)
    res = tf.raw_ops.Roll(input=input, shift=shift, axis=axis)
    res.numpy()
    print(res)

Relevant log output

========= Invalid __global__ read of size 4 bytes
=========     at void tensorflow::<unnamed>::RollKernel<int>(int, int, const T1 *, T1 *, const int *, const int *, const long *)+0x1cd0
=========     by thread (128,0,0) in block (19,0,0)
=========     Address 0xd0000b800 is out of bounds

Activity

  1. added
    comp:gpu
    on Feb 9, 2026
  2. self-assigned this
    on Feb 12, 2026
  3. avmohansai commented on Feb 12, 2026

    @avmohansai

    @Venkat6871, I Was able to reproduce the issue on Colab using TF v2.20.0 and TF-nightly ,Please find the gist here for reference .Thanks!

  4. removed
    awaiting PR merge
    on Jul 29, 2026
  5. Kayyuri commented on Aug 13, 2026

    @Kayyuri

    Hi @kokol16,
    Thank you so much for filing this issue! We truly appreciate your support. At the moment, this request is not prioritized and mark it for community contributions. If you would like to contribute on a fix, please feel free to fork the repository and submit a pull request in accordance with the TensorFlow CONTRIBUTION GUIDELINES and link this issue in your PR to ensure the maintainers can easily review and collaborate.
    To avoid duplicate work, please leave a comment here if you decide to take it on!

    Thank you again for your interest and we look forward to seeing your contributions!

  6. added
    stat:contribution welcome
    on Aug 13, 2026
  7. added
    awaiting PR merge
    and removed
    stat:contribution welcome
    on Sep 7, 2026
  8. google-ml-butler commented on Oct 13, 2026

    @google-ml-butler

    Are you satisfied with the resolution of your issue?
    Yes
    No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

TF 2.19awaiting PR mergecomp:gputype:bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions