On Mon, Jan 16, 2012 at 11:44:43AM +0100, Antoine Jacoutot wrote:
> On Mon, Jan 16, 2012 at 09:46:47AM +1100, Brett wrote:
> > Hi,
> > 
> > After updating to -current on 8th Jan, I noticed that whenever I mounted a 
> > usb memory stick formatted as msdos, gvfsd-trash would get out of control 
> > and chew up all available cpu (top shows it starting about 2% or something 
> > small then steadily climbing). This would stop if I use top to kill the 
> > process. 
> > 
> > However, when I then try to open the files on that stick (using thunar in 
> > xfce4 desktop environment), both gvfsd-trash and thunar processes will 
> > start steadily climbing in top. I could kill both gvfsd-trash and thunar, 
> > but then whenever I tried to open any folder (not just the ones on the 
> > memory stick), thunar would again start chewing up all the cpu. The only 
> > way to fix it this time would be to umount the stick and then kill thunar.
> > 
> > This did not happen on my previous -current compiled on 6 Jan. I did not 
> > report until now as the 8 Jan -current I was using had Ariane van der 
> > Steldt's vmmap patches applied. But last night I compiled a new current 
> > without those patches and the problem remains.
> > 
> > If I login using startx without going into xfce4, then I can mount this 
> > device and copy files no problem. Mounting a UFS filesystem does not cause 
> > any problems.
> > 
> > I also noticed that one time, I used xlock to lock my screen while the 
> > stick was mounted. When I tried to unlock the screen, xlock was very slow 
> > to respond, and top showed xlock and gvfsd-trash both consuming about 50% 
> > of cpu each.
> > 
> > Dmesg, top output and gdb output below. The memory stick is the 16gb 
> > "SanDisk U3 Cruzer Micro" in dmesg below.
> > Let me know if you want me to try something else.
> 
> I know where this is coming from.
> Give me a couple of days to come up with a patch.


Fixed in glib2-2.30.2p3; thanks for the report.



