Skip to content
This repository was archived by the owner on Jul 20, 2026. It is now read-only.
This repository was archived by the owner on Jul 20, 2026. It is now read-only.

segfault is workspace is not big enough, should fail and show warning #8

Description

@orena1

This simple example fails with the defualt workspace

import FisherExact
fisher_exact = FisherExact.fisher_exact
fisher_exact([[1088, 126, 342, 516, 594, 578, 528, 378, 272, 160, 68, 40, 22, 4, 2], 
[12, 1, 5, 4, 5, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0]])

But when I increase it to 13000 it works

import FisherExact
fisher_exact = FisherExact.fisher_exact
fisher_exact([[1088, 126, 342, 516, 594, 578, 528, 378, 272, 160, 68, 40, 22, 4, 2], 
[12, 1, 5, 4, 5, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0]],
workspace=13000)

In R if I use a workspace which is not big enough it just fails and say that the wrokspace is not big enough, but it does not give a segfault.

Thanks!

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions