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

Buffers over 1Mb fail, hang or SEGV #162

Open
DuncanCragg opened this issue Feb 24, 2025 · 1 comment
Open

Buffers over 1Mb fail, hang or SEGV #162

DuncanCragg opened this issue Feb 24, 2025 · 1 comment

Comments

@DuncanCragg
Copy link

Hi, I was using v0.13-2 on Ubuntu and hit an issue where buffers over 1Mb cause this command to either return all zeros, or simply to hang or SEGV:

xclip -selection c -o -t text/html | wc -c

It sometimes works above 1Mb, but mostly doesn't.

This seems most likely related to this issue: #43

I ran the original poster @rogpeppe's script and it behaves the same for me:

dd 'if=/dev/zero' 'bs=1' 'count=1048576' | tr '\000' 'a' | xclip -selection c -i

xclip -selection c -o | wc -c

.. gives zeroes or hangs, but:

dd 'if=/dev/zero' 'bs=1' 'count=1048575' | tr '\000' 'a' | xclip -selection c -i

.. always works, with one char short of 1Mb.

I grabbed the sources from here on Git and built but it's the same version with the same issue! I built the "xerror" branch as mentioned in the issue mentioned but no joy.

I'm very happy to help out and investigate and try things as I can reproduce it quite reliably.

@nathanielevan
Copy link

Hi I seem to be experiencing the same issue as well, but what's weird in my case is that this happens only, and reliably, when I'm running the Qtile window manager; I consistently can't get it to reproduce under Openbox or dwm. I'll dig deeper and see what else I can find

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