> > Brett.
> > 
> > 
> > After mounting usb memory stick:
> > 
> > # top -SHd 1  
> > load averages:  2.39,  2.10,  1.33    emachine.the.do 22:50:47
> > 59 processes:  57 idle, 2 on processor
> > CPU0 states:  0.6% user,  0.0% nice,  1.2% system,  0.1% interrupt, 98.1% 
> > idle
> > CPU1 states:  0.5% user,  0.0% nice,  1.3% system,  0.0% interrupt, 98.2% 
> > idle
> > Memory: Real: 144M/1958M act/tot Free: 1017M Cache: 543M Swap: 0K/4103M
> > 
> >   PID USERNAME PRI NICE  SIZE   RES STATE     WAIT      TIME    CPU COMMAND
> >  6094 brett     64    0 3204K 5204K onproc/0  -        12:31 99.27% 
> > gvfsd-trash
> > 12165 brett      2    0   30M   69M sleep/0   select    2:13  7.47% Xorg
> > 24756 brett     -5    0   11M   25M sleep/0   getblk    1:11  3.86% Thunar
> >     2 root     -22    0    0K 9628K idle      -        30.9H  0.00% idle0
> >     4 root     -22    0    0K 9628K idle      -        30.9H  0.00% idle1
> > 16325 brett      2    0 7380K   20M sleep/1   poll      0:45  0.00% 
> > xfce4-terminal
> > 30883 brett      2    0 3096K   11M sleep/0   poll      0:34  0.00% 
> > xfce4-netload-pl
> >  2961 brett      2    0   14M   27M sleep/0   poll      0:12  0.00% sylpheed
> > 24811 _pflogd    4    0  744K  472K sleep/1   bpf       0:09  0.00% pflogd
> > 11021 brett      2    0 6784K   20M sleep/1   poll      0:07  0.00% 
> > xfdesktop
> > 17585 brett      2    0 8968K   23M sleep/1   poll      0:07  0.00% 
> > xfce4-panel
> >    13 root      18    0    0K 9628K sleep/1   syncer    0:02  0.00% update
> >    12 root     -13    0    0K 9628K idle      cleaner   0:02  0.00% cleaner
> >  6192 brett      2    0 3424K   14M sleep/0   poll      0:02  0.00% xfwm4
> > 19536 root       2    0 1656K 2220K sleep/1   select    0:02  0.00% sendmail
> >     5 root      10    0    0K 9628K sleep/1   acpi0     0:02  0.00% acpi0
> > 22992 brett      2    0 1396K 2024K idle      poll      0:01  0.00% 
> > dbus-daemon
> >     3 root      10    0    0K 9628K sleep/1   bored     0:01  0.00% syswq
> > 
> > 
> > After using top to kill thunar, there was a core dump file Thunar.core, not 
> > sure if this is useful:
> > 
> > 
> > $ gdb thunar Thunar.core 
> > ....
> > (gdb) where
> > #0  0x0000000201a03b47 in _dl_find_symbol_obj () from /usr/libexec/ld.so
> > #1  0x0000000201a03eec in _dl_find_symbol () from /usr/libexec/ld.so
> > #2  0x0000000201a04140 in _dl_find_symbol_bysym () from /usr/libexec/ld.so
> > #3  0x0000000201a0639d in _dl_md_reloc () from /usr/libexec/ld.so
> > #4  0x0000000201a029db in _dl_rtld () from /usr/libexec/ld.so
> > #5  0x0000000201a0295e in _dl_rtld () from /usr/libexec/ld.so
> > #6  0x0000000201a0295e in _dl_rtld () from /usr/libexec/ld.so
> > #7  0x0000000201a0295e in _dl_rtld () from /usr/libexec/ld.so
> > #8  0x0000000201a0295e in _dl_rtld () from /usr/libexec/ld.so
> > #9  0x0000000201a0295e in _dl_rtld () from /usr/libexec/ld.so
> > #10 0x0000000201a05695 in dlopen () from /usr/libexec/ld.so
> > #11 0x0000000203e01cfb in g_module_open () from 
> > /usr/local/lib/libgmodule-2.0.so.2992.0
> > #12 0x000000020bd2fb8f in thunarx_provider_module_new () from 
> > /usr/local/lib/libthunarx-2.so.0.0
> > #13 0x000000020d3323cc in g_type_module_use () from 
> > /usr/local/lib/libgobject-2.0.so.2992.0
> > #14 0x000000020bd2f3ce in thunarx_provider_factory_list_providers () from 
> > /usr/local/lib/libthunarx-2.so.0.0
> > #15 0x000000000047906b in __register_frame_info ()
> > #16 0x000000021274e125 in g_main_context_dispatch () from 
> > /usr/local/lib/libglib-2.0.so.2992.0
> > #17 0x00000002127519cc in g_main_context_check () from 
> > /usr/local/lib/libglib-2.0.so.2992.0
> > #18 0x0000000212751cea in g_main_loop_run () from 
> > /usr/local/lib/libglib-2.0.so.2992.0
> > #19 0x0000000212d3b6d3 in gtk_main () from 
> > /usr/local/lib/libgtk-x11-2.0.so.2400.0
> > #20 0x000000000042237b in __register_frame_info ()
> > #21 0x000000000041e881 in ?? ()
> > #22 0x0000000000000002 in ?? ()
> > #23 0x00007f7ffffcd898 in ?? ()
> > #24 0x0000000000000000 in ?? ()
> > (gdb) 
> > 
> > OpenBSD 5.1-beta (GENERIC.MP) #12: Sun Jan 15 14:01:29 EST 2012
> >     r...@emachine.the.domm:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> > real mem = 3218997248 (3069MB)
> > avail mem = 3119222784 (2974MB)
> > mainbus0 at root
> > bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xf0000 (45 entries)
> > bios0: vendor Phoenix version "R01-A1" date 03/02/2009
> > bios0: eMachines ET1300
> > acpi0 at bios0: rev 0
> > acpi0: sleep states S0 S3 S4 S5
> > acpi0: tables DSDT FACP SSDT HPET SLIC MCFG APIC
> > acpi0: wakeup devices HUB0(S5) XVR0(S5) XVR1(S5) XVR2(S5) USB0(S3) USB2(S3) 
> > AZAD(S5) MMAC(S5)
> > acpitimer0 at acpi0: 3579545 Hz, 24 bits
> > acpihpet0 at acpi0: 25000000 Hz
> > acpimcfg0 at acpi0 addr 0xf0000000, bus 0-63
> > acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> > cpu0 at mainbus0: apid 0 (boot processor)
> > cpu0: AMD Athlon(tm) Dual Core Processor 5050e , 2612.28 MHz
> > cpu0: 
> > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,3DNOWP
> > cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 
> > 64b/line 16-way L2 cache
> > cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
> > cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
> > cpu0: apic clock running at 200MHz
> > cpu1 at mainbus0: apid 1 (application processor)
> > cpu1: AMD Athlon(tm) Dual Core Processor 5050e , 2611.88 MHz
> > cpu1: 
> > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,3DNOWP
> > cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 
> > 64b/line 16-way L2 cache
> > cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
> > cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
> > ioapic0 at mainbus0: apid 4 pa 0xfec00000, version 11, 24 pins
> > ioapic0: misconfigured as apic 0, remapped to apid 4
> > acpiprt0 at acpi0: bus 0 (PCI0)
> > acpiprt1 at acpi0: bus 1 (HUB0)
> > acpicpu0 at acpi0: PSS
> > acpicpu1 at acpi0: PSS
> > acpitz0 at acpi0: critical temperature is 124 degC
> > acpibtn0 at acpi0: PWRB
> > cpu0: PowerNow! K8 2611 MHz: speeds: 2600 2400 2200 2000 1800 1000 MHz
> > pci0 at mainbus0 bus 0
> > "NVIDIA MCP61 Memory" rev 0xa1 at pci0 dev 0 function 0 not configured
> > pcib0 at pci0 dev 1 function 0 "NVIDIA MCP61 ISA" rev 0xa2
> > nviic0 at pci0 dev 1 function 1 "NVIDIA MCP61 SMBus" rev 0xa2
> > iic0 at nviic0
> > spdmem0 at iic0 addr 0x51: 1GB DDR2 SDRAM non-parity PC2-6400CL5
> > spdmem1 at iic0 addr 0x52: 1GB DDR2 SDRAM non-parity PC2-6400CL5
> > spdmem2 at iic0 addr 0x53: 1GB DDR2 SDRAM non-parity PC2-6400CL5
> > iic1 at nviic0
> > "NVIDIA MCP61 Memory" rev 0xa2 at pci0 dev 1 function 2 not configured
> > ohci0 at pci0 dev 2 function 0 "NVIDIA MCP61 USB" rev 0xa3: apic 4 int 10, 
> > version 1.0, legacy support
> > ehci0 at pci0 dev 2 function 1 "NVIDIA MCP61 USB" rev 0xa3: apic 4 int 11
> > usb0 at ehci0: USB revision 2.0
> > uhub0 at usb0 "NVIDIA EHCI root hub" rev 2.00/1.00 addr 1
> > ppb0 at pci0 dev 4 function 0 "NVIDIA MCP61" rev 0xa1
> > pci1 at ppb0 bus 1
> > azalia0 at pci0 dev 5 function 0 "NVIDIA MCP61 HD Audio" rev 0xa2: apic 4 
> > int 11
> > azalia0: codecs: Realtek ALC888
> > audio0 at azalia0
> > pciide0 at pci0 dev 6 function 0 "NVIDIA MCP61 IDE" rev 0xa2: DMA, channel 
> > 0 configured to compatibility, channel 1 configured to compatibility
> > pciide0: channel 0 disabled (no drives)
> > pciide0: channel 1 ignored (disabled)
> > nfe0 at pci0 dev 7 function 0 "NVIDIA MCP61 LAN" rev 0xa2: apic 4 int 15, 
> > address 00:25:11:1e:44:93
> > rlphy0 at nfe0 phy 1: RTL8201L 10/100 PHY, rev. 1
> > pciide1 at pci0 dev 8 function 0 "NVIDIA MCP61 SATA" rev 0xa2: DMA
> > pciide1: using apic 4 int 11 for native-PCI interrupt
> > wd0 at pciide1 channel 0 drive 0: <ST3160318AS>
> > wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
> > wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 6
> > wd1 at pciide1 channel 1 drive 0: <WDC WD5000AADS-00M2B0>
> > wd1: 16-sector PIO, LBA48, 476940MB, 976773168 sectors
> > wd1(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 6
> > pciide2 at pci0 dev 8 function 1 "NVIDIA MCP61 SATA" rev 0xa2: DMA
> > pciide2: using apic 4 int 10 for native-PCI interrupt
> > atapiscsi0 at pciide2 channel 0 drive 0
> > scsibus0 at atapiscsi0: 2 targets
> > cd0 at scsibus0 targ 0 lun 0: <HL-DT-ST, DVDRAM GH40F, MG01> ATAPI 5/cdrom 
> > removable
> > cd0(pciide2:0:0): using PIO mode 4, Ultra-DMA mode 5
> > ppb1 at pci0 dev 9 function 0 "NVIDIA MCP61 PCIE" rev 0xa2
> > pci2 at ppb1 bus 2
> > vga1 at pci2 dev 0 function 0 vendor "NVIDIA", unknown product 0x06e6 rev 
> > 0xa1
> > wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> > wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> > ppb2 at pci0 dev 11 function 0 "NVIDIA MCP61 PCIE" rev 0xa2
> > pci3 at ppb2 bus 3
> > ppb3 at pci0 dev 12 function 0 "NVIDIA MCP61 PCIE" rev 0xa2
> > pci4 at ppb3 bus 4
> > pchb0 at pci0 dev 24 function 0 "AMD AMD64 0Fh HyperTransport" rev 0x00
> > pchb1 at pci0 dev 24 function 1 "AMD AMD64 0Fh Address Map" rev 0x00
> > pchb2 at pci0 dev 24 function 2 "AMD AMD64 0Fh DRAM Cfg" rev 0x00
> > kate0 at pci0 dev 24 function 3 "AMD AMD64 0Fh Misc Cfg" rev 0x00: core rev 
> > BH-G2
> > isa0 at pcib0
> > isadma0 at isa0
> > pckbc0 at isa0 port 0x60/5
> > pckbd0 at pckbc0 (kbd slot)
> > pckbc0: using irq 1 for kbd slot
> > wskbd0 at pckbd0: console keyboard, using wsdisplay0
> > pcppi0 at isa0 port 0x61
> > spkr0 at pcppi0
> > it0 at isa0 port 0x2e/2: IT8726F rev 3, EC port 0x290
> > usb1 at ohci0: USB revision 1.0
> > uhub1 at usb1 "NVIDIA OHCI root hub" rev 1.00/1.00 addr 1
> > mtrr: Pentium Pro MTRR support
> > umass0 at uhub0 port 9 configuration 1 interface 0 "Generic Mass Storage 
> > Device" rev 2.00/1.00 addr 2
> > umass0: using SCSI over Bulk-Only
> > scsibus1 at umass0: 2 targets, initiator 0
> > sd0 at scsibus1 targ 1 lun 0: <Generic, Compact Flash, 0.00> SCSI2 0/direct 
> > removable
> > sd1 at scsibus1 targ 1 lun 1: <Generic, SD/MMC, 0.00> SCSI2 0/direct 
> > removable
> > sd2 at scsibus1 targ 1 lun 2: <Generic, microSD, 0.00> SCSI2 0/direct 
> > removable
> > sd3 at scsibus1 targ 1 lun 3: <Generic, MS/MS-PRO, 0.00> SCSI2 0/direct 
> > removable
> > sd4 at scsibus1 targ 1 lun 4: <Generic, SM/xD-Picture, 0.00> SCSI2 0/direct 
> > removable
> > uhidev0 at uhub1 port 3 configuration 1 interface 0 "Holtek product 0x1203" 
> > rev 2.00/2.80 addr 2
> > uhidev0: iclass 3/1
> > ukbd0 at uhidev0: 8 modifier keys, 6 key codes
> > wskbd1 at ukbd0 mux 1
> > wskbd1: connecting to wsdisplay0
> > uhidev1 at uhub1 port 3 configuration 1 interface 1 "Holtek product 0x1203" 
> > rev 2.00/2.80 addr 2
> > uhidev1: iclass 3/0, 2 report ids
> > uhid0 at uhidev1 reportid 1: input=1, output=0, feature=0
> > uhid1 at uhidev1 reportid 2: input=3, output=0, feature=0
> > uhidev2 at uhub1 port 4 configuration 1 interface 0 "Logitech USB Receiver" 
> > rev 1.10/46.00 addr 3
> > uhidev2: iclass 3/1
> > ums0 at uhidev2: 8 buttons, Z dir
> > wsmouse0 at ums0 mux 0
> > uhidev3 at uhub1 port 4 configuration 1 interface 1 "Logitech USB Receiver" 
> > rev 1.10/46.00 addr 3
> > uhidev3: iclass 3/0, 16 report ids
> > uhid2 at uhidev3 reportid 16: input=6, output=6, feature=0
> > vscsi0 at root
> > scsibus2 at vscsi0: 256 targets
> > softraid0 at root
> > scsibus3 at softraid0: 256 targets
> > root on wd1a (0b1f2f914f21fd86.a) swap on wd1b dump on wd1b
> > umass1 at uhub0 port 1 configuration 1 interface 0 "SanDisk U3 Cruzer 
> > Micro" rev 2.00/2.00 addr 3
> > umass1: using SCSI over Bulk-Only
> > scsibus4 at umass1: 2 targets, initiator 0
> > sd5 at scsibus4 targ 1 lun 0: <SanDisk, U3 Cruzer Micro, 8.02> SCSI0 
> > 0/direct removable serial.078154068109E3D2A649
> > sd5: 15563MB, 512 bytes/sector, 31875071 sectors
> > umass2 at uhub0 port 5 configuration 1 interface 0 "JetFlash Mass Storage 
> > Device" rev 2.00/1.00 addr 4
> > umass2: using SCSI over Bulk-Only
> > scsibus5 at umass2: 2 targets, initiator 0
> > sd6 at scsibus5 targ 1 lun 0: <JetFlash, Transcend 8GB, 8.07> SCSI2 
> > 0/direct removable
> > sd6: 7668MB, 512 bytes/sector, 15704064 sectors
> > sd6 detached
> > scsibus5 detached
> > umass2 detached
> > umass2 at uhub0 port 5 configuration 1 interface 0 "Kingston DataTraveler 
> > 2.0" rev 2.00/1.00 addr 4
> > umass2: using SCSI over Bulk-Only
> > scsibus5 at umass2: 2 targets, initiator 0
> > sd6 at scsibus5 targ 1 lun 0: <Kingston, DataTraveler 2.0, 1.00> SCSI2 
> > 0/direct removable serial.09511607F98085300B48
> > sd6: 15259MB, 512 bytes/sector, 31252024 sectors
> > sd5 detached
> > scsibus4 detached
> > umass1 detached
> > 
> > 
> 
> -- 
> Antoine
> 

-- 
Antoine

Reply via email to