Bug 78996

Summary: 0x00007f94f413ddc3 in __select_nocancel () at ../sysdeps/unix/syscall-template.S:81
Product: xorg Reporter: Dario <astrolimonada>
Component: Server/DDX/XorgAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED INVALID QA Contact: Xorg Project Team <xorg-team>
Severity: blocker    
Priority: medium    
Version: 7.7 (2012.06)   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Dario 2014-05-21 05:24:22 UTC
Xorg "randomly" freezes in my pc (COMPAQ-CQ5513LA) using any linux distro.

But i have found a way to replicate the bug:

1. Connect via SSH
2. Debug Xorg + PID via GDB (# gdb Xorg PID)

Here's the output:

0x00007f94f413ddc3 in __select_nocancel () at ../sysdeps/unix/syscall-template.S:81
(gdb) info threads
  Id   Target Id         Frame 
* 1    Thread 0x7f94f6307980 (LWP 1358) "Xorg" 0x00007f94f413ddc3 in __select_nocancel () at ../sysdeps/unix/syscall-template.S:81
(gdb) bt
#0  0x00007f94f413ddc3 in __select_nocancel () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f94f64d159c in WaitForSomething ()
#2  0x00007f94f6385fb1 in ?? ()
#3  0x00007f94f63757ba in ?? ()
#4  0x00007f94f406cde5 in __libc_start_main (main=0x7f94f63753f0, argc=9, ubp_av=0x7fffe393a8b8, init=<optimized out>, fini=<optimized out>, 
    rtld_fini=<optimized out>, stack_end=0x7fffe393a8a8) at libc-start.c:260
#5  0x00007f94f6375aff in _start ()
(gdb) kill
Kill the program being debugged? (y or n) (gdb) q  

COMPLEMENTARY INFO:
lspci
00:00.0 RAM memory: NVIDIA Corporation MCP61 Memory Controller (rev a1)
00:01.0 ISA bridge: NVIDIA Corporation MCP61 LPC Bridge (rev a2)
00:01.1 SMBus: NVIDIA Corporation MCP61 SMBus (rev a2)
00:01.2 RAM memory: NVIDIA Corporation MCP61 Memory Controller (rev a2)
00:02.0 USB controller: NVIDIA Corporation MCP61 USB 1.1 Controller (rev a3)
00:02.1 USB controller: NVIDIA Corporation MCP61 USB 2.0 Controller (rev a3)
00:04.0 PCI bridge: NVIDIA Corporation MCP61 PCI bridge (rev a1)
00:05.0 Audio device: NVIDIA Corporation MCP61 High Definition Audio (rev a2)
00:07.0 Bridge: NVIDIA Corporation MCP61 Ethernet (rev a2)
00:08.0 IDE interface: NVIDIA Corporation MCP61 SATA Controller (rev a2)
00:08.1 IDE interface: NVIDIA Corporation MCP61 SATA Controller (rev a2)
00:09.0 PCI bridge: NVIDIA Corporation MCP61 PCI Express bridge (rev a2)
00:0b.0 PCI bridge: NVIDIA Corporation MCP61 PCI Express bridge (rev a2)
00:0c.0 PCI bridge: NVIDIA Corporation MCP61 PCI Express bridge (rev a2)
00:0d.0 VGA compatible controller: NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor HyperTransport Configuration
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Address Map
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Miscellaneous Control
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Link Control

inxi -F
System:    Host: dario-CQ5513LA Kernel: 3.11.0-12-generic x86_64 (64 bit) Desktop: N/A Distro: Linux Mint 16 Petra
Machine:   System: Hewlett-Packard product: CQ5513LA serial: MXX0220PFV 
           Mobo: PEGATRON model: 2A99 version: 6.01 serial: X312345678
           Bios: American Megatrends version: 6.08 date: 04/28/2010
CPU:       Triple core AMD Athlon II X3 435 (-MCP-) cache: 1536 KB flags: (lm nx sse sse2 sse3 sse4a svm) 
           Clock Speeds: 1: 800.00 MHz 2: 800.00 MHz 3: 800.00 MHz
Graphics:  Card: NVIDIA C61 [GeForce 6150SE nForce 430] 
           X.org: 1.14.5 drivers: (unloaded: fbdev) FAILED: vesa tty size: 80x24 Advanced Data: N/A for root 
Audio:     Card-1: NVIDIA MCP61 High Definition Audio driver: snd_hda_intel Sound: ALSA ver: k3.11.0-12-generic
           Card-2: Logitech QuickCam E2500 series driver: USB Audio
Network:   Card: NVIDIA MCP61 Ethernet driver: forcedeth 
           IF: eth0 state: up speed: 100 Mbps duplex: full mac: 70:71:bc:3a:a1:12
Drives:    HDD Total Size: 640.1GB (1.5% used) 1: id: /dev/sda model: WDC_WD6400AAKS size: 640.1GB 
Partition: ID: / size: 585G used: 9.2G (2%) fs: ext4 ID: swap-1 size: 1.88GB used: 0.00GB (0%) fs: swap 
RAID:      No RAID devices detected - /proc/mdstat and md_mod kernel raid module present
Sensors:   None detected - is lm-sensors installed and configured?
Info:      Processes: 162 Uptime: 35 min Memory: 694.6/1749.9MB Client: Shell inxi: 1.8.4
Comment 1 Dario 2014-07-19 20:41:46 UTC
More details:

(gdb) bt
#0  0x00007f7e9419cc13 in select () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f7e9673521c in WaitForSomething (pClientsReady=pClientsReady@entry=0x7f7e97b56810) at ../../os/WaitFor.c:226
#2  0x00007f7e965e4811 in Dispatch () at ../../dix/dispatch.c:362
#3  0x00007f7e965e894a in dix_main (argc=9, argv=0x7fff37cc9e18, envp=<optimized out>) at ../../dix/main.c:294
#4  0x00007f7e940cbec5 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#5  0x00007f7e965d3e7e in _start ()
(gdb) info registers
rax            0xfffffffffffffdfe	-514
rbx            0x13e96	81558
rcx            0xffffffffffffffff	-1
rdx            0x0	0
rsi            0x7f7e969d79a0	140181669509536
rdi            0x100	256
rbp            0x7fff37cc9a20	0x7fff37cc9a20
rsp            0x7fff37cc99d8	0x7fff37cc99d8
r8             0x7fff37cc9a10	140734129543696
r9             0x0	0
r10            0x0	0
r11            0x246	582
r12            0x7f7e969d79a0	140181669509536
r13            0x7f7e969d7a20	140181669509664
r14            0x7fff37cc9a20	140734129543712
r15            0x7f7e97b56810	140181687855120
rip            0x7f7e9419cc13	0x7f7e9419cc13 <select+19>
eflags         0x246	[ PF ZF IF ]
cs             0x33	51
ss             0x2b	43
ds             0x0	0
es             0x0	0
fs             0x0	0
gs             0x0	0
(gdb) disassemble
Dump of assembler code for function select:
   0x00007f7e9419cc00 <+0>:	cmpl   $0x0,0x2d246d(%rip)        # 0x7f7e9446f074
   0x00007f7e9419cc07 <+7>:	jne    0x7f7e9419cc1c <select+28>
   0x00007f7e9419cc09 <+9>:	mov    %rcx,%r10
   0x00007f7e9419cc0c <+12>:	mov    $0x17,%eax
   0x00007f7e9419cc11 <+17>:	syscall 
=> 0x00007f7e9419cc13 <+19>:	cmp    $0xfffffffffffff001,%rax
   0x00007f7e9419cc19 <+25>:	jae    0x7f7e9419cc4f <select+79>
   0x00007f7e9419cc1b <+27>:	retq   
   0x00007f7e9419cc1c <+28>:	sub    $0x8,%rsp
   0x00007f7e9419cc20 <+32>:	callq  0x7f7e941b3000
   0x00007f7e9419cc25 <+37>:	mov    %rax,(%rsp)
   0x00007f7e9419cc29 <+41>:	mov    %rcx,%r10
   0x00007f7e9419cc2c <+44>:	mov    $0x17,%eax
   0x00007f7e9419cc31 <+49>:	syscall 
   0x00007f7e9419cc33 <+51>:	mov    (%rsp),%rdi
   0x00007f7e9419cc37 <+55>:	mov    %rax,%rdx
   0x00007f7e9419cc3a <+58>:	callq  0x7f7e941b3060
   0x00007f7e9419cc3f <+63>:	mov    %rdx,%rax
   0x00007f7e9419cc42 <+66>:	add    $0x8,%rsp
   0x00007f7e9419cc46 <+70>:	cmp    $0xfffffffffffff001,%rax
   0x00007f7e9419cc4c <+76>:	jae    0x7f7e9419cc4f <select+79>
   0x00007f7e9419cc4e <+78>:	retq   
   0x00007f7e9419cc4f <+79>:	mov    0x2cc212(%rip),%rcx        # 0x7f7e94468e68
   0x00007f7e9419cc56 <+86>:	neg    %eax
   0x00007f7e9419cc58 <+88>:	mov    %eax,%fs:(%rcx)
   0x00007f7e9419cc5b <+91>:	or     $0xffffffffffffffff,%rax
   0x00007f7e9419cc5f <+95>:	retq   
End of assembler dump.
Comment 2 Adam Jackson 2018-06-13 18:31:13 UTC
That's not frozen. That shows a server waiting patiently for the next client request.

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.