Re: Firefox 11 on macppc

2012-03-19 Thread Landry Breuil
On Sat, Mar 17, 2012 at 06:22:52PM -0400, Brian Callahan wrote:
 Hi ports --
 
 I updated Firefox to Firefox 11 on my PowerBook G4. It builds and
 runs correctly, but when I close Firefox, the process doesn't
 actually end. I didn't notice it initially but about 3 hours later
 running top to check on a very slow compile job I noticed that the
 CPU was taken up nearly entirely by firefox.
 
 Any suggestions on what I should try to do to hunt this down?

use gdb

Landry



Re: Firefox 11 on macppc

2012-03-19 Thread Brian Callahan

On 3/19/2012 3:35 AM, Landry Breuil wrote:

On Sat, Mar 17, 2012 at 06:22:52PM -0400, Brian Callahan wrote:

Hi ports --

I updated Firefox to Firefox 11 on my PowerBook G4. It builds and
runs correctly, but when I close Firefox, the process doesn't
actually end. I didn't notice it initially but about 3 hours later
running top to check on a very slow compile job I noticed that the
CPU was taken up nearly entirely by firefox.

Any suggestions on what I should try to do to hunt this down?


use gdb

Landry



Sorry, I forgot to post the gdb output in my original email:

http://devio.us/~bcallah/gdb-firefox.txt

And dmesg (it's GENERIC but the snapshot at the time was broken so I 
built my own):


[ using 496316 bytes of bsd ELF symbol table ]
console out [ATY,Jasper_A]console in [keyboard] , using USB
using parent ATY,JasperParent:: memaddr b800 size 800, : 
consaddr b8008000, : ioaddr b002, size 2: memtag 8000, iotag 
8000: width 1440 linebytes 1536 height 900 depth 8

Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2012 OpenBSD. All rights reserved. 
http://www.OpenBSD.org


uvm_km_kmem_grow: grown to 0xee00
OpenBSD 5.1-current (GENERIC) #0: Sat Mar 17 19:55:20 EDT 2012
brian@dioltwee:/usr/src/sys/arch/macppc/compile/GENERIC
real mem = 2147483648 (2048MB)
avail mem = 2079150080 (1982MB)
mainbus0 at root: model PowerBook5,7
cpu0 at mainbus0: 7447A (Revision 0x102): 1666 MHz: 512KB L2 cache
mem0 at mainbus0
spdmem0 at mem0: 1GB DDR SDRAM non-parity PC2700CL2.5
spdmem1 at mem0: 1GB DDR SDRAM non-parity PC2700CL2.5
memc0 at mainbus0: uni-n
hw-clock at memc0 not configured
kiic0 at memc0 offset 0xf8001000
iic0 at kiic0
adt0 at iic0 addr 0x2e: adt7467 rev 0x71
lmtemp0 at iic0 addr 0x49: ds1775
asms0 at iic0 addr 0x58: rev 1.34, version 0.1
iic1 at kiic0
lmu-controller at iic1 addr 0x42 not configured
mpcpcibr0 at mainbus0 pci: uni-north, Revision 0xff
pci0 at mpcpcibr0 bus 0
pchb0 at pci0 dev 11 function 0 Apple UniNorth AGP rev 0x00
vgafb0 at pci0 dev 16 function 0 ATI Radeon Mobility M10 rev 0x00, mmio
wsdisplay0 at vgafb0 mux 1: console (std, vt100 emulation)
mpcpcibr1 at mainbus0 pci: uni-north, Revision 0x5
pci1 at mpcpcibr1 bus 0
pchb1 at pci1 dev 11 function 0 Apple UniNorth PCI rev 0x00
bwi0 at pci1 dev 18 function 0 Broadcom BCM4306 rev 0x03: irq 52, 
address 00:11:24:a3:39:be

cbb0 at pci1 dev 19 function 0 TI PCI1510 CardBus rev 0x00: irq 53
macobio0 at pci1 dev 23 function 0 Apple Intrepid rev 0x00
openpic0 at macobio0 offset 0x4: version 0x4614 feature 3f0302 LE
macgpio0 at macobio0 offset 0x50
accelerometer-1 at macgpio0 offset 0x13 not configured
accelerometer-2 at macgpio0 offset 0x14 not configured
lineout-mute at macgpio0 offset 0x1f not configured
amp-mute at macgpio0 offset 0x20 not configured
hw-reset at macgpio0 offset 0x25 not configured
dig-hw-reset at macgpio0 offset 0x26 not configured
codec-clock-mux at macgpio0 offset 0x29 not configured
combo-in-sense at macgpio0 offset 0xb not configured
linein-detect at macgpio0 offset 0xc not configured
combo-out-sense at macgpio0 offset 0x16 not configured
lineout-detect at macgpio0 offset 0x17 not configured
codec-error-irq at macgpio0 offset 0x18 not configured
dfs0 at macgpio0 offset 0x1b: speeds: 1666, 833 MHz
macgpio1 at macgpio0 offset 0x9 irq 47
programmer-switch at macgpio0 offset 0x11 not configured
gpio4 at macgpio0 offset 0x1e not configured
escc-legacy at macobio0 offset 0x12000 not configured
zsc0 at macobio0 offset 0x13000: irq 22,23
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
onyx0 at macobio0 offset 0x0: irq 30,1,2
timer at macobio0 offset 0x15000 not configured
adb0 at macobio0 offset 0x16000 irq 25: via-pmu, 0 targets
apm0 at adb0: battery flags 0x5, 96% charged
piic0 at adb0
iic2 at piic0
backlight at macobio0 offset 0xf300 not configured
kiic1 at macobio0 offset 0x18000
iic3 at kiic1
pcm3052 at iic3 addr 0x46 not configured
cs8416 at iic3 addr 0x11 not configured
wdc0 at macobio0 offset 0x2 irq 24: DMA
atapiscsi0 at wdc0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: MATSHITA, DVD-R UJ-845E, DMP2 ATAPI 
5/cdrom removable

cd0(wdc0:0:0): using BIOS timings, DMA mode 2
audio0 at onyx0
ohci0 at pci1 dev 25 function 0 Apple Intrepid USB rev 0x00: irq 28, 
version 1.0, legacy support
ohci1 at pci1 dev 26 function 0 Apple Intrepid USB rev 0x00: irq 29, 
version 1.0, legacy support

ohci2 at pci1 dev 27 function 0 NEC USB rev 0x43: irq 63, version 1.0
ohci3 at pci1 dev 27 function 1 NEC USB rev 0x43: irq 63, version 1.0
ehci0 at pci1 dev 27 function 2 NEC USB rev 0x04: irq 63
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 NEC EHCI root hub rev 2.00/1.00 addr 1
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 1 device 0 cacheline 0x8, lattimer 0x20
pcmcia0 at cardslot0
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 Apple OHCI root hub rev 1.00/1.00 addr 1
usb2 

Re: Firefox 11 on macppc

2012-03-19 Thread Landry Breuil
On Mon, Mar 19, 2012 at 10:59:19AM -0400, Brian Callahan wrote:
 On 3/19/2012 3:35 AM, Landry Breuil wrote:
 On Sat, Mar 17, 2012 at 06:22:52PM -0400, Brian Callahan wrote:
 Hi ports --
 
 I updated Firefox to Firefox 11 on my PowerBook G4. It builds and
 runs correctly, but when I close Firefox, the process doesn't
 actually end. I didn't notice it initially but about 3 hours later
 running top to check on a very slow compile job I noticed that the
 CPU was taken up nearly entirely by firefox.
 
 Any suggestions on what I should try to do to hunt this down?
 
 use gdb
 
 Landry
 
 
 Sorry, I forgot to post the gdb output in my original email:
 
 http://devio.us/~bcallah/gdb-firefox.txt

I still see libpthread is in use (i also experience the same here, but
my macppc is still @pthread). Can you recheck with rthreads ? Can you
also check the backtrace of all threads if there are several ?
Though iirc gdb doesnt allow yet to debug live programs with rthreads,
so you'll have to make it coredump with kill -ABRT and examine the core
file...

Landry



Re: Firefox 11 on macppc

2012-03-19 Thread Brian Callahan

Hi --

On 3/19/2012 11:16 AM, Landry Breuil wrote:

I still see libpthread is in use (i also experience the same here, but
my macppc is still @pthread). Can you recheck with rthreads ? Can you
also check the backtrace of all threads if there are several ?
Though iirc gdb doesnt allow yet to debug live programs with rthreads,
so you'll have to make it coredump with kill -ABRT and examine the core
file...

Landry



rthreads seems to have fixed the issue. I can successfully close firefox 
and the process dies.


Sorry for the noise.

Thanks.

~Brian



Firefox 11 on macppc

2012-03-17 Thread Brian Callahan

Hi ports --

I updated Firefox to Firefox 11 on my PowerBook G4. It builds and runs 
correctly, but when I close Firefox, the process doesn't actually end. I 
didn't notice it initially but about 3 hours later running top to check 
on a very slow compile job I noticed that the CPU was taken up nearly 
entirely by firefox.


Any suggestions on what I should try to do to hunt this down?

Thanks.

~Brian