segment fault when applied on top of st-clipboard patch
smartding opened this issue · comments
Not sure if this is the right place to report error about the st "vim browse" patch, I found link of this repo on the web page of that patch.
After I apply the "vim browse" patch on top of the clipboard patch, which adds just one line to st's source code. I get a segment fault error from st.
Step to reproduce:
- checkout st at commit 9ba7ecf
- apply the vim browse patch, I tried the 2 versions based on commit 9ba7ecf listed on the patch web page, they all have the same problem:
- st-vimBrowse-20200607-9ba7ecf.diff
- st-vimBrowse-latestRelease-9ba7ecf.diff
- apply the clipboard patch
- build and run st
- select something with the left button of mouse
- wait 3-4 seconds
Now st segment faults.
I'm using latest archlinux, btw
if I revert the change to the clipcopy
function in x.c, i.e. I deleted the line xsetsel(getsel());
added by the vim browse patch, then there's no segment fault, not really sure why...
Hey!
Thanks for reporting this incompatibility and proposing a solution! :)
I'm currently busy finishing my Master Thesis, I'll look into this issue at the beginning of 2021 when I've got more time on my hands.
Thanks for the fix, it's been a while since I wrote this part of the patch and I am not entirely sure why I introduced an updated call to xsetsel
which I now consider unnecessary. Merged into the patch's new version!