Skip to content

Stackoverflow without stacktrace when converting large tuple #54570

@Seelengrab

Description

@Seelengrab

MWE, since at least 1.8.5 (reproduces on master):

   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.8.5 (2023-01-08)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> t = Tuple(zeros(Int32, 1024*1024*4));

julia> sizeof(t)
16777216

julia> convert(NTuple{1024*1024*4,UInt32}, t);
ERROR: StackOverflowError:
Stacktrace:
 [1] top-level scope
   @ REPL[2]:1

julia> 

As observed here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions