Open hylkedonker opened 6 months ago
This does not reproduce locally for me in 24.3.0 or the latest nightly build. It also doesn't reproduce in the online playground https://docs.modular.com/mojo/playground. Does this still reproduce for you?
Yes, it does. Also on Ubuntu 24.04.
I was able to reproduce the problem on Docker using the following Dockerfile
:
FROM ubuntu:24.04
ARG DEFAULT_TZ=Europe/Amsterdam
ENV DEFAULT_TZ=$DEFAULT_TZ
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive TZ=$DEFAULT_TZ apt-get install -y \
tzdata \
libedit2 \
python3-numpy \
vim \
sudo \
curl \
wget \
git && \
rm -rf /var/lib/apt/lists/*
# A random default token
ARG AUTH_KEY=5ca1ab1e
ENV AUTH_KEY=$AUTH_KEY
RUN curl https://get.modular.com | sh - && \
modular auth $AUTH_KEY
RUN modular install mojo
ARG MODULAR_HOME="/root/.modular"
ENV MODULAR_HOME=$MODULAR_HOME
ENV PATH="$PATH:$MODULAR_HOME/pkg/packages.modular.com_mojo/bin"
Bug description
I am unable to run/compile a simple
struct
that computes the cumulative sum of atensor.Tensor
. Hereby the segmentation fault:Steps to reproduce
This is a listing of the code to reproduce the error:
Note that when I remove the print statement from the constructor, it no longer crashes.
System information