Skip to content

Seg Fault for case involving symbolic lists through llvm backend #2450

Closed
@anutosh491

Description

@anutosh491

Consider the following example

from lpython import S
from sympy import Symbol, pi

def mmrv() -> list[S]:
    l1: list[S] = [pi]
    return l1

def test_mrv1():
    ans: list[S] = mmrv()
    el: S = ans[0]
    print(el)

test_mrv1()

We get

(lf) anutosh491@spbhat68:~/lpython/lpython$ lpython --enable-symengine --backend=llvm examples/expr2.py 
Segmentation fault

The same function would work for a list of any other type but fails to work for a symbolic list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions