Thread: How to debug a browser failing to open web pages? (Safari)

  1. #1
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Chappell Hill, Texas
    Posts
    2,332

    How to debug a browser failing to open web pages? (Safari)

    I have an intermittent issue, although persistent enough to be quite annoying, with Safari 5.0 on Leopard 10.5.8.

    Go back in time a week...

    When going to random web sites, my browsers were failing to load the page. Upon total failure, when I got the "server not responding" error, I hit REFRESH and the page would load immediately.

    This was happening on all my household computers, (Macs (Snow Leopard and Leopard and Windows XP IE7) for the last week. I had my ISP come to the house today (ATT U-Verse) and they replaced the router. Since ATT left, my wireless machines are much faster, and all computers but this desktop Mac are error free.

    I swapped my two hubs today too, and the problem has stayed with this Mac.

    If I use FireFox at the same time, it works perfect and if fast.

    How can I diagnose this?

    Thanks
    Mainframe assembler programmer by trade. C coder when I can.

  2. #2
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    I haven't done this on a Mac before, but on Linux I've often managed to diagnose extremely weird problems by using strace. On Leopard, a similar tool is available called DTrace.

    The output of these kinds of tools can be voluminous but it might help.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  3. #3
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Chappell Hill, Texas
    Posts
    2,332
    Thanks brewbuck. I found a thread (several) over on the Apple lists, and it seems there are plenty of other folk having the same issues with Safari 5.

    After weeding through all the snake oil mentioned in those threads, I ended up adding additional DNS server paths to my settings, and the problem now seems to have gone away.

    It seems doing this to any browser is good idea in the big scheme of things.
    Mainframe assembler programmer by trade. C coder when I can.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. creating a user login system for web pages
    By Nutshell in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 07-04-2002, 11:02 PM
  2. Please Try My Web Browser
    By Daniel in forum Windows Programming
    Replies: 10
    Last Post: 06-20-2002, 11:02 AM
  3. Opera Web Browser
    By MrWizard in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 06-17-2002, 04:42 PM
  4. Web browser, dialogs, & kicking my pc
    By jinx in forum Windows Programming
    Replies: 1
    Last Post: 12-22-2001, 06:47 PM
  5. MFC Web Browser
    By Unregistered in forum Windows Programming
    Replies: 3
    Last Post: 09-11-2001, 02:03 PM