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

gfak::mmap_open opens O_RDWR #65

Open
tetron opened this issue Apr 7, 2020 · 2 comments
Open

gfak::mmap_open opens O_RDWR #65

tetron opened this issue Apr 7, 2020 · 2 comments

Comments

@tetron
Copy link

tetron commented Apr 7, 2020

gfak::mmap_open calls open with O_RDWR (read/write access). This fails with a cryptic error when the file is read-only:

odgi: /app/odgi/deps/gfakluge/src/gfakluge.hpp:569: size_t gfak::mmap_open(const string&, char*&, int&): Assertion `false' failed.
@tetron
Copy link
Author

tetron commented Apr 7, 2020

The workaround is to make the file writable (but this entails making a copy of the whole file in my case).

@ekg
Copy link
Contributor

ekg commented Apr 7, 2020 via email

bernt-matthias added a commit to bernt-matthias/tools-iuc that referenced this issue Sep 7, 2022
currently fails CI due to

```
|  odgi: /opt/conda/conda-bld/odgi_1616839257024/work/deps/gfakluge/src/gfakluge.hpp:569: size_t gfak::mmap_open(const string&, char*&, int&): Assertion `false' failed.
|  /tmp/tmpdi1icj3u/job_working_directory/000/2/tool_script.sh: line 22:     7 Aborted                 (core dumped) odgi build -g '/tmp/tmpdi1icj3u/files/b/0/4/dataset_b04a44e9-eafd-415b-a3a8-0e671b31ff1d.dat' -o '/tmp/tmpdi1icj3u/job_working_directory/000/2/outputs/galaxy_dataset_6817b8a3-8f3d-4f14-a7ad-d73d11568ad8.dat' --sort --to-gfa > '/tmp/tmpdi1icj3u/job_working_directory/000/2/outputs/galaxy_dataset_38a641a6-89d8-4d27-baf0-00a9e665dd58.dat'
```

which is because edawson/gfakluge#65
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants