Xgl segfaults in fbSolidFillmmx?

Wink Saville wink at saville.com
Tue Feb 19 11:16:36 PST 2008


Hello,

I have a Ubuntu 7.10 with nvidia 7600 graphics card and Xgl has recently
started segfaulting when I run kdiff3. So far that is the only program that
causes a segfault. Below is some system info <sysinfo>.

Anyway, when I run kdiff3 Xgl segfaults and in /var/log/messages I see:

3572 Feb 18 10:18:04 ic2d1 kernel: [  120.413048] Xgl[6116]: segfault at 
00000000166f62a8 rip 0000000000483180 rsp 00007fff296e1630 error 6

Grepping for Xgl in ps yields:

wink at ic2d1:$ ps ax | grep Xgl
 5968 ?        S      0:00 /bin/sh 
/usr/share/xserver-xgl/Xgl-lockfile-wrapper :1 -accel xv:fbo -accel 
glx:pbuffer -nolisten tcp -fullscreen -br +xinerama
 5975 ?        SL     1:55 Xgl :1 -accel xv:fbo -accel glx:pbuffer 
-nolisten tcp -fullscreen -br +xinerama

objdump of Xgl indicates the problem is in fbSolidFillmmx:

 93981   48314e:       f6 c1 03                test   $0x3,%cl
 93982   483151:       0f 84 96 00 00 00       je     4831ed 
<fbSolidFillmmx+0x1ad>
 93983   483157:       48 89 ca                mov    %rcx,%rdx
 93984   48315a:       eb 0d                   jmp    483169 
<fbSolidFillmmx+0x129>
 93985   48315c:       0f 1f 40 00             nopl   0x0(%rax)
 93986   483160:       f6 c2 03                test   $0x3,%dl
 93987   483163:       0f 84 87 00 00 00       je     4831f0 
<fbSolidFillmmx+0x1b0>
 93988   483169:       83 ef 02                sub    $0x2,%edi
 93989   48316c:       66 44 89 02             mov    %r8w,(%rdx)
 93990   483170:       48 83 c2 02             add    $0x2,%rdx
 93991   483174:       83 ff 01                cmp    $0x1,%edi
 93992   483177:       7f e7                   jg     483160 
<fbSolidFillmmx+0x120>
 93993   483179:       eb 2b                   jmp    4831a6 
<fbSolidFillmmx+0x166>
 93994   48317b:       0f 1f 44 00 00          nopl   0x0(%rax,%rax,1)
 93995   483180:       0f 7f 02                movq   %mm0,(%rdx)  
<<<<<<<<<<<<<<<<<<<<<<<
 93996   483183:       0f 7f 7a 08             movq   %mm7,0x8(%rdx)
 93997   483187:       0f 7f 72 10             movq   %mm6,0x10(%rdx)
 93998   48318b:       0f 7f 6a 18             movq   %mm5,0x18(%rdx)
 93999   48318f:       0f 7f 62 20             movq   %mm4,0x20(%rdx)
 94000   483193:       0f 7f 5a 28             movq   %mm3,0x28(%rdx)
 94001   483197:       0f 7f 52 30             movq   %mm2,0x30(%rdx)
 94002   48319b:       0f 7f 4a 38             movq   %mm1,0x38(%rdx)
 94003   48319f:       83 ef 40                sub    $0x40,%edi
 94004   4831a2:       48 83 c2 40             add    $0x40,%rdx
 94005   4831a6:       83 ff 3f                cmp    $0x3f,%edi
 94006   4831a9:       7f d5                   jg     483180 
<fbSolidFillmmx+0x140>
 94007   4831ab:       83 ff 03                cmp    $0x3,%edi


If there is anything else I can provide I'm willing to try. Note at the
moment its reproducible.

Regards,

Wink Saville


<sysinfo>
wink at ic2d1:$ uname -a
Linux ic2d1 2.6.22-14-generic #1 SMP Tue Feb 12 02:46:46 UTC 2008 x86_64 
GNU/Linux
wink at ic2d1:$ cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Core(TM)2 CPU          6600  @ 2.40GHz
stepping        : 6
cpu MHz         : 1596.000
cache size      : 4096 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge 
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall 
lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips        : 4811.80
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Core(TM)2 CPU          6600  @ 2.40GHz
stepping        : 6
cpu MHz         : 1596.000
cache size      : 4096 KB
physical id     : 0
siblings        : 2
core id         : 1
cpu cores       : 2
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge 
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall 
lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips        : 4808.58
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

wink at ic2d1:$ lsmod
Module                  Size  Used by
binfmt_misc            14860  1
rfcomm                 47656  2
l2cap                  28672  11 rfcomm
bluetooth              63876  4 rfcomm,l2cap
ppdev                  11272  0
ipv6                  317192  22
nvidia               8854596  48
i2c_core               30208  1 nvidia
acpi_cpufreq           10632  0
cpufreq_powersave       3072  0
cpufreq_ondemand       10896  2
cpufreq_conservative     9608  0
cpufreq_stats           8160  0
cpufreq_userspace       6048  0
freq_table              6464  3 acpi_cpufreq,cpufreq_ondemand,cpufreq_stats
button                 10400  0
dock                   12264  0
container               6400  0
video                  21140  0
ac                      7304  0
sbs                    21520  0
battery                12424  0
af_packet              28172  2
sbp2                   27144  0
parport_pc             41896  0
lp                     15048  0
parport                44172  3 ppdev,parport_pc,lp
arc4                    3328  2
ecb                     5248  2
blkcipher               8452  1 ecb
rc80211_simple          8064  1
snd_hda_intel         337192  0
snd_pcm_oss            50048  0
snd_mixer_oss          20096  1 snd_pcm_oss
snd_pcm                94344  2 snd_hda_intel,snd_pcm_oss
snd_seq_dummy           5380  0
snd_seq_oss            36864  0
snd_seq_midi           11008  0
snd_rawmidi            29824  1 snd_seq_midi
snd_seq_midi_event      9984  2 snd_seq_oss,snd_seq_midi
snd_seq                62496  6 
snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer              27272  2 snd_pcm,snd_seq
snd_seq_device         10260  5 
snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
rtl8187                35840  0
xpad                   11400  0
mac80211              196104  2 rc80211_simple,rtl8187
iTCO_wdt               13648  0
iTCO_vendor_support     5636  1 iTCO_wdt
cfg80211                8720  1 mac80211
snd                    69288  9 
snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
sky2                   52228  0
eeprom_93cx6            3712  1 rtl8187
psmouse                45596  0
soundcore              10272  1 snd
pcspkr                  4608  0
shpchp                 38300  0
serio_raw               9092  0
snd_page_alloc         12560  2 snd_hda_intel,snd_pcm
pci_hotplug            36612  1 shpchp
evdev                  13056  4
ext3                  146576  1
jbd                    69360  1 ext3
mbcache                11272  1 ext3
sg                     41384  0
sd_mod                 32512  3
sr_mod                 19876  0
cdrom                  41768  1 sr_mod
ata_generic             9988  0
usbhid                 32576  0
hid                    33408  1 usbhid
ohci1394               38984  0
ieee1394              109528  2 sbp2,ohci1394
ata_piix               20996  2
libata                138928  2 ata_generic,ata_piix
scsi_mod              172856  5 sbp2,sg,sd_mod,sr_mod,libata
ehci_hcd               40076  0
uhci_hcd               29600  0
usbcore               161584  6 rtl8187,xpad,usbhid,ehci_hcd,uhci_hcd
thermal                16528  0
processor              36232  2 acpi_cpufreq,thermal
fan                     6920  0
fuse                   52528  1
apparmor               47008  0
commoncap               9472  1 apparmor
</sysinfo>



More information about the xorg mailing list