dj(1) segfaults if trying to skip in stdout #112

Closed
opened 2024-06-04 16:16:48 -06:00 by emma · 3 comments
Owner
$ dj -S 1
zsh: segmentation fault  dj -S 1
``` $ dj -S 1 zsh: segmentation fault dj -S 1 ```
emma added the
bug
label 2024-06-04 16:16:48 -06:00
trinity was assigned by emma 2024-06-04 16:16:51 -06:00
emma changed title from `dj(1)` segfaults if trying to seek into stdout to `dj(1)` segfaults if trying to skip in stdout 2024-06-04 16:17:10 -06:00
Owner

This is definitely happening in Io_fdseek. I currently don't have a programming environment but when I have one set up I'll debug and fix.

This is definitely happening in `Io_fdseek`. I currently don't have a programming environment but when I have one set up I'll debug and fix.
Author
Owner

@trinity this issue is still not fixed in main.

@trinity this issue is still not fixed in main.
Owner

I was gonna get to it in the dj refactor but wanted the API (options) changes in as soon as possible as that change was potentially breaking. One of the reasons for the refactor was to make this bug easier to spot. Obviously no stability is expected in our alpha phase but I wanna iron out all the big things sooner rather than later.

Looking at the main tree as I'm not at my computer, I don't see any possibility of segfault other than a buffer overflow in Io_fdseek. That should be straightforward to solve (perhaps it's an off-by-one?).

I was gonna get to it in the dj refactor but wanted the API (options) changes in as soon as possible as that change was potentially breaking. One of the reasons for the refactor was to make this bug easier to spot. Obviously no stability is expected in our alpha phase but I wanna iron out all the big things sooner rather than later. Looking at the main tree as I'm not at my computer, I don't see any possibility of segfault other than a buffer overflow in `Io_fdseek`. That should be straightforward to solve (perhaps it's an off-by-one?).
emma closed this issue 2024-07-08 13:27:59 -06:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: bonsai/harakit#112
No description provided.