Re: Firefox crashes and hangs my 6.1R system

2006-06-22 Thread freebsd-questions
Hi Adi,

On Thu, 8 Jun 2006 12:26:28 +0300, Adi Pircalabu wrote:
>On Thu, 08 Jun 2006 11:02:16 +1000 [EMAIL PROTECTED]
>wrote:
>
>> >Try to reproduce the above described behaviour and jump over with
>> >gdb. Sort of:
>> >
>> >gdb /usr/X11R6/lib/firefox/firefox-bin 
>> >(... wait)
>> >(gdb) t a a bt full

Just to bring you and the list up to date - I've solved my hang issue :)
It seems that it was nothing to do with Firefox, after all. I removed the
ATI Radeon AGP card from my machine and reverted to the onboard i915 Intel
video and no more problem.  I think there may be something not quite right
with the Xorg Radeon driver (or is it the radeon.ko?), or maybe even the
hardware itself as what finally prompted me to remove the card was that I
began to see more and more artifacts on the display - at its worst, my
white-background xterms were becoming unreadable due to a growing reddish
tinge that could only be cured by 'wiping' one xterm with another!

Thanks for the help.

joel
-- Joel Hatton --
Infrastructure Manager  | Hotline: +61 7 3365 4417
AusCERT - Australia's national CERT | Fax: +61 7 3365 7031
The University of Queensland| WWW: www.auscert.org.au
Qld 4072 Australia  | Email:   [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Firefox crashes and hangs my 6.1R system

2006-06-08 Thread Adi Pircalabu
On Thu, 08 Jun 2006 11:02:16 +1000 [EMAIL PROTECTED]
wrote:

> >Try to reproduce the above described behaviour and jump over with
> >gdb. Sort of:
> >
> >gdb /usr/X11R6/lib/firefox/firefox-bin 
> >(... wait)
> >(gdb) t a a bt full
> 
> Excuse my ignorance - I take it I need to
> 
>   o start firefox normally
>   o run gdb as above
>   o invoke the crash situation

1. If I were you, I'd go for the safer path and assure myself that I
don't use a system (OS & apps) built with unusual compiler flags.
2. Try to use a pre-built Ff package from ftp.freebsd.org and see if
the problem still occurs.
3. Actually, to get a core file, the steps are:
- as a regular user open a console, make sure you are in a directory
with write permissions (${HOME} is ok) and launch firefox 
- open another console, note the pid of firefox-bin and type the above
command (gdb /path/to/ff-bin pid) but don't press Enter yet
- try to fry the CPU again. If succeeded, press Enter in the gdb
console and get a full backtrace.
- alternately, if you can't attach to the process, try to send SIGABRT
when it goes crazy.

>   o then ... ?
> 
> I'm just hoping that there's enough cpu left to save something at that
> point!
> 
> >> options SCHED_ULE   # ULE scheduler
> >
> >Do you need SCHED_ULE? Try SCHED_4BSD instead, Ff is very picky when
> >it comes to threads.
> 
> I probably don't - I added this after reading /usr/src/sys/conf/NOTES
> and it hadn't bitten me until maybe now.  I'll recompile the kernel
> with SCHED_4BSD before I carry on.

You should also consider rebuilding Firefox without optimizations.
Trying to use compiler optimizations for Gecko-based applications is the
perfect recipe for trouble :)

-- 
Adi Pircalabu (PGP Key ID 0x04329F5E)



-- 
This message was scanned for spam and viruses by BitDefender.
For more information please visit http://www.bitdefender.com/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Firefox crashes and hangs my 6.1R system

2006-06-07 Thread freebsd-questions
Hi Adi,

Thanks for the reply :)

On Wed, 7 Jun 2006 18:23:46 +0300, Adi Pircalabu wrote:
>
>I tried to reproduce it on two 6.1-STABLE systems but with no result,
>file upload works just fine. I have a bad feeling that it's very hard
>to reproduce.
>On the other hand, did the problem started to occur at a specified
>date? Can you link the problem with a world / ports update?

Yes, this problem seems to have begun after the upgrade from 6.1-RELEASE
to 6.1-RELEASE-p1, though it's hard to see the connection.

>
>Try to reproduce the above described behaviour and jump over with gdb.
>Sort of:
>
>gdb /usr/X11R6/lib/firefox/firefox-bin 
>(... wait)
>(gdb) t a a bt full

Excuse my ignorance - I take it I need to

o start firefox normally
o run gdb as above
o invoke the crash situation
o then ... ?

I'm just hoping that there's enough cpu left to save something at that
point!

>> options SCHED_ULE   # ULE scheduler
>
>Do you need SCHED_ULE? Try SCHED_4BSD instead, Ff is very picky when it
>comes to threads.

I probably don't - I added this after reading /usr/src/sys/conf/NOTES and
it hadn't bitten me until maybe now.  I'll recompile the kernel with
SCHED_4BSD before I carry on.

cheers,
-- Joel Hatton --
Infrastructure Manager  | Hotline: +61 7 3365 4417
AusCERT - Australia's national CERT | Fax: +61 7 3365 7031
The University of Queensland| WWW: www.auscert.org.au
Qld 4072 Australia  | Email:   [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Firefox crashes and hangs my 6.1R system

2006-06-07 Thread Adi Pircalabu
On Wed, 07 Jun 2006 15:46:46 +1000 [EMAIL PROTECTED]
wrote:

> Lately, and seemingly inexplicably, firefox will lock up my X server
> with it if I click a button where filesystem access is required eg.
> if I'm in an 'upload file' form and a 'Browse...' button is available
> to go to a filesystem browser. If I ssh into the machine remotely I
> can see that Xorg is using 90+% CPU and the only way to recover is to
> reboot (which doesn't even execute cleanly). Interestingly, I can
> reproduce this situation when running firefox on a remote host but
> displaying locally so it seems more likely X/system related than
> specifically firefox.  When the machine hangs, even the keyboard is
> non functional eg scroll lock won't light. I have USB keyboard/mouse.

Hi Joel,

I tried to reproduce it on two 6.1-STABLE systems but with no result,
file upload works just fine. I have a bad feeling that it's very hard
to reproduce.
On the other hand, did the problem started to occur at a specified
date? Can you link the problem with a world / ports update?
However:

> I'd appreciate any tips for diagnosis/recovery. I've appended the most
> relevant configuration information. I've already rebuilt and installed
> kernel/world to ensure I'm up to date, and portupgraded as much as
> practicable. I should note that I haven't changed my build options for
> firefox since pre-crash, either.

Try to reproduce the above described behaviour and jump over with gdb.
Sort of:

gdb /usr/X11R6/lib/firefox/firefox-bin 
(... wait)
(gdb) t a a bt full
Save the output for all threads and post it on freebsd-gnome@
But wait, there's more :)

> regards,
> -- Joel Hatton --
> Infrastructure Manager  | Hotline: +61 7 3365 4417
> AusCERT - Australia's national CERT | Fax: +61 7 3365 7031
> The University of Queensland| WWW: www.auscert.org.au
> Qld 4072 Australia  | Email:   [EMAIL PROTECTED]
> 
> Firefox options:
> 
> # This file is auto-generated by 'make config'.
> # No user-servicable parts inside!
> # Options for firefox-1.5.0.4,1
[...]
> WITH_LOGGING=true
> WITH_OPTIMIZED_CFLAGS=true

The above options are not the defaults for Ff, try rebuilding it using:
WITHOUT_LOGGING=true
WITHOUT_OPTIMIZED_CFLAGS=true

> 6.1-RELEASE-p1
> 
[snip]
> 
> My current kernel config file:
> 
> machine i386
> cpu I686_CPU
> ident   GX260
> options SCHED_ULE   # ULE scheduler

Do you need SCHED_ULE? Try SCHED_4BSD instead, Ff is very picky when it
comes to threads.

-- 
Adi Pircalabu (PGP Key ID 0x04329F5E)



-- 
This message was scanned for spam and viruses by BitDefender.
For more information please visit http://www.bitdefender.com/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"