Skip to content

Segfault when assigning to a complex Scalar #40

Closed
@eriknw

Description

@eriknw

I get a segfault when I run this code:

import suitesparse_graphblas as ssgb

ssgb.initialize()
s = ssgb.ffi.new("GrB_Scalar*")
assert ssgb.lib.GrB_Scalar_new(s, ssgb.lib.GxB_FC64) == 0
assert ssgb.lib.GxB_Scalar_setElement_FC64(s[0], 1j) == 0  # <-- segfault here

Any thoughts? I guess we should try running this in C.

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