Bug 33045 - xrandr 2>&- hangs the terminal, xrandr 2>/dev/null doesn't
Summary: xrandr 2>&- hangs the terminal, xrandr 2>/dev/null doesn't
Status: RESOLVED NOTABUG
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/nouveau (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: high critical
Assignee: Nouveau Project
QA Contact:
URL:
Whiteboard: 2011BRB_Reviewed
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-12 22:02 UTC by Jim Hill
Modified: 2011-10-09 10:59 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Jim Hill 2011-01-12 22:02:28 UTC
git bisect says

61fc9cc04e1ac179ac5e2cc4ff861bb362f0b801 is the first bad commit

I'm on squeeze, asking on irc says 10.10 is also affected, lenny and 10.04 not.
Comment 1 Jim Hill 2011-01-13 03:31:43 UTC
blacklisting nouveau makes it go away.  backtrace with nouveau:

Starting program: /home/jthill/src/X11/xrandr/xrandr 2>&-
^C
Program received signal SIGINT, Interrupt.
0x00007ffff71700d8 in poll () from /lib/libc.so.6
(gdb) bt
#0  0x00007ffff71700d8 in poll () from /lib/libc.so.6
#1  0x00007ffff6c878ca in ?? () from /usr/lib/libxcb.so.1
#2  0x00007ffff6c89c0c in xcb_wait_for_reply () from /usr/lib/libxcb.so.1
#3  0x00007ffff76d6acd in _XReply (dpy=0x60c010, rep=0x7fffffffdf10, 
    extra=<value optimized out>, discard=<value optimized out>) at xcb_io.c:533
#4  0x00007ffff7bdbe49 in XRRGetOutputPrimary (dpy=0x60c010, window=67)
    at XrrOutput.c:182
#5  0x0000000000403bfb in output_is_primary () at xrandr.c:942
#6  set_output_info () at xrandr.c:1163
#7  get_outputs () at xrandr.c:1695
#8  0x000000000040688f in main (argc=0, argv=0x1) at xrandr.c:2919

also reported on debian, bug 609858
Comment 2 Jeremy Huddleston Sequoia 2011-10-08 13:33:49 UTC
Looks like nouveau doesn't respond when gamma is queried.  Is this still an 
issue?
Comment 3 Emil Velikov 2011-10-08 14:20:41 UTC
Hi Jim

It appears that you are using fbdev rather than nouveau ddx (xf86-video-nouveau)

Can you please install it and open another bug report if the issue exists

Cheers
Emil
Comment 4 Jim Hill 2011-10-09 10:43:13 UTC
(In reply to comment #3)

Now using a radeon so I won't be able to reproduce it.  

Random stuff, ignore at will: 

Don't understand the comment about using fbdev -- I was definitely loading nouveau for console and X, switching back and forth between proprietary and nouveau, forgetting xorg.conf driver "nouveau" a time or two leaves memories.

>&- is apparently fairly unusual, and I guess it's vulnerable to unchecked fd reuse. Anyway I never got all that worked up about a seven-keystroke workaround.  Thanks for the attention.
Comment 5 Jim Hill 2011-10-09 10:59:40 UTC
I see it now, while closing the debian bug I read the X log not just syslog.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.