Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recursive JSON seg faults #96

Open
dpsimpson opened this issue Nov 22, 2024 · 0 comments
Open

Recursive JSON seg faults #96

dpsimpson opened this issue Nov 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@dpsimpson
Copy link
Contributor

Describe the issue as clearly as possible:

Parsing a recursive JSON schema seg faults without throwing an error.

Steps/code to reproduce the bug:

import outlines_core.fsm.json_schema
schema = r'{  "type": "object",  "properties": {    "name": { "type": "string" },    "children": {      "type": "array",      "items": { "$ref": "#" }    }  }}'
regex = outlines_core.fsm.json_schema.build_regex_from_schema(schema)


### Expected result:

```shell
Probably an error

Error message:

Segmentation fault (core dumped)

Outlines/Python version information:

Version information

``` 0.1.14 Python 3.12.7 | packaged by Anaconda, Inc. | (main, Oct 4 2024, 13:27:36) [GCC 11.2.0] ```

Context for the issue:

No response

@dpsimpson dpsimpson added the bug Something isn't working label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant