Sponsored Content
Full Discussion: Firefox crashing
Special Forums UNIX and Linux Applications Firefox crashing Post 302539549 by bakunin on Monday 18th of July 2011 05:39:39 AM
Old 07-18-2011
Quote:
Originally Posted by COKEDUDE
I am not getting any error messages.
In case you don't already: try starting it from the command line. You might get some error messages you don't see when you start it from a graphical environment.

I hope this helps.

bakunin
 

9 More Discussions You Might Find Interesting

1. Programming

c++ class keeps crashing

i just started learning to prog in c++, im using netbeans. i tryed to make a class and i keep getting this error. what am i doing wrong ? ----------------------------- class test { public: int funtime(); private: int time; }; int test::funtime()... (4 Replies)
Discussion started by: akira300
4 Replies

2. Solaris

Solaris 10 crashing

Hi, My system is crashing with following error .. i tried to boot from the network and unencapsulated the root disk from SVM .. but still not able to boot the box , can any one point me to some direction .. i do not want to build the box new as of now just want to troubleshoot if possible.. ... (3 Replies)
Discussion started by: fugitive
3 Replies

3. Red Hat

Fedora 11 crashing help

Using Fedora 11, just about every day the system started crashing. Becomes unresponsive to keyboard/mouse, nothing appears on screen but box is still running. Still responds to ping, arp address stays alive in the firewall, other than that its unresponsive Where can I look to find out... (1 Reply)
Discussion started by: ippy98
1 Replies

4. Programming

Why this C program is crashing?

Hi, Why I am getting 'SIGSEGV' in the following code? char* p="abcde"; printf("%s", 3); // Segmentation Fault (core dump) Kindly help me to understand what exactly makes the program to crash or the reason for the crashing. (7 Replies)
Discussion started by: royalibrahim
7 Replies

5. Web Development

MySQL Server Crashing need Help

Hi, we have some problem with mysql high cpu , would like some help with MySQL Tuning here are the mysqltuner & tuning-primer details mysqltuner: # mysqltuner >> MySQLTuner 1.1.1 - Major Hayden <major@mhtx.net> >> Run with '--help' for additional options and output filtering --------... (1 Reply)
Discussion started by: cataplexy
1 Replies

6. UNIX for Advanced & Expert Users

mozilla mail crashing

Hi , OS : LINUX rhel 4 Since last 3 weeks , when try to down load any file from mozilla , it crashes ? Searched the MOZILLA site for probable solutionbut could not get the solution. Tried login as root cd ~ rm -rf .mozilla/... (1 Reply)
Discussion started by: vakharia Mahesh
1 Replies

7. UNIX for Dummies Questions & Answers

Random Crashing

Over the last month or so my CentOS server has been crashing for reasons I do not know. It has been running for over a year with regular yum updates without problems. The load on the server is perfectly normal with CPU usage at 5-6% and RAM usage at less than half of 32GB of RAM (multiple smaller... (3 Replies)
Discussion started by: spinner0205
3 Replies

8. Solaris

Solaris V440 keeps crashing

Hi, I have Sun Solaris V440, every two days or so, the system crashes and it's at OK prompt. After that I do the FSCK and clear all the bad sectors. Then system stays up for close to 48 hours. Then it crashes again. I checked the logs and I don't see anything under /var/adm/messages file. ... (1 Reply)
Discussion started by: samnyc
1 Replies

9. UNIX for Advanced & Expert Users

Application keep on crashing need to troubleshoot

Hi experts, I am using RHEL as my distro and I have a very important application running on that server. That application is a third party application and I don't have control with the source. That application keeps on crashing or stop like every other day and it doesn't have any traces on... (1 Reply)
Discussion started by: cwiggler
1 Replies
Test::Log4perl(3pm)					User Contributed Perl Documentation				       Test::Log4perl(3pm)

NAME
Test::Log4perl - test log4perl SYNOPSIS
use Test::More tests => 1; # setup l4p use Log::Log4Perl; # do your normal Log::Log4Perl setup here use Test::Log4perl; # get the loggers my $logger = Log::Log4perl->get_logger("Foo::Bar"); my $tlogger = Test::Log4perl->get_logger("Foo::Bar"); # test l4p Test::Log4perl->start(); # declare we're going to log something $tlogger->error("This is a test"); # log that something $logger->error("This is a test"); # test that those things matched Test::Log4perl->end("Test that that logs okay"); # we also have a simplified version: { my $foo = Test::Logger->expect(['foo.bar.quux', warn => qr/hello/ ]); # ... do something that should log 'hello' } # $foo goes out of scope; this triggers the test. DESCRIPTION
This module can be used to test that you're logging the right thing with Log::Log4perl. It checks that we get what, and only what, we expect logged by your code. The basic process is very simple. Within your test script you get one or more loggers from Test::Log4perl with the "get_logger" method just like you would with Log::Log4perl. You're going to use these loggers to declare what you think the code you're going to test should be logging. # declare a bunch of test loggers my $tlogger = Test::Log4perl->get_logger("Foo::Bar"); Then, for each test you want to do you need to start up the module. # start the test Test::Log4perl->start(); This diverts all subsequent attempts Log::Log4perl makes to log stuff and records them internally rather than passing them though to the Log4perl appenders as normal. You then need to declare with the loggers we created earlier what we hope Log4perl will be asked to log. This is the same syntax as Test::Log4perl uses, except if you want you can use regular expressions: $tlogger->debug("fish"); $tlogger->warn(qr/bar/); You then need to run your code that you're testing. # call some code that hopefully will call the log4perl methods # 'debug' with "fish" and 'warn' with something that contains 'bar' some_code(); We finally need to tell Test::Log4Perl that we're done and it should do the comparisons. # start the test Test::Log4perl->end("test name"); Methods get_logger($category) Returns a new instance of Test::Logger that can be used to log expected messages in the category passed. Test::Logger->expect(['dotted.path', 'warn' => qr'this', 'warn' => qr'that'], ..) Class convenience method. Used like this: { # start local scope my $foo = Test::Logger->expect(['foo.bar.quux', warn => qr/hello/ ]); # ... do something that should log 'hello' } # $foo goes out of scope; this triggers the test. start Class method. Start logging. When you call this method it temporarly redirects all logging from the standard logging locations to the internal logging routine until end is called. Takes parameters to change the behavior of this (and only this) test. See below. debug(@what) info(@what) warn(@what) error(@what) fatal(@what) Instance methods. String of things that you're expecting to log, at the level you're expecting them, in what class. end() end($name) Ends the test and compares what we've got with what we expected. Switches logging back from being captured to going to wherever it was originally directed in the config. Ignoring All Logging Messages Sometimes you're going to be testing something that generates a load of spurious log messages that you simply want to ignore without testing their contents, but you don't want to have to reconfigure your log file. The simpliest way to do this is to do: use Test::Log4perl; Test::Log4perl->suppress_logging; All logging functions stop working. Do not alter the Logging classes (for example, by changing the config file and use Log4perl's "init_and_watch" functionality) after this call has been made. This function will be effectivly a no-op if the enviromental variable "NO_SUPRESS_LOGGING" is set to a true value (so if your code is behaving weirdly you can turn all the logging back on from the command line without changing any of the code) Selectivly Ignoring Logging Messages By Priority It's a bad idea to completely ignore all messages. What you probably want to do is ignore some of the trivial messages that you don't care about, and just test that there aren't any unexpected messages of a set priority. You can temporarly ignore any logging messages that are made by passing parameters to the "start" routine # for this test, just ignore DEBUG, INFO, and WARN Test::Log4perl->start( ignore_priority => "warn" ); # you can use the levels constants to do the same thing use Log::Log4perl qw(:levels); Test::Log4perl->start( ignore_priority => $WARN ); You might want to ignore all logging events at all (this can be used as quick way to not test the actual log messages, but just ignore the output. # for this test, ignore everything Test::Log4perl->start( ignore_priority => "everything" ); # contary to readability, the same thing (try not to write this) use Log::Log4perl qw(:levels); Test::Log4perl->start( ignore_priority => $OFF ); Or you might want to not ignore anything (which is the default, unless you've played with the method calls mentioned below:) # for this test, ignore nothing Test::Log4perl->start( ignore_priority => "nothing" ); # contary to readability, the same thing (try not to write this) use Log::Log4perl qw(:levels); Test::Log4perl->start( ignore_priority => $ALL ); You can also perminatly effect what things are ignored with the "ignore_priority" method call. This persists between tests and isn't autoically reset after each call to "start". # ignore DEBUG, INFO and WARN for all future tests Test::Log4perl->ignore_priority("warn"); # you can use the levels constants to do the same thing use Log::Log4perl qw(:levels); Test::Log4perl->ignore_priority($WARN); # ignore everything (no log messages will be logged) Test::Log4perl->ignore_priority("everything"); # ignore nothing (messages will be logged reguardless of priority) Test::Log4perl->ignore_priority("nothing"); Obviously, you may temporarly override whatever perminant BUGS
Logging methods don't return the number of appenders they've written to (or rather, they do, as it's always zero.) Changing the config file (if you're watching it) while this is testing / supressing everything will probably break everything. As will creating new appenders, etc... AUTHOR
Mark Fowler <mark@twoshortplanks.com> COPYRIGHT
Copyright 2005 Fotango Ltd all rights reserved. Licensed under the same terms as Perl itself. perl v5.14.2 2011-11-16 Test::Log4perl(3pm)
All times are GMT -4. The time now is 06:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy