Slashdot Mirror


Mopping Up Mozilla Memory Leaks

mouseman writes "Geodesic Systems, a maker of memory management/debugging software, has a live demo of their Linux product running on the Mozilla nightly builds. It's pretty damn slick -- it detects memory leaks and can show where in the code the leaked memory was allocated and actually recover (GC) the leaked memory. The Mozilla reports actually look pretty good, which jibes with my own impressions of how much it has improved -- see for yourself."

280 comments

  1. Just what they need... by Sorthum · · Score: 2, Insightful

    Wish they'd come out with a port for Win32. I've had more programs (usually file sharing services) eat up both memory and processor cycles to the point that everything came to a standstill.

    1. Re:Just what they need... by mellon · · Score: 4, Informative

      It does work on win32!

    2. Re:Just what they need... by Mr.Intel · · Score: 5, Informative

      Their Analyzer product order page shows a drop down for Linux, Solaris and WIndows 2000. My guess would be they have a port already.

      --
      ASCII tastes bad dude.
      Binary it is then.
    3. Re:Just what they need... by charles+fiterman · · Score: 2, Informative

      We do have one. Try www.geodesic.com

    4. Re:Just what they need... by Anonymous Coward · · Score: 0

      Yes, Morpheus is a steaming pile of shit

    5. Re:Just what they need... by Sorthum · · Score: 1

      Doh-- my bad. Read, THEN post... Durh... *LARTS self*

    6. Re:Just what they need... by LiENUS · · Score: 1

      so you work there huh? any chance of a discount for your fellow slashdotters? ;)

      Actually seriously, what is the price on it i cant seem to load the webpage for the store (slashdot effect it seems)

  2. Alternative memory debugger by nzkoz · · Score: 5, Informative

    As an alternative to this one and purify, I've been using valgrind lately (http://developer.kde.org/~sewardj/). It's defintely worth a look for those of you who don't have access to these commercial tools.

    Of course it doesn't do much in the way of garbage collection (well, anything) but it's still a great tool.

    --
    Cheers Koz
  3. Anything that makes Moz better.. by Anonymous Coward · · Score: 0

    Normal Netscape tanks for Linux, it freezes too often, the process will remain after exitting the program, requiring a kill -9 to start a new instance..

  4. I wish I had a memory lead detector... by Eric+Damron · · Score: 4, Funny

    'cause I think I'm of the age that most of my memory is leaking all over the floor....

    Now where did I put that mop and bucket?

    --
    The race isn't always to the swift... but that's the way to bet!
    1. Re:I wish I had a memory lead detector... by Anonymous Coward · · Score: 0

      Hate to break it to you, but you're older than you think, and that's NOT memory you're leaking...

      Time to put on the Depends, my friend.

    2. Re:I wish I had a memory lead detector... by Eric+Damron · · Score: 1

      Yeah, I can hardly wait until next month when I can hide my own Easter eggs!

      --
      The race isn't always to the swift... but that's the way to bet!
    3. Re:I wish I had a memory lead detector... by Beliskner · · Score: 2, Funny

      Sometimes memory leaks are a good thing to test tolerance for a massive numbers of zombie processes! Leave them in, let malloc() have some fun. Tell your boss, "I'm testing the swapfile", and then say,
      "These memory leaks demonstrate that as more memory is used for a process, the less effective the L1 and L2 become and the more delays you get due to the massive pipeline stalls in the P4. So that's why we need to upgrade to AMD, *please* sign my expenses form immediately and ignore that pron and DVD recorder"

      Memory leak detector. Great I need one of those because, uhhhh can't remember. I need to get rid of a bug which does a malloc and then uhhh oh man it just slipped my mind. My computer doesn't need a memory leak detector, instead the thing that needs a memory leak detector is uhhhh I was about to say something but forgot.

      Moral of the story: A PDA is better at stopping memory leaks than any memory leak detector.

      --
      A caveman dreams of being us, the incalculable power and riches. We dream of being Q, then what?
  5. Interesting by martial · · Score: 2, Interesting

    I must confess that since Purify is not available for Linux, we are always looking for interesting pieces of software to do this job.

    Now the only question I have are :
    1) can it be used as a debugger too ?
    2) how does it compare to other systems like electricfence ?

    --
    -- Martial MICHEL
    1. Re:Interesting by mpsmps · · Score: 2, Informative

      > I must confess that since Purify is not
      > available for Linux, we are always looking for
      > interesting pieces of software to do this job.

      > Now the only question I have are :
      > 1) can it be used as a debugger too ?
      Yes

      > 2) how does it compare to other systems like electricfence ?
      Take a look at the demo (perhaps when it is less slashdotted) and draw your own conclusion. It is pretty self-explanatory.

    2. Re:Interesting by Quixote · · Score: 2

      Try Insure++ from ParaSoft. It catches more memory leaks, memory corruption and other kinds of errors than Purify, and is available for Linux.
      I've been an Insure (was Insight) user for 5-6 years now, and it is a wonderful tool. It will save you many person-hours of painful debugging, especially if you use C (like we do).

    3. Re:Interesting by Yunzil · · Score: 1

      Try Insure++ [parasoft.com] from ParaSoft.

      Seconded. Insure kicks ass. :)

    4. Re:Interesting by Anonymous Coward · · Score: 0

      It keeps me regular.

  6. YES!! by JoeLinux · · Score: 2, Interesting

    Ever since .9.7, Mozilla has been running so damn fast and stable that it replaced my old Browser (Nutscrape). I'm not surprised at all. IT renders pages faster than IE does. I'm quite happy with it.

    JoeLinux

    1. Re:YES!! by gmaddox · · Score: 1

      Now if they could only make the fonts work well...

    2. Re:YES!! by the_2nd_coming · · Score: 1

      I am a windows user....Mozy DOES render pages faster than IE fool. count the seconds....you can count to 3 with IE, I can not even get to 1 when I use Mozy.....mozy is so much better, I went and got IEradicater to remove it from the system because I did nt want it to hog my mem since I stoped using it.

      GOD I HATE STUPID WINDOWS USERS

      --



      I am the Alpha and the Omega-3
    3. Re:YES!! by colmore · · Score: 2

      Download Moz 9.9 and IE 6.0 and compare for yourself.

      The only thing that MS is faster at is startup, and this is comparing Win32 to Win32. Moz is even faster on Linux.

      I use Moz as my Windows browser 99% of the time, the only time I load up IE is to test pages I design for compatibility, and to view corporate sites that insist on using non-standard HTML. ("Best viewed with IE = Not W3C compliant")

      --
      In Capitalist America, bank robs you!
    4. Re:YES!! by Anonymous Coward · · Score: 0

      OK, post the fucking link. Show me the page that takes 3 seconds to load on IE, that only takes 1 second on IE. You can't, because you're FUCKING LYING.

      How do I know? Because NO PAGE takes 3 second to render in IE.

    5. Re:YES!! by Anonymous Coward · · Score: 0

      I have compared for myself, since I've been testing pages with Mozilla. And other than all the fucking bugs in CSS (visibility in particular), there is no doubt it is better.

      But it's just not faster than IE. The easy way to tell is to go to a site with lots of tables that resizes when you change the window size. Notice how smooth IE is? Notice how jerky Mozilla is?

      All your wishful thinking is not going to change these facts.

    6. Re:YES!! by the_2nd_coming · · Score: 1

      www.slashdot.org

      render means after all objects are visable.

      IE took 3 seconds on /.

      --



      I am the Alpha and the Omega-3
    7. Re:YES!! by Anonymous Coward · · Score: 0

      *sigh* That's how long it takes to download over the Internet. That has nothing to do with the browser.

      However, Slashdot is a good example of how to prove this to you. Load Slashdot, and drag the edges of the Windows. Notice how the page re-renders based on the Window size? That's how you know how long it takes to render.

      Now drag it using IE. Notice how nice and smooth it is?

      Now drag it using Mozilla. Notice how much slower and jerkier it is? On my system, it looks like IE is 2-5 times faster at rendering (it's hard to tell exactly).

      Now can we please have a clue about this?

    8. Re:YES!! by Anonymous Coward · · Score: 0

      there is no doubt it is better.

      Better than previous versions of Netscape, that is, not better than IE.

    9. Re:YES!! by Anonymous Coward · · Score: 0

      that just means that XUL sucks (which it does)

      try doing it on a gecko based bowser that uses the windows widgets or a QT based interface or if our on Linux, try Gallion based on GTK +

      much better.

    10. Re:YES!! by Anonymous Coward · · Score: 0

      My test was using Netscape 6.2 under Windows, which presumably uses the Windows widgets.

    11. Re:YES!! by BrookHarty · · Score: 2

      I have moved to Mozilla also, only a couple things I miss, a good spell checker (I still use netscape for my email) the win32spell.xpi is a work in progress so it should get better. So, no, Mozilla isnt only a web browser. (Flame away, but its a NETSCAPE replacement which includes E-MAIL...)

      Also, I really like how IE on the favorites/bookmark bar, the last favorite on the right is a pull down list. This is the only thing I think Mozilla needs. Bookmarks on your personal toolbar should emulate IE. Annoying, but doable.

      And yes, why does finance, marketing and hr still make IE only websites? Everyone else in the company, even our administration websites from vendors work with Mozilla!

    12. Re:YES!! by LiENUS · · Score: 1

      can someone please post a link to a gecko based browser using windows widgets?

    13. Re:YES!! by colmore · · Score: 2

      of course that was 0.99

      but if Moz numbered like MS, where the first semi-stable build was 4.0, that probably wouldn't be too far off the mark.

      --
      In Capitalist America, bank robs you!
    14. Re:YES!! by rsdavis9 · · Score: 1

      Can you post a better site to see the difference. I just dont see that much difference. I am using ie6.0 and moz 0.9.9 and they look about the same on using this thread as a comparision. Moz might be a tad slower but the rendering is so fast its hard to tell the difference. I have win2k with 256 mem and 1.2ghz intel processor.

      bob

    15. Re:YES!! by Stary · · Score: 2
      My test was using Netscape 6.2

      ... which uses XUL, yes, not the Windows widgets. Which was the entire point.

      --
      Tomorrow will be cancelled due to lack of interest
    16. Re:YES!! by Panaflex · · Score: 2

      There are numerous ways to achieve this "smoothness"... double buffering, offscreen drawing, etc. You can't judge the actual speed of the render in this fashion, only that IE handles refresh better. The only true way would be to run the engine through a testing process.

      Pan

      --
      I said no... but I missed and it came out yes.
    17. Re:YES!! by Anonymous Coward · · Score: 0

      OK, just for laughs I downloaded K-Meleon. Is that an "approved" browser?

      Exactly the same speed. As in NO DIFFERENCE.

      Sheesh, now can we put this to rest? IE's renderer is about 2-5 times faster than Gecko. Period.

    18. Re:YES!! by Anonymous Coward · · Score: 0

      Just so you don't miss the post, I downloaded K-Meleon. It makes no difference. Gecko is freaking slow.

      Now will people just stop with the crap and lies?

    19. Re:YES!! by Anonymous Coward · · Score: 0

      You can't judge the actual speed of the render in this fashion, only that IE handles refresh better.

      You people are beyond belief. Ever heard of Occam's Razor? "All things being equal, the simplest explanation tends to be the correct one".

      Double buffering is not involved. Off-screen drawing is not involved. GECKO IS SLOW.

      Sheesh, just deal with it! Live in reality.

    20. Re:YES!! by JamesOfTheDesert · · Score: 2
      I am a windows user....

      GOD I HATE STUPID WINDOWS USERS

      Oh, self-loathing is so sad ...

      --

      Java is the blue pill
      Choose the red pill
    21. Re:YES!! by snak0rific · · Score: 1

      it is also 2-5 times uglier.

      i use mozilla because the image is crisp and clear. i don't think the IE renderer has been updated... well, ever.

      --
      -- "Put on your big girl panties and lift!"
    22. Re:YES!! by Anonymous Coward · · Score: 0

      Hmm - on HTML 4.01 pages with conservative CSS, I don't see any difference between Mozilla and IE in terms of the final result. With the exception of Mozilla's ass form controls.

    23. Re:YES!! by the_2nd_coming · · Score: 1

      hmmmm Mozilla .9.9 does exactly that.

      I see no diffrence in the rendering ability.

      perhaps it is because MS has aloted 30 MB of memory just for IE, then hid it in the MS windows resources. I have 98Lite and have removed IE, Mozilla seems to render just as well now that IE is gone....seems kind of odd that that would happen..........

      --



      I am the Alpha and the Omega-3
    24. Re:YES!! by Anonymous Coward · · Score: 0

      try removing IE from Windows then trying it. 98lite will do that for you (even the demo)

      then install NS 6.2.....the rendering jus perfect since the IE allocations were removed and active desktop is no longer in existence.

    25. Re:YES!! by Anonymous Coward · · Score: 0

      I have 98Lite and have removed IE, Mozilla seems to render just as well now that IE is gone

      So you've removed IE ... therefore unable to do the comparison. Yet you "just know" it is as fast.

      perhaps it is because MS has aloted 30 MB of memory just for IE, then hid it in the MS windows resources.

      Exactly how does 30 meg of memory help the rendering algorithms?

      I'm sorry, but you're just too stupid to have an opinion on this issue. Please stop giving one.

    26. Re:YES!! by the_2nd_coming · · Score: 1

      Accms Razor....ok so you pick up a postulate that works on a small set of things in the "real world" since the postulate was based on a perfect world.

      well, a simple explanation of why things burn is because fire, one of the 4 fundamental elements, has a higher level in the mixture, so wood burns and rocks do not.

      that is a very simple soltion, and one that prooves the postulate to be nothing more than a research tool at best to help the reasearchers find the answer faster. meaning start simple and work your way up.

      so why don'y YOU get back to the real world and stop watching Contact.

      --



      I am the Alpha and the Omega-3
    27. Re:YES!! by the_2nd_coming · · Score: 1

      1 I did the test on my work machine.

      2 what you see drawn on the screen is nothing but the COMPUTER rendering the Vectors, not the actualy rendering of the page. so 30 MB of free memory allows Mozilla to use it to tell the proc where to draw stuff.

      --



      I am the Alpha and the Omega-3
    28. Re:YES!! by the_2nd_coming · · Score: 1

      here is what I have gleened rom my Mac running Mozilla and IE. I am also on a 400 MHz G4 with 384 MB of mem.

      I opened the Process viewer.

      Mozilla has a memory foot print of about 13-15 MB during idle, it spikes to 17 MB during page load.

      IE has a memory foot print of 7-9 MB during idle, and it spiked to 9-11 MB duing page load.

      Mozilla occupies 4% of the CPUs time while idle and in focus. it spikes to 40% during page load.

      IE occupies 10% of the CPUs time during idle and in focus, it spikes to 80% during page load.

      each had a percieved render speed of the same time

      as you can see, each has its strong points and its week ones, atleast on the OS X platform.

      since the platform in question is Windows in the rest of the thread, I would assume that MS has done somthing to optimise or hide these deficiencies that competitors do not have access to. simmiler to hiding the find fast that office 97 used when they put out office 2k.

      the fact that mozilla gives more CPU time to the rest of the computer, would account for the snappier feel of OS X when it is the browser being used.

      --



      I am the Alpha and the Omega-3
    29. Re:YES!! by Anonymous Coward · · Score: 0

      well, a simple explanation of why things burn is because fire, one of the 4 fundamental elements, has a higher level in the mixture, so wood burns and rocks do not.

      Or maybe GECKO IS JUST SLOW.

      Is there room in your philosophy that IE just might be superior to Mozilla, or does Mozilla "just" have to be better, despite all the objective evidence?

    30. Re:YES!! by the_2nd_coming · · Score: 1

      On windows you can not do an objective study of them because IE has advantages over Mozilla. IE has allocated memory at boot up, it is loaded when the machine is booted.

      on Mac OS X, IE takes up about 10% CPU time while idle and in focus. when doing a page load, it is 80% CPU time.

      IE holds 7MB of memory while idle.
      IE takes 10 MB when loading a page.

      Mozilla takes up 4% CPU time while idle, and 40% while doing a page load.

      Moz takes 15 MB memory while idle and takes takes 17 MB while loading a page.

      as you can see, on a Mac G4 400 with 384MB of memory rurunning OS X, each have their trade offs.

      in My opinion, it is better to have the one with the lower CPU usage as the OS will have more CPU time available for it.

      --



      I am the Alpha and the Omega-3
    31. Re:YES!! by Panaflex · · Score: 2

      If we were living in reality, we wouldn't be blathering on about web browers, now would we? Reality is that which has a one-to-one coorispondance with our abilities of observation. Rabbits and dogs understand reality. Rabbits and dog's don't browse the web.

      I am, however a software engineer, so my first inclination is to offer up possible reasons for the "perception" of slowness, and things that could be improved.

      Personally I don't really care.

      --
      I said no... but I missed and it came out yes.
  7. Other Platforms by wazzzup · · Score: 4, Interesting

    Will this directly affect and improve Mozilla on non-Linux platforms? Would it have a use flagging the leaks in the Linux code and then making the code corrections on the OS X platform?

    1. Re:Other Platforms by Maserati · · Score: 1

      I sincerely hope it does. I can't run Return to Castle Wolfenstein succesfully if I've had Mozilla .98 open since the last restart. Fixing that would be a big help to my daily computing.

      --
      Veteran, Bermuda Triangle Expeditionary Force, 1992-1951
    2. Re:Other Platforms by Tom7 · · Score: 1

      Are you running windows 98 or something?
      When an application ends, the memory it consumed is freed. That's the operating system's job, and all of the modern operating systems (NT, 200, XP, Linux, OS X) do a fine job of that.

    3. Re:Other Platforms by Mr+Teddy+Bear · · Score: 1

      When an application ends, the memory it consumed is freed. That's the operating system's job, and all of the modern operating systems (NT, 200, XP, Linux, OS X) do a fine job of that.

      That they do, but leave it to buggy code to make sure that not all memory is freed properly. Memory leaks plauge every single OS, not just pre Win98 OSes.

      Hell, even the unsinkable Linux still has issues with memory leaks. It is not an OS thing (mostly) it is just bad coding. And hell, sometimes it is just the compilier.

      Bottom line: software, OSes, hardware, etc... they all have one thing in common... they are made by humans, so yes... they can be flawed, no matter what the brand name is.

    4. Re:Other Platforms by Anonymous Coward · · Score: 0

      You are a fool. A memory leak only exists when an application is running. No OS leaves the memory around after the application is closed -- except maybe DOS.

    5. Re:Other Platforms by Tom7 · · Score: 1

      Regardless of whether memory is "freed properly" in an application or not, it is the operating system's responsibility to return memory when the application ends. Fixing the memory leaks in mozilla will not change anything about what happens after mozilla exits.

      It's pretty hard for me to believe that in a system with real virtual memory, that some physical memory would remain mapped to a process that doesn't even exist any more! And if it were, presumably it would be swapped to disk.

    6. Re:Other Platforms by sacolcor · · Score: 1

      Yes it will; somewhere in the neighborhood of 90% of Mozilla's code is shared across all platforms. Any leaks fixed there will benefit everyone.

    7. Re:Other Platforms by cduffy · · Score: 2

      That they do, but leave it to buggy code to make sure that not all memory is freed properly. Memory leaks plauge every single OS, not just pre Win98 OSes.

      Err, no. When an application exits on a well-behaving OS, everything it malloc'd is free'd. Everything. Even if the folks writing the app screwed up. Even if the compiler screwed up. It all gets freed.

      Memory leaks can still happen in kernelspace (kmalloc'd stuff not being kfree'd), but that's hardly an issue -- kmallocs happen much more infrequently than real mallocs, and kernel code tends to be of much higher quality than userspace code (and far tighter, so one can see where the kmallocs and kfree pairs are in any one module/driver/source/other unit).

      The only other memory leaks are userspace, so when the program that's leaking dies or is restarted, the memory is reclaimed; hence, leaks in these apps are hardly a problem, except perhaps in long-running programs or really horrendous leaks. Several server systems (like apache) automatically restart their threads after handling a certain number of transactions so that in the event that some module or whatnot has added a small memory leak, it is prevented from becoming a problem even on long-running server processes.

      In short, ya can't pin it on buggy code -- a good OS won't care if the app code is buggy or not.

    8. Re:Other Platforms by Mr+Teddy+Bear · · Score: 1

      Fixing the memory leaks in mozilla will not change anything about what happens after mozilla exits

      I beg to differ there. And this goes to the other two people who replied and who said that any "good" OS will have everything totally cleaned up after an app exits. This is simply not true. They are better about it now, but not by any means flawless. I couldn't care less about malloc commands. All I know is that when I run X, run a few apps... exit those apps, and exit X.. i STILL have less total memory free than I started with. Normally not by much, but still. Especially when you throw X into the picture (I've not tested this with 4.x) but when you run a poorly coded app that memory never gets freed until you reboot. It is a fact of life.

      Also, on the Windows side of things.. I have a TV card which when I run the tuner it eats up resources like mad (it is a crappy tuner card). When you move or resize the window it never frees anything.. it just allocates more and more memory. When you exit the program only about 1/2 the memory used is then freed again. (I have since stopped using that card because of this)

      Perhaps we are talking about two very different things, I don't know. But I do know that my original statement is quite correct. And somehow I think if I had just said that Windows sucks and left Linux out of it that nobody would have challenged it.

      Just my $0.02

    9. Re:Other Platforms by Tom7 · · Score: 2

      > Perhaps we are talking about two very different things, I don't know. But I do know that
      > my original statement is quite correct. And somehow I think if I had just said that
      > Windows sucks and left Linux out of it that nobody would have challenged it.

      If you had said Windows 98 sucks, yes, nobody would have argued with that. But NT, 2000, XP, and flavors of unix shouldn't have this problem.

      I think the real problem is that your OS is not accurately reflecting how much memory is actually available. For instance, if it caches data read off the disk, it may very well keep the disk cache around after the process exits.

      Whether I free() my memory or not, the operating system has the exact same job at the end of a process's life. This *can't* be an application problem.

    10. Re:Other Platforms by Mr+Teddy+Bear · · Score: 1

      Whether I free() my memory or not, the operating system has the exact same job at the end of a process's life. This *can't* be an application problem

      It certainly can be. I realize that any good OS has its memory protected, but there are still many apps that allocate memory outside of their designated heap. Perhaps the OS SHOULD be cleaning this up, but the damn app shouldn't be so messy in the first place. Call me old fashoned, but I remember programming for 64k RAM (well really 38911 BASIC Bytes Free is the term I will never forget off the C64) and if you had even a small leak in that bad boy you were toast pretty damn quick. Granted stuff does a HELL of a lot more than it used to, but still. Careful and tight coding is still a must.

    11. Re:Other Platforms by Tom7 · · Score: 2


      > It certainly can be. I realize that any good OS has its memory protected, but there are
      > still many apps that allocate memory outside of their designated heap.

      How do they do that?
      These days, a process has a large unified address space, and if it needs memory, it gets it from there. The OS cleans up afterwards. Or are you talking about other resources? (Other resources may typically leak, I will not deny that.)

  8. Debugger integration? by Malc · · Score: 3, Interesting

    Does this product actually integrate with the debugger. For example, can it break on a line of code before it uses a dangling pointer?

    I've been using NuMega products within MSVC for a number of years. I used Purify before that. I haven't used the latest version from NuMega, but I've always had a lot of success with BoundsChecker (memory profiler, error detection, etc), True Time (performance profiler) and True Coverage (code usage profiler).

    I wouldn't even know where to start looking for open source equivalents of these products. Can anybody give me any pointers? Preferably for Windows, but also Linux. How does this product compare with the likes of those from NuMega and Rational?

    1. Re:Debugger integration? by charles+fiterman · · Score: 5, Informative

      We have a product that fixes premature frees. This means it will (if asked) ignore all frees and only collect memory when there are no more references to it. It will also eliminate storage leaks. This one isn't a debugging tool in that it doesn't point you at the bug, it just fixes it. We keep hearing people say "I'll go with that if I can take the speed hit." So they connect it and speed improves some times by multiple powers of ten. This is because sand is faster than rust. A single page fault can be slower than many collections combined. So if we eliminate storage leaks and prevent page faults the time we spend doing it is swamped by the time we save.

  9. Re:Slashdotted already? by the_2nd_coming · · Score: 0, Troll

    only a closed minded fool who does not use it or thinks that MS software is better than anything would even say that...especialy considering where Mozy has gone in 4 years and what has taken IE to get in 7....I would put both on par and infact, Mozy has many usfulfeatures that IE does not.

    --



    I am the Alpha and the Omega-3
  10. Maybe not as pretty, but does the same thing... by lordpez · · Score: 5, Informative

    CCMalloc also detects memory leaks and shows you where they took place. Even uses the GPL! It might not be as easy to use (you link your program to it during compile instead of running the it on a completed binary), and doesnt have a web interface, but its functional, and has been out for years.

    I bet someone could write a ld_preload kind of thing that calls ccmalloc, and you could run it on the completed binary as well, so you could run 'ccmalloc ./a.out' just like the 'gsinject -d ./a.out' of this product.

    Here is ccmalloc's page.
    http://www.inf.ethz.ch/personal/biere/proje cts/ccm alloc/

    1. Re:Maybe not as pretty, but does the same thing... by Arethan · · Score: 3, Informative

      yea, it's called memprof. works great. And if you compiled your binary with debugging symbols on, it'll even give you line numbers and stack dumps.

    2. Re:Maybe not as pretty, but does the same thing... by Anonymous Coward · · Score: 1, Informative

      In fact, memprof is based on the same Boehm GC that Geodesic is, though Geodesic's is a closed source fork.

      memprof may lack the web interface, but it has a nice GTK+ GUI. Even handles threads and C++ reasonably well.

  11. IT renders pages faster by Anonymous Coward · · Score: 1, Funny

    The Segway has a built in web browser too? Cool!

  12. The Fat Lady Sang a long time ago by Anonymous Coward · · Score: 0

    for Opera... only you *nix geeks didn't hear the music. The 'saur rules, but still isn't king of the web... MS is and for good reason.

  13. Hmmm.. by SomeOtherGuy · · Score: 1, Redundant

    Next product they need is a bandwindth leak detector for their web server....the /. effect seems to have run it's course already.

    --
    (+1 Funny) only if I laugh out loud.
    1. Re:Hmmm.. by madenosine · · Score: 1

      that doesn't even make sense!

  14. Garbage collector by PD · · Score: 4, Informative

    If you're writing C++ programs, you should be using a garbage collector, such as Geodesics, or the Boehm collector available freely on the net. I've heard various objections to collection, mostly boiling down to speed issues. At least with the Boehm collector, you can choose to manually manage some memory yourself. In that case, it should be treated as an optimization problem. Write your program with the collector, then profile it. Anywhere you can pinpoint the collector as a major slowdown, handle the memory yourself.

    1. Re:Garbage collector by Anonymous Coward · · Score: 3, Funny

      Hmm, but I like to store pointers p and q as a=p+q and b=p-q, and to access them as *((a+b)/2) and *((a-b)/2). If somehow I erase "a" but not "b", will these garbage collectors be smart enough to free locations p and q?

    2. Re:Garbage collector by bentini · · Score: 1

      That's not legal C. Those aren't guaranteed to be valid pointers, so who cares if the compiler screws you?

    3. Re:Garbage collector by PD · · Score: 1

      No, if you obscure the pointers that way, or maybe using a logical XOR, the collector won't be able to see them and the memory will leak.

      But, why would you do this?

    4. Re:Garbage collector by Anonymous Coward · · Score: 0

      Perhaps you should rephrase that to "If you're writing large C++ programs" or "you should consider using a garbage collector" There are some tasks for which C++ is appropriate (tho not full blown object hierarchy) but garbage collection is over the top.

      There is speed, there is additional code size, there is the system which you must work within. Some of these things might make gc infeasable.

    5. Re:Garbage collector by sporty · · Score: 5, Funny

      For fun and profit!

      1. Do obscure pointer arithmatic for fun.
      2.
      3. Profit!

      Sorry.. I couldn't resist :)

      --

      -
      ping -f 255.255.255.255 # if only

    6. Re:Garbage collector by wheany · · Score: 1

      It's a game, you see? A race. First the crappy coders make a memory leak and get programs to crash, then the debugger-makers make smarter garbage collectors, and so on. Kind of like with viruses and anti-virus software.

    7. Re:Garbage collector by Peaker · · Score: 2

      It won't leak, it will crash. (It will become 'unreachable' and thus freed).

      Garbage collection in a pointer-arithmetic enabled language is doomed to suck.

    8. Re:Garbage collector by Peaker · · Score: 2

      C, C++ and other pointer-arithmetic enabled languages can only use conservative garbage collection, which is slow and hideous, and defeats the purpose of using a language like C or C++ in the first place.

      If you want high-level functions such as garbage collection, just use high-level languages that do it better (Java, Python, etc), profile the result, and write specific slower portions in C or C++.

    9. Re:Garbage collector by ethereal · · Score: 1

      Like my pointers? They're made out of MONEY!!

      --

      Your right to not believe: Americans United for Separation of Church and

    10. Re:Garbage collector by ethereal · · Score: 1

      The problem is that nature can always make a crappier programmer, but our supply of smart debugger-writers is finite.

      --

      Your right to not believe: Americans United for Separation of Church and

    11. Re:Garbage collector by Anonymous Coward · · Score: 0

      You're a pretty bad programmer!
      Did you learn from knuth?

    12. Re:Garbage collector by Fizzlewhiff · · Score: 2

      Information on the free Boehm collector can be found here.

      http://www.hpl.hp.com/personal/Hans_Boehm/gc/

      --

      'Same speed C but faster'
    13. Re:Garbage collector by PD · · Score: 1

      Collection in C++ doesn't suck at all. It's extremely nice, and a joy to program with. If you are the type to hide your pointers by converting them to a string representation, or XORing them, or doing otherwise stupid tricks with your code, then garbage collection will not help you. In fact, NOTHING will help you. Code like that is best deleted.

    14. Re:Garbage collector by PD · · Score: 1

      You want to talk slow and hideous? I'm debugging a program (I didn't write it) that's 400000 lines which could have used a good collector. Instead, the thing has extremely poor control over its memory, and that defeats the purpose of using a COMPUTER in the first place.

    15. Re:Garbage collector by Anonymous Coward · · Score: 0

      and that defeats the purpose of using a COMPUTER in the first place.

      You got a big laugh from me. Nice job.

    16. Re:Garbage collector by Buck2 · · Score: 1

      It's not arithmAtic dammit!

      --

      As my father lik@(munch munch)... ....
    17. Re:Garbage collector by Peaker · · Score: 2
      Its not only the hidden pointer problem, but also how conservative GC'ers work.

      They actually search your program's memory bytes for data that "looks like" pointers.

      This has significant disadvantages:

      A Conservative GC has to search through all of your memory bytes to find pointers, whereas a GC-enabled language will know at runtime exactly where the pointers are stored, making it much faster at collecting. This defeats the purpose of using a "fast execution" language in the first place.

      A Conservative GC has no way to know which piece of data is a pointer, and which is just data. This means that if you just store random data, you get random pointers, and a conservative GC will simply leak. This is definitely not the "Right way" to work.

      The information of which bytes in your program are pointers and which are just data is available at compiletime (and thus it can be available at runtime, too).

      Conservative GC is a "hack" around GC-disabled languages to try and get GC functionality, so it cannot use this data and must waste time searching for "pointer-like" data.

      If this doesn't suck, I don't know what does.

    18. Re:Garbage collector by PD · · Score: 2

      If this doesn't suck, I don't know what does

      Memory leaks?

      As to your arguments:

      #1: The Boehm collector can work the way you described, and works very well that way. BUT, you can specify options to the collector that disable that, or limit that behavior. Using the collector this way doesn't slow the program down.

      #2: Conservative collectors DO leak. That's part of their nature. But, the leak characteristics are entirely different. Leaks introduced by a human tend to grow until the program runs out of memory completely. Leaks introduced by a conservative collector grow in a bounded fashion, typically 2x the amount of memory required by a perfectly leak-free system. This "bounded leak" characteristic is not necessarily a bad thing, since it gives the safety of a garbage collector and the ability to plan an appropriate memory size for a server.

      You're right that GC is a "hack", but it works pretty damn well, and it can make a difference between a million line program that leaks like hell and crashes all the time, or a million line program that runs and doesn't crash.

      You're also right that the language isn't really meant to be garbage collected. I would like to see a "gc" keyword in a future language spec to provide support for an (optional) garbage collector.

  15. Re:Slashdotted already? by Anonymous Coward · · Score: 0

    Live Demo = Slashdoted before Slashdot even posts the story.

  16. ccmalloc by Kev+Vance · · Score: 2, Informative

    Actually, ccmalloc has a mode like purify to automatically link itself in during the compile process. Not the same thing as preload, but it's just as easy. If you're using, say gcc, change your compiler from "gcc" to "ccmalloc gcc" and ccmalloc will do the rest.

    ccmalloc is a great utility to have if you can't get your hands on purify :)

    --
    F0 07 C7 C8
  17. Switched to Mozilla the day before yesterday... by mellon · · Score: 1, Offtopic

    It's really improved a lot. 0.97 was painfully slow on OS X, but 0.99 is actually faster than MSIE. There are still a few UI glitches - for example, command-H doesn't work - but this is the first time I've been able to switch to Mozilla and not have to switch back within an hour. I'm still going strong after three days. Things are definitely looking up for Mozilla.

  18. Is there some other Mozilla out there by Aexia · · Score: 3, Interesting

    that I seem to be missing?

    After reading the Salon article about how improved and fast it was now, I decided to give it a whirl on my NT desktop at work.

    I uninstalled it after about 15 minutes. It was just slow. Sluggish in loading pages, slow in creating new windows, everything. Not only was it slower than IE 5.5 but what surprised me was that it was slower than *Netscape* 4.7, which is what I primarily use. It's a shame because it had some nice options.

    What am I missing? Is it not meant to run on NT? Is it debugging code? Would it run better on XP? I'd love to give it a chance but apparently, I got some other Mozilla browser instead of the one everyone here is raving about.

    1. Re:Is there some other Mozilla out there by mrm677 · · Score: 1

      You aren't missing anything. Mozilla is a dog. Its Javascript is also flaky. On Linux, I use Galeon which uses the rendering component of Mozilla. It is much better and faster. I really wish someone would develop a browser on Windows using only Gecko. I don't need nor care about the Mozilla "Development" platform.

    2. Re:Is there some other Mozilla out there by weave · · Score: 1
      Didn't we already have our Mozilla Sucks opportunity today?

      Seems like everytime there is ever a story about Mozilla, the "mozilla sucks" crew come out in force, no matter what the story is about. :-(

    3. Re:Is there some other Mozilla out there by Anonymous Coward · · Score: 0

      Mozilla runs slow on my Windows machine.
      Mozilla on my 400 mhz Mac OS X machine runs faster than on my 500 mhz Windows machine.

    4. Re:Is there some other Mozilla out there by waynetv · · Score: 1

      Like yourself, I have uninstalled and reinstalled many version of Mozilla. All unsatisfactory.

      However, I just recently downloaded 0.9.9 (what everyone is ranting and raving about -- incase you want to check version numbers) and it's very sweet.

      I find it fast at openning windows, and very fast at rendering pages (faster than IE). The startup is slower than IE, but then I'm not using the turbo switch yet.

      I'm running it on Windows 2000 w/ a 400mhz AMD processor and 384MB of RAM. (Except for the RAM, its a modest machine -- and even the RAM is pretty modest these days).

      I'm actually considering switching to Mozilla from IE for my standard browsing -- I never thought I'd say that!

    5. Re:Is there some other Mozilla out there by Thng · · Score: 1
      I really wish someone would develop a browser on Windows using only Gecko.

      There is something (close) to what you asked for: k-meleon
      It's still based off Moz 0.9.5, but it's a lightweight gecko implementation for windows.
      from their webpage:
      K-Meleon is a lite Web browser based on gecko (the mozilla rendering engine). It's fast, has a minimal interface, and it is fully standards-compliant. To make it simple, K-Meleon may be considered the unbloated Mozilla for Windows.
      It's a nice little browser, lighter than Mozilla, but I prefer Opera for my main browser.
    6. Re:Is there some other Mozilla out there by wunderhorn1 · · Score: 1
      You're probably missing RAM. It's taking up 45 megs on my 2K machine here at work, but with 256 mb it runs fine.

      If you've only got 128mb (or god forbid less), NT is probably swapping it in and out, in and out.

      --
      Karma: Bored. (Thinking about resurrecting the "Anyone else is an imposter" joke.)
    7. Re:Is there some other Mozilla out there by the_2nd_coming · · Score: 2

      if you do, and you are not in love with using the Windos update app instead of just going to the site, you can get IEradicater from www.98lite.net

      Mozy will run a little faster and you will not have all that extra memory allocated to IE while not using it. it works on everything from Win 2k to win98 FE.

      --



      I am the Alpha and the Omega-3
    8. Re:Is there some other Mozilla out there by emok · · Score: 3, Informative

      Make sure you delete all your old profile and setting files before you reinstall again. Installing over a previous version causes problems.

      see: http://www.mozilla.org/releases/mozilla0.9.9/#inst all

    9. Re:Is there some other Mozilla out there by karmawarrior · · Score: 2

      I use it on NT. I have a fairly nippy machine, I used to run it on a 166MMX with 64Mb of memory and it was slow. 4x that amount of RAM and a P-III makes a huge difference, and it actually goes from being slower than IE (much slower) to much faster. I don't know why, it doesn't make sense to me, but there you have it.

      One thing though, opening new windows is something Moz is bad at. Try setting up the tabs feature which is both lightening fast, and in the opinion of everyone I've met a vast improvement. Again, this is one of those I don't know why things - if someone described the idea of tabs to me, I'd have said it sounds horrible. But it isn't.

      Be aware that while Mozilla is physically slower and more memory hungry, it's still a lighter browser over all. It takes around 66% of the download space of a recent MSIE, despite also having email and IRC and whatever, and even manages to be smaller than Netscape.

      Beautiful, just beautiful.

      --
      KMSMA (WWBD?)
    10. Re:Is there some other Mozilla out there by rubinson · · Score: 1

      It seems to be very much a YMMV type of thing. Also, it very much depends on what you're talking about. Mozilla's always been slow at starting up. (Preloading dlls does help things for Windows; also, under Windows, I install only the browser. I don't know if that matters or not.)

      Regarding page rendering, I've found builds 0.9.8 and 0.9.9 to be incredibly fast. Even Slashdot! In fact, Mozilla renders pages significantly faster on my Pentium 200 Debian Potato system than IE does on my Pentium III 500 Win2K system. (I don't know if it's significant but for my Debian system, I use the prebuilt tar.gz package that doesn't include the Talkback app. Mozilla hasn't crashed on me in quite some time but I've had bad experiences with the Talkback builds in the past.)

    11. Re:Is there some other Mozilla out there by jeffehobbs · · Score: 1

      So what you're saying is, dissent is not allowed in the People's Republic of Open Source.

      Hey, I like Mozilla, but it's ugly as sin -- personally, I like OmniWeb. Its speed is merely ok (but getting better) but the text rendering, ooh, the text rendering.

      ~jeff

    12. Re:Is there some other Mozilla out there by Aexia · · Score: 5, Interesting

      Be aware that while Mozilla is physically slower and more memory hungry, it's still a lighter browser over all. It takes around 66% of the download space of a recent MSIE, despite also having email and IRC and whatever, and even manages to be smaller than Netscape.

      It may be slower and consume more resources but at least it uses less disk space?

      That's really not an argument the open source community should be making.

    13. Re:Is there some other Mozilla out there by Anonymous Coward · · Score: 0

      Less disk space?
      Who gives a fuck.
      Most people own hdds w/ over 10gigs.

    14. Re:Is there some other Mozilla out there by Dr.+Evil · · Score: 2

      No other Mozilla, no debugging code, it really is that fat and bloated. On a fast machine, it is faster than IE in some places. In others, it is pigishly slow.

      Being faster than IE in some places lets some people argue that it is faster and better than IE. It is not. I use Mozilla exclusively though. I find the performance disappointing but tolerable, however, it cuts out advertising and supports Internet standards.

      The memory footprint is abhorrant. The tool in the demo spots leaks, not usage. I've never had serious problems with leaks in any web browser. Normally they crash long before I have to worry about them consuming too much memory.

      I think Mozilla is particularly bad on Win32 OSes because the virtual memory managers in Windows will swap out unused allocated memory in exchange for HDD cache. This means if Mozilla is inactive for 10 minutes or so, it will get swapped out so that your drive cache can gain another 50MB. Oddly, IE doesn't appear to suffer from this. It would not be unlike Microsoft to introduce an undocumented API which allows apps to behave differently in swap, but that's just speculation.

      On the other hand Linux appears to use virtual memory as a last resort. I'm not sure which scheme I like better. Windows could use being less agressive in how it expands cache.

      Of course that is not to say that Mozilla isn't a pig. It is.

      I think Mozilla will revolutionize the Internet and the way in which web browsers work, but it might not be through their own success, it might be through opening of standards and immitation of their technology.

    15. Re:Is there some other Mozilla out there by karmawarrior · · Score: 2

      Where did I say disk space?

      --
      KMSMA (WWBD?)
    16. Re:Is there some other Mozilla out there by Anonymous Coward · · Score: 0

      Where did I say disk space, fuckwad?

    17. Re:Is there some other Mozilla out there by Anonymous Coward · · Score: 0
      So what you're saying is, dissent is not allowed in the People's Republic of Open Source.

      No, it's more like "You already fufilled your bitch quota for the day in the earlier mozilla article posted today..."

    18. Re:Is there some other Mozilla out there by Anonymous Coward · · Score: 0

      Probably the fairest comment I've seen on Mozilla here.
      It's not easy to make a good browser like IE so coming from Open Source, Mozilla is a success. Will many non-geeks want to use it on Win32? Why bother. I'm running Konqueror (fast, doesn't crash (often)) on Linux, but if I had a Windows box I'd be using the best browser around - MSIE.
      Costs same as Mozilla but takes less effort to install. Why bother with Mozilla..
      On Linux, yes, there will be people wanting to use it although a lot depends on the mail client and other standards, not only HTML..

    19. Re:Is there some other Mozilla out there by jayed_99 · · Score: 2

      I believe that he is interpreting:

      It takes around 66% of the download space of a recent MSIE...

      as "it takes less disk space than MSIE".

    20. Re:Is there some other Mozilla out there by Aexia · · Score: 2

      Where did I say disk space?

      You said:
      [I]t's still a lighter browser over all. It takes around 66% of the download space of a recent MSIE, despite also having email and IRC and whatever, and even manages to be smaller than Netscape.

      What exactly *were* you referring to then if not diskspace? Just the download file?

      Great, that's an even better argument.

      More bloat and less speed from a smaller file. Talk about efficiency. Maybe Microsoft could learn from this...

    21. Re:Is there some other Mozilla out there by Danse · · Score: 2

      I'm running Win2K here at work and aside from testing websites, I use Mozilla exclusively. Why? Because it supports standards, and has a lot more features I like than IE does. I like the tabbed browsing. I like the fine-grained (a lot better than IE at least) security controls and the ability to be prompted about cookies and be able to decide on the spot to block or allow all future cookies from any given site. Mozilla is full of conveniences, and it keeps getting better. Aside from the 40MB footprint, it rocks. It renders faster than IE, pops up just as quick when you use the quickload feature, creates windows just as quick. I don't know what some people are complaining about. I haven't seen anything that Mozilla is slower at yet. I have a decent PC here. P3 700MHz with 256MB RAM. It runs Moz just fine. My home PC has a faster processor, but only 128MB RAM, and it runs Moz just as well. I'm wondering what the complainers are using. I could see Moz sucking if you only have 64MB RAM. But with 128 and up it seems to zip right along. If they can shrink that footprint, they will go a long ways towards silencing a lot of the criticism I think.

      --
      It's not enough to bash in heads, you've got to bash in minds. - Captain Hammer
    22. Re:Is there some other Mozilla out there by squiggleslash · · Score: 2

      Let me guess - you have a cable modem, therefore you believe everyone else does too?

      --
      You are not alone. This is not normal. None of this is normal.
    23. Re:Is there some other Mozilla out there by Anonymous Coward · · Score: 0
      Your point being?

      It probably does take up 66% as much disk space too, but does that matter?

      Geez. It downloads 1/3 quicker, and all you people can do is protest that it doesn't matter because disk space doesn't matter. I assume if someone said Mozilla had a good browser, you'd be out there protesting that the ability to render msnbc.com is hardly that great a feature.

    24. Re:Is there some other Mozilla out there by Anonymous Coward · · Score: 0

      A 400Mhz mac is faster than a 500Mhz PC. The clock frequency is just a clock frequency. Use some other measurement like MIPS, and you'll see the MAC is a faster box.

    25. Re:Is there some other Mozilla out there by BoneFlower · · Score: 2

      0.9.4 runs nice, fast as hell, stable on my PIV 1.6 256mb ram, under Linux Mandrake 8.1. Haven't used it on windows though... The really odd thing about this system though, overall, is its faster under linux overall, but it boots far faster under Windows. Odd.

    26. Re:Is there some other Mozilla out there by jgalun · · Score: 1

      I use a Celeron 466 with 256 megs of RAM, and Mozilla is still noticeably slower than IE 5.5.

    27. Re:Is there some other Mozilla out there by karmawarrior · · Score: 2

      Erm, ok:

      1. It was a throwaway comment.
      2. It's generally a good thing when the installation package is small. Sure, it's not 1.44megs so you can't bung it on a floppy, but as part of a standard install in a company, or something on your backups of stuff, it's pretty nice.
      3. Have you ever downloaded a multimegabyte file using a normal modem? No, didn't think so.

      Geez. If I said "This car has some problems, but it corners well" you'd have been back at me with "Oooooooooh! The car's huge and all you care about is that it has a big steering wheel!"

      Or "One thing I like about this way this chicken is cooked is that it's fairly spicy" would garner the response "Oh great. So you're eating this fattening chicken and risking botulism and all you care about is that it makes you sneeze!"

      Jesus H. Christ. Read what I fucking say next time ok? Is that too much to ask? Or couldn't you find anything more controvertial you could twist out of context today? I'm surprised you didn't go further: "5 million Cambodians are dead and all you can care about is saving precious bytes in your download folder", "India and Pakistan are on the verge of nuking one another, and you think Mozilla rocks because it's got a good installer?" "Yeah, I know who else made compact installation packages too: Hitler. That was what Hitler did!"

      Geez.

      --
      KMSMA (WWBD?)
    28. Re:Is there some other Mozilla out there by Anonymous Coward · · Score: 0

      Read what I fucking say next time ok? Is that too much to ask?

      Maybe you should take your own advice.

      Be aware that while Mozilla is physically slower and more memory hungry, it's still a lighter browser over all.

      To use your car analogy,
      "It gets 5 mpg and can't go faster than 30mph, but look at that leather interior!"

  19. Have to Check it out after the beatings by Greyfox · · Score: 4, Informative

    Once they've recovered from their thorough slashdotting I'll have to go check 'em out. Efence alone has saved me multiple weeks of debugging time, allowing me to track down memory leaks in our horrid application instantly. This translates into thousands of dollars of development time that can be put to more productive use. I'd estimate that efence has saved my group over 12 thousand dollars in debugging time this year. Now if only I could convince the boss to channel even a small portion of that back into the open source community...

    --

    I'm trying to teach myself to set people on fire with my mind... Is it hot in here?

    1. Re:Have to Check it out after the beatings by Tom7 · · Score: 2

      Now, imagine what would happen to productivity if you just programmed in a language where these kinds of bugs (and others that efence does not catch) simply couldn't happen! Don't forget that in order for efence or purify (or great circle, for that matter) to work, you need to be able to trigger the bug at run-time...

    2. Re:Have to Check it out after the beatings by Greyfox · · Score: 2
      While I do like memory safe languages and feel that C gives not only allows you to shoot yourself in the foot this way, it also paints a bulls eye on your shoe, I'm afraid that nothing will protect you from a bad programmer. Most of my department's woes are due to the fact that the project started out as a small one-person endeavor and the first 3 years of its life it was written and maintained by people who didn't really know how to program in C. People who knew the original programmer told me that he was learning C as he went. Hence the complete lack of data structures, constants and in some cases functions (One of the C files has a 8,000 line function in it.)

      A similarly ugly pile of Java code was delivered to our team to maintain just recently. This was the result of an attempt to migrate some of our functionality to Java and the project was handed to a guy with no CS experience in school or out. He ended up copying the (hideous) design of the existing C code and delivered code that was not only as hideous as the original C code, it was harder to maintain due to a complete lack of comments (Which was in turn due to a complete lack of understanding about what the product actually does.)

      Much of the project is, in fact, set to be ported to Java at some point. I believe the team doing that is currently about a year behind schedule. This does not so much reflect on their abilities as programmers (With certain exceptions) but rather that the system is actually being designed this time and involves business units from several geographic locations and code from about a dozen diverse teams.

      --

      I'm trying to teach myself to set people on fire with my mind... Is it hot in here?

    3. Re:Have to Check it out after the beatings by mpsmps · · Score: 1

      The site is no longer slashdotted and check outable now.

    4. Re:Have to Check it out after the beatings by Tom7 · · Score: 1

      > While I do like memory safe languages and feel that C gives not only allows you to shoot
      > yourself in the foot this way, it also paints a bulls eye on your shoe, I'm afraid that
      > nothing will protect you from a bad programmer.

      While it's true that nothing can really protect you from a bad programmer, it is still important to be able to isolate yourself from him -- to wrap his code up behind an abstraction boundary so that his bugs cannot make the rest of the program unstable. I think that fault detection and isolation is the key to large software design, and C fails miserably at this. (Any heap corruption bug can easily cause problems across abstraction boundaries.)

      That's how higher-level safe languages help.

  20. Open Source gives back by Anonymous Coward · · Score: 5, Funny

    This is a great example of the Open Source community giving back to private companies. Geodesic tests an OSS web-browser, and Slashdot stress-tests their web server.

    1. Re:Open Source gives back by jesser · · Score: 1

      I'd be interested to see if other companies promoting new development tools will use a similar strategy. For example, Intel might pick a well-known open-source project and show that their compiler makes the program run considerably faster than it does under gcc or msvc.

      --
      The shareholder is always right.
    2. Re:Open Source gives back by Reziac · · Score: 2

      And they're using that lame javascript browser detector that complains "You need to get a frames-capable browser" if you have javascript turned off (like a sensible person), and only shows THAT much if you view source. (Display comes up blank.)

      --
      ~REZ~ #43301. Who'd fake being me anyway?
  21. memory leaks, moz, and slash by Alien54 · · Score: 5, Funny
    I know that when I have moderator status here on slash, I can watch the system resources disappear down a block hole if I hit a story with a lot of comments and I use Moz.

    You can hear me screaming down the street.

    It is a little better under IE, but I prefer to use Moz.

    --
    "It is a greater offense to steal men's labor, than their clothes"
    1. Re:memory leaks, moz, and slash by nzhavok · · Score: 2

      I never have any problem when I'm using opera 5 with mod points - even with huge amounts of comments. OTOH Opera does seem to have a problem with sites which use mod_auth type logins but that's another story...

      --

      He who defends everything, defends nothing. -- Fredrick The Great
    2. Re:memory leaks, moz, and slash by ahaning · · Score: 1

      Hm. That reminds me why I've unchecked the [ ]Willing to Moderate box. :)

      Thanks!

      --
      Withdrawal before climax is very ineffective and those who try this are usually called "parents."
    3. Re:memory leaks, moz, and slash by yzf750 · · Score: 1

      I don't know why this was modded funny when it is true. It happens to me with Windows 98 with IE, but W2K with IE does not exhibit the same problem. Opera and Mozilla on Linux do not appear to have the problem. Although now that I think about it, since I got mod points the other day, it hasn't done it.

    4. Re:memory leaks, moz, and slash by Com2Kid · · Score: 1

      Uh, you mean the mod boxs show up for you with IE? Heh. They only show up for me if I zoom in on a particular thread, only occasionaly can I see the mod boxs in the full view. :(

    5. Re:memory leaks, moz, and slash by Anonymous Coward · · Score: 0

      im sure all the cool "mods" on "slash" use "Moz"

      You hep cats with your cool lingo.......

  22. Bug? by ZaneMcAuley · · Score: 0, Flamebait

    noooooo its a FEATURE :D

    --
    ----- Whats wrong with this picture? http://www.revoh.org:1234/whatswrong
  23. Re:Slashdotted already? by the_2nd_coming · · Score: 1, Offtopic

    Tabbed browsing is far better than anything IE has.

    and, guess what, your pressiouse Mem foot print, well I looked at my memory used before I IERadicated my IE, after ward, I gained a ton of memory with out IE on my system.

    IEs memory foot print is hiden from you, that is why it takes windows so long to load, because IE is in memory at boot.

    --



    I am the Alpha and the Omega-3
  24. 10101010101010101010111011000100110... by ZaneMcAuley · · Score: 1

    Somebody loose these?

    Now if you where running OS X, it would just shutdown that application *shudder* nasty way of managing a leak. I sure hope it saves the data first :D

    What about BoundsChecker instrumented builds?

    --
    ----- Whats wrong with this picture? http://www.revoh.org:1234/whatswrong
  25. Re:Slashdotted already? by Anonymous Coward · · Score: 0

    Well you're right and wrong. Yes Mozilla has caught up and in some ways surpassed IE. IE does not portend to be the end-all-be-all application or swiss knife killer app that Moz wants to be. But to suggest that moz made it where it is today in 4 years is not entirely accurate because the knowledge to get it where it is today was built while creating Mosaic up to 4.72. Not to mention work that other people provided that may have been going on prior to 4 years ago. It's an apples to oranges comparison because both companies didn't start development on their product simultaneously and therefore can't be compared in "coding speed" to each other. Additionally neither browser is fully backwards compatible so it could be said that each implementation is in essence a rewrite and if that were the case and criteria for judging then MS would be ahead.

  26. Re:Real programmers.... by EnderWiggnz · · Score: 0, Offtopic

    oh yeh... that will definitely help when you've got a memory leak the size of ontario from a program that stopped executing an hour ago.

    or, you've got a pointer that went off its bounds and started writing all over its instructions, and the program crahes 1000 lines after the viiolation....

    sometimes, printf, jsut isnt enough.

    --
    ... hi bingo ...
  27. Re:Slashdotted already? by Anonymous Coward · · Score: 0

    as far as I can tell, Mozy displays all pages that NS 1.x could. how is that not backwards compatable?

  28. You're on the wrong planet by Luminair · · Score: 1

    Or else you're doing something wrong.

  29. MPatrol by tyrr · · Score: 1
    Another great tool is mpatrol

    I found it extreamely helpful in tracing memory leaks.

    It's GPL, it is mature, it is multi-platform.

    Very feature reach and can be easly integrated in your existing projects with includes and automake macros.

  30. Memory Usage Trends by joelgrimes · · Score: 5, Informative

    Over the last 6 months, every time I download a nightly or milestone, I've been recording the results of the following test.

    Download the installer and run it. Moz will launch automatically after install. Kill Mozilla and restart it. Bring up the task manager to see how much memory is used.

    Here's the results I've had on my W2k box:

    2001 10/01 build 03 22,540k
    2001 10/15 build 06 21,876k
    2001 10/18 build 03 21,692k
    2001 10/23 build 09 21,984k
    2001 11/16 build 03 21,952k
    2001 11/29 build 03 21,656k
    2001 12/06 build 03 19,868k
    2001 12/10 build 03 19,812k
    2002 01/07 build 03 18,124k
    2002 01/14 build 03 19,064k
    2002 01/17 build 04 19,244k
    2002 02/26 build 03 18,608k
    2002 03/06 build 04 18,220k
    2002 03/11 build 04 17,704k (build 0.9.9)

    That's a decrease of almost 5 megs in memory usage over six months - all the while they've been adding features.
    Significantly, they've added venkman, tabbed browsing, the dom inspector and favicon support.

    Also significant - I don't know why I bother to get the talkback builds anymore - I haven't submitted a crash in 3 months. And I run it all day, every day.

    1. Re:Memory Usage Trends by Peyna · · Score: 2
      I just fired up IE 6 on XP, and it is using 10,648k of memory. =]

      Mozilla 0.9.9 is using 16,683k on the same machine and OS. I think the decrease in memory usage has to do with removal of a lot of debugging stuff and what not, that'd be my guess. How much optimization is taking place with Mozilla, and how much time is spent on new features and bug fixes?

      --
      What?
    2. Re:Memory Usage Trends by archen · · Score: 1

      wow, those are really good stats compared to what I see. Back during 0.9.7 when I used Win 98 Mozilla used to be able to completely take all the memory available. Which I found rather amusing not even having enough memory to open up a DOS prompt (big white screen that says "not enough memory"). I've still noticed that if you open a new window for an image with a link such as [a href="this.jpg" target="_blank"]... that Mozilla's memory usage goes way up. Usually I'm sitting around 220M in memory (on win2k now). Sorta annoying having to re-open mozilla to read some of my scanned comic books - that have an index page generated by a perl script with links as described as above...

    3. Re:Memory Usage Trends by Com2Kid · · Score: 1

      ::starts up Moz .98 something::

      ::notes it is taking up 11megs::

      ::closes Moz::

      The rendering is. . . . well who knows. I have seen it freeze up upon trying to open a PDF document (oddly enough the one linked to by the site linked to in this story. The instructions on how to setup a program to use their product) and do some other weird and funky stuff, but there are also times when Moz's rendering was a bit better then IEs in regards to handling fonts.

      On the plus side it increases ALL font sizes.

      On a highly related downside it can also end up changing the width of the page. IE does this if you are looking at a plain old Text document, but that is about it (with some other notable exceptions, it is not the rule though). In general though, automatic text wrapping is a good thing.

      I can see how that could be a problem for buttons and what not though, since obviously wrapping text in those cases would change not just the size but the proportions of the button too, thus not ensuring that the overall user interface of the site remains consistent or usable.

      You give some and you take some. . . .

      It doesn't handle downloads worth a shit though, LOL! Still, hehe. You figure that they would have by NOW finally figured out that .ZIP files should NOT be saved as .zip.txt files! Or opened as such either. . . . grrrrrrr.

    4. Re:Memory Usage Trends by xpiotr · · Score: 1

      5 MEGS per 6 months....
      17M - 5 * 2 YEARS = -3 MEGS!!!
      that means that in 2 years you will gain 3 MEGS of extra RAM when running Mozilla :)

    5. Re:Memory Usage Trends by brad3378 · · Score: 2

      This is great news!
      Mozilla is decreasing in size by 1 meg per month.
      At the going rate, Mozilla won't take up any memory by August 2003 !! Imagine the start up times! How will IE compete?

      ;-)

      --

  31. Sounds like NVIDIA... by borgquite · · Score: 1

    As far as I can remember, NVIDIA have a neat testing system that tests the nightly builds of their drivers to see if performance has gone up, down or the same. If I remember rightly the developers who submit patches that slow things down get a ribbing the next day :)

    Computer automated testing is our friend.

    --
    ' Ore stabit fortis a fine placet ore stat '
    - found on a park bench
  32. Dead. by Keighvin · · Score: 1

    Their demo is live no longer.

    Long life the slashdot effect.

    --
    Any spoon would be too big.
  33. Re:Slashdotted already? by airlie · · Score: 1

    I never thought I'd use tabbed browsing, but the more I use it the more I love it. It's wonderful to load up links in background tabs while I finish reading the current page.

  34. Thank Bruce Perens by Anonymous Coward · · Score: 1, Informative
    Efence is the brainchild of none other than the most honorable Bruce Perens,
    fellow Slashdot user and hacker extraordinaire.

    Thank you Bruce, for all you've done for Free Software.

    1. Re:Thank Bruce Perens by ethereal · · Score: 2, Funny

      Wow, I think this is the first time I've ever seen an AC say something nice about Bruce Perens. I'm in shock!

      --

      Your right to not believe: Americans United for Separation of Church and

    2. Re:Thank Bruce Perens by Anonymous Coward · · Score: 0

      Actually he was just making it easier for Free Dimitry's spamharvester to find Perens' address.

  35. memprof by Arethan · · Score: 5, Informative

    I tried mentioning this in a thread, but it was too quickly drown out. There is a free product that does ld_preload style memory leak detection. It even does memory allocation profiling, so you can find that hidden 'for' loop that is responsible for that extra 15MB of allocated memory. The gui is done with gtk+, so it's easy to use, and will run on most any linux distro these days.

    It's available at http://people.redhat.com/otaylor/memprof/
    Freshmeat has an entry for it as well.

    1. Re:memprof by Wolfier · · Score: 1

      Hm...how about a tool for C++? More and more programs are using (new, delete) instead of (malloc, free).

      Still in search for a tool...

  36. Re:Real programmers.... by Anonymous Coward · · Score: 0

    no, REAL progammers use kprintf()

  37. Re:Wow, that's pretty damn useful... by Anonymous Coward · · Score: 0

    HA HA...What a Retard!!!!!

  38. How much RAM do you have? by roystgnr · · Score: 1

    Mozilla seems to be pretty efficient CPU-wise, finally, but it's still a huge memory hog (I've seen 0.9.x versions have problems on systems with 128MB of RAM!), and once it starts needing swap space, that CPU efficiency goes out the window.

  39. What I'd really like... by mateub · · Score: 2, Interesting
    ...is a cross-platform tool. We are working on a project (in C++) at work that runs on HP-UX, Linux and Windows-under-Cygwin (a little English town near Stratford-on-Avonshire). What I really want is ONE tool that I can use on ALL these platforms. We use ElectricFence on HP-UX and Linux, but no luck under Cygwin so far. Purify doesn't work under Cygwin either, only MS. First tool to support all three of these gets our vote and even our money.

    adéu,
    Mateu

    --
    "And we're happy here, but we live in fear, we've seen a lot of temples crumble..." - Concrete Blonde
    1. Re:What I'd really like... by don_weber · · Score: 2, Informative

      Geodesic supports HP-UX, Linux and Windows under Cygwin.

  40. Garbage collectors, leak detection, and Mozilla by Lumpish+Scholar · · Score: 4, Informative
    ... memprof is based on the same Boehm [garbage collector] that Geodesic is, though Geodesic's is a closed source fork.
    Which is pretty funny, because the Boehm-Demers-Weiser garbage collector is already used (cache) with Mozilla (cache) to detect leaks.
    --
    Stupid job ads, weird spam, occasional insight at
  41. Re:Wow, that's pretty damn useful... by Anonymous Coward · · Score: 0

    no...YAAFI...Idiot!!!!!

  42. Slashdot effect.. by Anonymous Coward · · Score: 0

    Slashdot Effect..

    Hehe....

  43. Mozilla much improved lately.... by truesaer · · Score: 1

    Even a few builds ago I considered Mozilla unacceptable for every day use. There were just too many sites that Mozilla couldn't handle. But now that I've tried the latest release, I think it is finally going to be my primary browser. Two questions though....is there a way to make my scroll wheel move down the page faster, and I really wish shift clicking on a link opened it in a new window....

  44. I clicked your link... by Anonymous Coward · · Score: 0

    ...and all I get is an empty page

  45. spacetrace by moof1138 · · Score: 1

    It is nice to see a technology demo of this tool, but mozilla already has a tool for finding memory leaks (among other things) called spaceTrace:

    which you can find out about here

    --

    Hyperbole is the worst thing ever.
  46. Moz fonts by PurpleFloyd · · Score: 2

    The problem is that on Linux systems, it's hard to get 'free' fonts that look good. Most fonts on Linux are bitmapped, and thus don't scale well. The following upgrade will help all applications work better, especially if you alias your 'helvetica' font to 'arial' and your 'times' font to 'times new roman'. Go to Microsoft's "web core fonts" site and download the .exe files. Extract with a program like cabextract (they're just cab files with a self-extracting wrapper). Put them in your X server's fonts directory. Restart the X server (and the fonts server, if you use Redhat). Set up Moz to use the new fonts. Marvel at the beautiful scaling of TrueType fonts. All is better ;).

    --

    That's it. I'm no longer part of Team Sanity.
  47. interesting... a new version of netscape *smirk* by JiffyPop · · Score: 1
    from the source of the slashdotted page (after it says that you need a frames capable browser...):
    We support Netscape Navigator 4.74 and 5.0 and Microsoft Internet Explorer 4.01 with SP2, 5.0, and 5.5.

    and here i thought that Netscape skipped a number and went straight to 6.0...
    </sarcasm>

    btw, they are trying to avoid the slashdotting they are getting by changing the frames to all be about:blank. seems sloppy to me, especially since they are still having you download three javascript files at the top of the page. oh well...

    here's a link to their 'news' page on the mozilla stuff (not the demo):
    http://www.geodesic.com/news/2002/gc_demo_ release. html
  48. Re:Real programmers.... by Anonymous Coward · · Score: 0

    It was a joke you dumbass!

  49. I have written just such a garbage detector by Anonymous Coward · · Score: 1, Informative

    Years ago in my employment, that is.

    If there is interest, I might recreate it for the Public Domain. It should only take a weekend.

    The principle is simple: go through all writable memory (including the stack and the registers). The idea is -- and I didn't invent this -- what looks like a pointer [to the heap] is a pointer. Those heap blocks that were not pointed to, are reported as garbage.

    A special allocator package records the calling frame so you can tell where the block was allocated. Other niceties are included. The tools is implemented as function calls that you typically invoke from the debugger.

    While the principle is heuristic, the practical experience (with Solaris and Interactive UNIX) is that it instantaneously finds all garbage.

    Marko

  50. IE6 is part of windows itself by HanzoSan · · Score: 2


    So how much memory does the windows Kernel, Explorer.exe and IE6 use all together?

    You cant find out how much memory IE6 uses on WindowsXP, maybe on Windows95 you can.

    --
    If you use Linux, please help development of Autopac
    1. Re:IE6 is part of windows itself by Anonymous Coward · · Score: 0

      Around 10M sounds right for IE5.5 on NT4 without ActiveDesktop installed. (What you really notice without AD is the slower startup time. Still not as slow as Mozilla tho.)

    2. Re:IE6 is part of windows itself by Peyna · · Score: 2

      Then you better count how much memory X is using when you are using Mozilla to make it fair. IE will run on shells other than explorer, and probably use the same amount of memory.

      --
      What?
    3. Re:IE6 is part of windows itself by scrod · · Score: 2

      Not really. Does X window contain HTML rendering routines? Nope. X window is to GDI+ as Mozilla is to IE. In other words, Mozilla doesn't rely on X window any more than any other app out there. Really large parts of IE are integrated into Windows--it's just a fact.

    4. Re:IE6 is part of windows itself by Anonymous Coward · · Score: 0

      The point is, supposedly, IE is integrated intop the OS. The Browser is the OS.

    5. Re:IE6 is part of windows itself by Com2Kid · · Score: 1

      Explorer.exe can indeed take the place of Iexplore.exe for some tasks.

      I can nuke either process and have a web browser that still works perfectly well. (random guess as to which of my open browser windows would go down with either process though).

      I can also kill both explorer.exe and iexplore.exe and have a perfectly functional OS.

      I can kill explorer.exe and use some other shell and just have iexplore.exe being used for web browsing.

      Hell if I wanted too I could setup Staroffice5 as my shell and use Moz as my browser and not have a single damn issue as far as the OS is concerned and still be able to run all of my programs.

      So no IE is NOT integrated into the operating system to any decent extent, that is just Microsoft FUD that they are managing to convince even their opponents of. Do not believe it.

    6. Re:IE6 is part of windows itself by HanzoSan · · Score: 2


      Yeah thats why when IE crashes, Explorer.exe crashes.

      IE is part of explorer.exe

      You can kill explorer.exe and still run IE, it doesnt change the fact that IE is a component for Explore.exe,

      Mozilla is a seperate program using XUL to for the interface which is why its slower, its NOT native.

      IEs interface components are part of Explorer and the Kernel so the interface is faster.

      --
      If you use Linux, please help development of Autopac
    7. Re:IE6 is part of windows itself by Com2Kid · · Score: 1

      ARG!!!

      No no no no NO!

      Sometimes on occasion Iexplore.exe is running separate browser window instances then Explorer.exe and if iexplore.exe dies explorer.exe does not care.

      The difference actually seems to be dependent upon if you start your browser window up from a regular folder view or if you invoke IE explicitly.

      A direct invocation (sorry just had to use that word again. :) ) of Internet Explorer (AKA clicking on the little blue 'e') will get you a separate process called Iexplore.exe

      Kill this as often as you want. :) Nothing happens to explorer.

      Yes the interface itself is highly interdependent, but not to the extent that the entire browser is needed within the OS. As I said, the actual internet part of internet explorer can be ripped out and put through a shredder and the OS will run just fine.

      That seems to be one misconception, that Explorer and/or Iexplore. are needed for Windows to run.

      They are the GUI, they can be replaced quite easily. Actually they are not even the GUI, some other process manages the background color if it is set to a solid, and basic dialogs and buttons and such, so IE cannot be TOO highly ingrained into the system.

      ::notes that he posts a 3 page essay style response to the RIAA shutting down radio stations and gets 1 moderation, yet he quickly shits out a stream of conciseness message and doesn't even spell check it and gets tons of replies and moderations on it::
      I'd rather that people had responded to my essay style post. :)

    8. Re:IE6 is part of windows itself by cduffy · · Score: 1

      I can nuke either process and have a web browser that still works perfectly well. (random guess as to which of my open browser windows would go down with either process though).

      If explorer.exe calls to the Internet Explorer rendering engine (as it does!), it's still Internet Explorer that should be billed for the RAM usage -- just as the RAM usage for Gecko should be billed to Mozilla rather than Galeon in determining how RAM-heavy each project is.

      Go ahead -- remove the IE-provided COM control used for HTML rendering in Windows and see how much of Windows Explorer works then.

    9. Re:IE6 is part of windows itself by Com2Kid · · Score: 1

      ARG! Dude, the point is that NEITHER EXPLORER OR IEXPLORE ARE PART OF THE WINDOWS OS ITSELF. THEY ARE JUST A SHELL.

      I can delete explorer.exe and iexplore.exe and STILL have a PERFECTLY funcitonal OS!

      (well OK minus one or two odd ball things, but only for those few apps that try and directly reference explorer.exe itself, and I have not seen an application try and do that in YEARS now).

      Think of it as the difference between Xwindows and Gnome. An X application will run with just X up and running, Gnome just makes shit look prettier (or not, depending on your stance on that issue. ^_^).

      Some applications do indeed require Gnome to work, but in Windows there is not that distinction, what in X is a window manager pretty much IS the OS in MS Windows itself. (well and awhole lot of other stuff as well. :) )

    10. Re:IE6 is part of windows itself by cduffy · · Score: 1

      I can delete explorer.exe and iexplore.exe and STILL have a PERFECTLY funcitonal OS!

      True, but if you delete the HTML rendering libraries that are part of IE, you won't have a perfectly functional OS, and a great many apps will break because functionality they expect to be built in will be missing.

    11. Re:IE6 is part of windows itself by Com2Kid · · Score: 1

      Only those FEW applications which use the HTML rendering engine.

      Which is mostly used for shoddy help files. REALLY shoddy help files that I _HATE_ using because they are less organized then the old format. (yah yah they can techinicaly do more things, but they are still annoying as hell.)

      I will still be able to play Quake3, UT, GTA(insert number here), do my 3d Modeling and Rendering, run Photoshop, get on the Net, run StarOffice, and pretty much do everything but be able to view the 1 in 10 help file that is in HTML format.

      (HTML may be used in those things were you click on a blue underlined word and a informational bit pops up, but that is the only other use that I can think off).

  51. EditPreferencesAdvancedMouse wheel by guiding_knight · · Score: 1

    Edit>>Preferences>>Advanced>>Mou se wheel should have everything you need, you can manually set your #of lines per wheel turn.

    --
    LOTR: Elijah Wood is a munchkin asshat. Yes, asshat. LOL.
  52. Stop using pentium 4/586! by HanzoSan · · Score: 2



    Mozilla requires 300mhz machine at LEAST.

    You shouldnt be using it on an old as hell machine. Its slow because your CPU is slow, period. they cant make your CPU faster. I mean the problems you complain about are CPU load problems not problems with ram.

    --
    If you use Linux, please help development of Autopac
    1. Re:Stop using pentium 4/586! by Ilgaz · · Score: 1

      Why we must buy faster CPU instead of them fixing bugs that causes sluggish performance especially on UI?

      Well, "Go and buy a faster CPU" isn't a good reply. The good reply is, "report bugzilla where most slowness happen" (like opening new window performance Bugzilla Bug 49141 New window performance), vote for that bug at least. If you use mozilla, you must help them. Its why they are giving it to end user.

      Oh, when they ship the commercial brother, Netscape 6.x, you can feedback too. More feedback they get on spesific things, more they work on it.

      I am just a end user but IMHO, most "slowness" can be caused because of memory leaks, floods. Especially if it slows down after certain time of usage. I lived it. I saw my machine (win2k pro) going to HELL because of a memory leak on Norton Speeddisk (fixed now).

      Oh and no, I am not replacing my P3-500 (with SSE :-) to run a program faster. If I use it, I would spare my 3-5 mins at least to vote on the problem bugs which causes slowishness...

    2. Re:Stop using pentium 4/586! by jilles · · Score: 2

      "Why we must buy faster CPU instead of them fixing bugs that causes sluggish performance especially on UI?"

      Because CPU's are dirt cheap. The amount of money you need to buy a modern CPU (low end) gives you one, maybe two hours programming time of a junior programmer. A professional programmer earns much more per hour and is good for maybe around 5 to 10 minutes of his/her time. So don't waste his/her time and buy a new CPU with the hardware to insert it into. You can pick up good second hand hardware for a price that is just about the same price of most commercial software packages (if you insist on being a cheap bastard). If it is your hobby to run new software on old hardware that's your problem.

      --

      Jilles
    3. Re:Stop using pentium 4/586! by Ilgaz · · Score: 1

      First of all I am not a cheap bastard and I guess your post is a joke.

      I am using p3 500, I can even run Quake III in 100fps and wondering if you are real on that post.

      So, you say I better go and buy a Sun Ultrasparc and sit w/o saying anything, not helping mozilla development? Um, or better I use a Cray eh?

      Are you real?

      Geezus...

  53. Memory Leak Detectors and Garbage Collectors by Taco+Cowboy · · Score: 5, Informative



    I'm gonna need people's help to add to the list below.

    Here is a list of (freeware) Memory Leak Detectors and Garbage Collectors -

    ccmalloc
    http://www.inf.ethz.ch/personal/biere/projects/ccm alloc/

    Valgrind
    http://developer.kde.org/~sewardj/

    Boehm Collector
    http://www.hpl.hp.com/personal/Hans_Boehm/gc/

    Parallel Collector on Message Passing Environment
    http://www.yl.is.s.u-tokyo.ac.jp/gc/dgc/

    If there are more out there, would you kindly add what you have to the list, please ?

    Thank you !

    --
    Muchas Gracias, Señor Edward Snowden !
    1. Re:Memory Leak Detectors and Garbage Collectors by cortense · · Score: 3, Informative

      LeakTracer
      http://www.andreasen.org/LeakTracer/

      MemWatch
      http://www.linkdata.se/sourcecode.html

      These are two free memory debuggers that I've used, and had much success with.

  54. What does this have to do with Mozilla? by Anonymous Coward · · Score: 0

    It's a story about a product that's actually unrelated to Mozilla, but they put up a 'demo' of how to use it WITH mozilla, and it makes the front page of slashdot with the Mozilla logo. If I have a pr0n site but I have a chick masturbating with tux can I have it posted under "Linux News" ?

  55. Who needs garbage collection? by Peaker · · Score: 3, Insightful

    "How hard is it to manage pointers and free your memory allocations anyways?"

    (To those who didn't get it, I was being cynical)

    That is the response I usually get when advising to write using high-level languages that take care of memory management. Finding enormous leakage in huge programs almost proves this response wrong. Finding leakage in almost all programs definitely proves it wrong, and you sure will find leakage in almost every large program written in a low-level language like C or C++.

    The overuse of low-level languages with increasingly powerful hardware is becoming appearant to more and more people. It seems the "dark side" will be out of the low-level language hell sooner, as Micros~1 is pushing C# and .NET with all their marketing strength.

    If you don't want the Linux/*nix world to stay behind, stop using C and C++ where Python and Lisp can be used. Writing in C or C++ instead of a higher-level language can be deemed as a premature optimization, as any specific part of the program can be optimized and written in C when necessary. We all know how evil premature optimization is.

    If you write in C or C++ because that's simply what you know, you should not be wary of learning new languages. You should know that C++ is extremely hellish to learn, while Java is a lot simpler, and Python takes at most a day or two!

    From my own personal exprience, functional languages are a bit more difficult to learn and grasp, but it seems they perfectly fit some mindsets.

    Stop wasting human power on writing destructors and freeing unused memory, when it can all be done automatically.

    1. Re:Who needs garbage collection? by dmelomed · · Score: 1

      Wow a troll gets this high rating?

      Small software has no problems being written in C though. The problem is lack of modularity in large software which leads to hard-to-find bugs.

    2. Re:Who needs garbage collection? by klui · · Score: 1

      When did C/C++ got shoved down to low-level language status? When I think low-level, I think assembly/machine language.

    3. Re:Who needs garbage collection? by ftobin · · Score: 2

      C and C++ are definitely assembly-level languages. C especially can almost be translated to assembly fairly straightforward; it's just a nicer syntax for assembly. Both languages, however, force you to deal with 'machine' issues, such as allocating and freeing memory. In higher level languages, such as ML, scripting languages, and (kind of) Java, you don't worry about keeping the 'machine' happy.

      There is a whole slew of non-low-level languages that are out there. Work with them and learn what is 'high' and what is 'low'. It's a sad situation that we're stuck with so many people writing everyday applications in assembly-level languages.

    4. Re:Who needs garbage collection? by SilentStrike · · Score: 1

      You don't get predetermined destruction in of the garbage collected langauges. If you don't want to track memory allocations in C++, you can use the boost shared_ptr, which is pretty likely to become standard (or some variation thereof) in the next C++ standard. http://www.boost.org/libs/smart_ptr/shared_ptr.htm

    5. Re:Who needs garbage collection? by Anonymous Coward · · Score: 0

      C is actually a "middle level" language.

    6. Re:Who needs garbage collection? by klui · · Score: 1

      Since when is declaring static arrays allocating and freeing memory? These "higher-level" languages is nice and all, but when you need to process huge volumes of data with a timelimit you have no choice to use something like C, or even <gasp> COBOL. Something like "using the correct tool for the job."

    7. Re:Who needs garbage collection? by r6144 · · Score: 1

      I'm afraid 20% of the leaks in C/C++ programs are not simple enough to be detected by garbage collectors (for example, you forget to remove an object from a global hash table, so a lot of things are magically referenced), Yet if you use garbage collection, these remaining leaks can be hard to find.

      Well, I do agree that Java or Python makes development faster by not requiring the programmer to write destructors. However, garbage collection is not magic. It cannot cure all memory-leak problems.

      As for ease of learning, making people write correct destructors does not make one language much more difficult --- mostly it just make the language a bit more verbose to use. Perl has garbage collection, but IMHO it is even more hellish than C++ to learn (well, it is nevertheless a good language for its purpose), because both are so hairy.

    8. Re:Who needs garbage collection? by Dacmot · · Score: 1

      Why use C/C++? yeah they are harder than python, perl, java, etc... but the C familly of languages are probably the most portable languages yet. There is a C compiler for nearly every hardware architechture. Hence an important reason why software like Linux, *BSD and Mozilla use C.

      Mozilla's purpose is not to be solely a browser/mail/whatever. Go to http://www.mozilla.org/ and read some of the documents there about the actual planned purpose of the Mozilla project and software.

      --

    9. Re:Who needs garbage collection? by JebusIsLord · · Score: 1

      I would argue that Perl is the most portable of languages, of course granted you need an interpreter for Win32, but the code doesn't require any messy #ifdef stuff. Of course, I need to add the disclaimer that I am new at all this, and I only know Perl and C++ so far:)

      --
      Jeremy
    10. Re:Who needs garbage collection? by Peaker · · Score: 2

      That's reference counting, not garbage collection.

      It frees memory slower than most modern garbage collectors and it doesn't work for cyclic references.

    11. Re:Who needs garbage collection? by Peaker · · Score: 2

      I didn't suggest that C++ is hard to learn because it requires low-level memory management.
      I suggested it so people understand learning new languages will not be as hard as it was to learn C++ (or Perl).

    12. Re:Who needs garbage collection? by Peaker · · Score: 2

      There's a JVM or Python interpreter on any platform Mozilla can run.
      There aren't always C++ compilers or libraries for those platforms.
      I doubt C and C++ are the most portable, except for tiny hardware which cannot run JVM's or a Python interpreter (in which case, cannot run Mozilla either)

    13. Re:Who needs garbage collection? by cduffy · · Score: 1

      How often do people who can afford to spend gobs of cash on software maintenance but not on hardware need to process huge volumes of data quickly? Certainly, there are applications where low-level languages are appropriate -- but they're a minority by far.

    14. Re:Who needs garbage collection? by bioinfo_guy · · Score: 1

      Obviously you've never worked on the cutting edge of computer science research. As a Bioinformatician, I often work with sequence data from experiments like the Human genome project. As one could expect the size of data for analysis is huge - often in the millions to billions of base pairs. One of the advantages of a language like C++ is that you CAN directly manipulate the memory. Don't get me wrong, I've used 'safe' languages like Java and Python before, but in my experience, for anything really computationally intensive these 'safety' features slow down computation so much that some calculatons are just not feasible. Don't get me wrong - for applications where speed is not an issue these 'safe' languages are the way to go, but it's important to remember that this 'safety' comes with the trade-off of performance.

    15. Re:Who needs garbage collection? by cduffy · · Score: 1

      Yes, yours is one of those rare applications I spoke of. My point -- that safe languages are appropriate in most cases -- stands. Most applications, even a great many speed-sensitive ones, spend their time inside the runtime libraries or other native code (particularly if the speed-sensitive parts are implemented in such code); if this is done correctly, the speed of the language itself becomes insignificant besides the speed of the library of native code in which the (usually isolated) speed-sensitive components are implemented.

      Once again, though, I'm only talking the usual case. I've written a fair bit of C for software running on embedded systems where Python (though available) was just not fast enough. The server end of that same software, on the other hand, was written in Python -- it had heavy enough hardware to be able to keep up, even on some of the more compute-intensive bits (where I ended coming up with a rather clever algorithm to circumvent most of the time requirements of a naiive implementation... were it to still be slow I'd have reimplemented that module in C, but it turned out not to be necessary).

    16. Re:Who needs garbage collection? by klui · · Score: 1

      The requirements for processing a company's payroll is not what is appropriate for these "safe" languages. Would you like your paycheck to be delayed for a day or two? How about a week?

    17. Re:Who needs garbage collection? by cduffy · · Score: 2

      The requirements for processing a company's payroll is not what is appropriate for these "safe" languages. Would you like your paycheck to be delayed for a day or two? How about a week?

      A day or two?!

      Almost all the work involved in that kind of thing is done in underlying libraries -- database retrieval, output formatting, and so forth. I'm actually involved in maintenance of the software running a mid-sized car dealership, and can say with absolute certainty that the bottlenecks involved in payroll processing (and importing new partlist data, and credit report retrieval, &c) aren't even remotely related to high-level code execution speed. In fact, we've had (much!) bigger problems when payroll (in particular, commissions) were delayed due to bugs in the old code; and office workers stalled by crashes in our unsafe code have cost the company far, far more than the unnoticable decrease in execution time involved in our newer, safe code.

      We're not talking a matter of days, but of seconds if that -- even dealing with large datasets, the bottleneck is almost always in the database itself (and other I/O issues) and not in the control language (and other CPU-time issues).

    18. Re:Who needs garbage collection? by klui · · Score: 1
      Your mid-sized car dealership is not representative of a corporation that spans across the globe. Heck, even in the U.S. alone, we need data files that need to be sent to Corporate for consolidation for the closing of out books.

      Normally, your payroll system isn't written by one guy or even one team, but by many teams across different computer systems. These systems didn't spring up in one day when all the interfaces were laid out with current technology binding them together. No, you need data files of line-item level transactions sent and each one processed. You'd need to account for 401(k)s, stock options, sick leave, and lots of other things you need to do for Uncle Sam.

      Closing the books of our accounting systems takes days. I would shutter to think how much time it would take if we rip out most of our systems and replace them with "higher-level" languages.

    19. Re:Who needs garbage collection? by cduffy · · Score: 1

      I would shutter to think how much time it would take if we rip out most of our systems and replace them with "higher-level" languages.

      First off, if you ripped them out and replaced them with systems written in "higher-level" languages, and the folks doing the work were halfway competant, they would have all interfaces laid out with current technology binding them together. It'd be an extrordinarily expensive project, sure -- but the end result would be a far superior product.

      That said, I'll bet you any amount you please that the bottleneck on closing your accounting systems' books isn't CPU-bound -- or, if it is, that it's horribly written. I've taken naiive C implementations of code and rewritten it in a "high level" language with only 1/3 the performance -- but using a far better algorithm -- and received a performance jump of more than a hundredfold. The implementation language is insignificant compared to the algorithms used and the underlying libraries; if 95% of your time is spent in database calls or network or disk I/O, switching to a language 3x slower will not make your system 3x slower, but only 10% slower. If this change lets you reevaluate your algorithms, add in better backend code or scale better to higher-end hardware, it probably resulted in a net benefit.

    20. Re:Who needs garbage collection? by klui · · Score: 1
      The problem with these types of "sweeping" change projects is once your changes are done, there are products/projects that come online that will make your "new" interfaces old and obsolete, and you're back where you've started in the first place.

      Doing what you're suggest works in small-to-medium-sized projects. For a large corporation, you will never get that kind of buyin because there are just too many systems to interface. You're not only dealing with technical difficulties but also crossing political boundaries. How will you sell your project to management? Oh, rewrite the entire accounting system and wait for at least 2-3 years before they see any tangible results. It is not going to fly--I guarantee you. Of course, if it's a shop of 10, then it probably work; but not for a large corporation.

      And I've rewritten programs implemented in a "lower-level" language and have gotten several orders of magnitude in improvement as well. What's your point?

    21. Re:Who needs garbage collection? by cduffy · · Score: 1

      I agree -- the costs involved in doing a complete rewrite of any sort are generally just too high in a large corporation, particularly when the only point of the rewrite is to refactor a little infrastructure and change the implementation language. That has little to do with the usefulness of safe languages, and much to do with politics and expenses. That said, however, corporations both big and small *do* sometimes embark on multi-year redesigns of their software, and when they do that (presumably for some other reason), using a high-level language is a Good Thing.

      And I've rewritten programs implemented in a "lower-level" language and have gotten several orders of magnitude in improvement as well. What's your point?

      That algorithms are far more important than language choice -- indeed, that language choice is in many cases downright insignificant as a performance factor.

    22. Re:Who needs garbage collection? by klui · · Score: 1
      Actually, usage of Perl and the like languages are used by us to do rapid prototyping/proof-of-concept, so I am not putting them down; however, much of the bulk of the processing is done using a "traditional" high-level language. The reason for this is probably due to the skillsets of the current group; but "higher-level" languages are used.

      The problem is in most cases the prototype/proof-of-concept is then placed into production and that has drawbacks, with performance implications that are not obvious until sometime in the future and after that developer leaves. "If it ain't broken, don't fix it" applies here, as well as for current code.

    23. Re:Who needs garbage collection? by cduffy · · Score: 1

      Perl? *shudder*. Perl is a problem in and of itself -- it doesn't lend itself to modularity, reuse or any of the Good Things that come with using proper OO methodology (and, preferably, a language that supports it). A lot of these are performance issues as well as design ones -- if you used an OO design, you can rip out some particular module, rewrite it (perhaps in a lower-level language) and slap the new version in if you're having performance problems. With Perl and its ilk (badly designed C code can fall into this same trap), that task can be much, much harder.

      "If it ain't broken, don't fix it" is a good rule -- but in an environment where maintenance is likely to be necessary, it is broken unless it's easily maintainable, and that needs to be kept mind from design to testing.

      In short, don't blame the language when you've got more serious problems -- no programming language is a panacia, and few popular ones will kill 'ya (heck, I've even seen projects based on C++ succeed on occasion!). That said, for a wide variety of applications, safe languages are a Good Thing, and when used correctly have far less of a performance impact than many consider them to have.

  56. It is definitely slower than NS4.7 by Tom7 · · Score: 1

    It's definitely slower than NS4.7, but that's mostly because its rendering engine supports a lot more. (And also because the architecture is pretty bloated, but there are some benefits to that.)

    You might need a faster computer. I still use NS on my laptop, but Mozilla is nice and fast on my desktop.

    1. Re:It is definitely slower than NS4.7 by Anonymous Coward · · Score: 0

      Except for large tables (unless they've fixed that in 4.x). When I first saw the "deeply nested tables" demo (debug->viewer demos #6) back with whatever milestone that was (m8 or so?) I was amazed. NS 4.x sucks with tables.

    2. Re:It is definitely slower than NS4.7 by skt · · Score: 2

      I wouldn't say that it is "slower" than NS4. Mozilla does use more memory which does cause it to load slower, but the page rendering speed compared to NS4 is much faster. New windows also seem to load slower on mozilla which is one gripe of mine, but I figure it's due to XUL or something not native. It has been said before, but you can work around that delay by using tabs and CTRL+L instead of CTRL+SHIFT+L (for example).

      Low memory machines might still find NS4 faster overall, I haven't really had a chance to try mozilla on a loaded 32MB machine yet. At work, we have many of these left in use and they have to run software like mcafee which uses a huge amount of memory itself. There won't be much RAM after that to make mozilla happy I don't think :(

    3. Re:It is definitely slower than NS4.7 by Tom7 · · Score: 1

      Well, page rendering appears faster because of incremental reflows, but I don't think it is really faster. Anyway -- I agree that the slowest parts are starting the browser and opening a new window. Otherwise, Mozilla is actually quite fast.

  57. System Resources on Windows 9x by yerricde · · Score: 1

    It happens to me with Windows 98 with IE, but W2K with IE does not exhibit the same problem.

    Under Windows 95, 98, and ME, the USER.EXE and GDI.EXE resource heaps are each limited to 64 kilobytes. (Windows NT, 2000, and XP have no such limit.) This bites me in the butt on K5 too.

    --
    Will I retire or break 10K?
    1. Re:System Resources on Windows 9x by Alien54 · · Score: 2
      Under Windows 95, 98, and ME, the USER.EXE and GDI.EXE resource heaps are each limited to 64 kilobytes. (Windows NT, 2000, and XP have no such limit.) This bites me in the butt on K5 too.

      Which is just another reason for me to finally get off my butt and build that freebsd box i've been thinking of.

      --
      "It is a greater offense to steal men's labor, than their clothes"
    2. Re:System Resources on Windows 9x by yzf750 · · Score: 1

      Ahh that makes sense. I figured out why I have not had the problem since I got the mod points a couple of days ago, I have been so bored at work that I have been reading /. stories with under 100 comments, when I went looking for a story with lots of comments, *BANG* same problem. One more reason to load up W2K on my work computer, or go back to using Linux there...

  58. Nice leak detectors built into Mac OS X by Mneme · · Score: 5, Informative

    The Mac OS X's malloc library has built-in support for providing good leak detection. The command line tool leaks (installed with the free developer tools). Although leaks can be run on any program, it works best when you set the enviromment variable MallocStackLogging, which causes the system to provide complete stack frame information about when each piece of leaking memory was allocated.

    Also of interest are the malloc_history and heap command-line tools. They tell you lots of interesting information about exactly what is on the heap and how it got there. The malloc library also detects double frees by default (making it immune to the recent zlib security vulnerability) and can also detect writing on free blocks, etc. Very nice.

    Finally there is a graphical application, MallocDebug which provides similar information on memory leaks and memory use but also provides an easy to use memory-browser interface. Unlike simple leak detectors, you can explore your program's memory space and discover memory that isn't strictly "forgotten" by your program (it still has valid references to it) but should perhaps have been deleted anyway (e.g., finding memory allocated for a splash screen graphic). This last application requires that the code use a special library, but it is easy enough to make dynamically-linked programs use this library (thanks to Darwin's equivalent of LD_PRELOAD, DYLD_INSERT_LIBRARIES).

    Although you can debug any code with these tools (from command-line tool to X-windows, Carbon or Cocoa app), they really shine debugging Objective-C, because Objective-C provides enough runtime information for the tools to tell you lots about the objects that are sitting there on the heap.

  59. Re:Wlfenstein by guiding_knight · · Score: 1

    First things first: the new wolf rocks. Now to get back on topic...

    I've had no problems with RTCW after mozilla, during a few instances of mozilla or otherwise. Looks like its fixed! Or at least reduced to where my P933 w/ 128MB RAM can handle it with no noticable strain on anything.

    --
    LOTR: Elijah Wood is a munchkin asshat. Yes, asshat. LOL.
  60. MozillaQuest by Anonymous Coward · · Score: 2, Funny
    Soon on www.mozillaquest.com:
    Mozilla leaks out of control
    Mozillas memory leaks are out of control. Things has become so bad that mozilla-developers has developed a webapplication that automatically detects leaks. Yet again we can see that mozilla management is unable to keep the developers focused on developing a browser which has resulted in yet new features instead of fixing bugs. In previous articles MozillaQuest has described how new features has deleyed milestones and caused new bugs.
  61. At last by Anonymous Coward · · Score: 0

    You fuckers are able to admit that Mozilla is a memory hogging, memory leaking POS

    It's not so bad on my windows machine, but on my linux machine.....jesus christ

  62. Both IE and Netscape have roots in Mosaic by yerricde · · Score: 1

    It's an apples to oranges comparison because both companies didn't start development on their product simultaneously and therefore can't be compared in "coding speed" to each other.

    Yes they did. I always thought Netscape Navigator (up to 4.x) was based on NCSA Mosaic, which became Spyglass Mosaic, which became Microsoft Internet Explorer (see IE's about box). After the Netscape fork of Mosaic (i.e. Mozilla Classic) began to show its limitations, development began on its replacement -- Gecko -- around which Mozilla.org built its next generation Internet browser.

    --
    Will I retire or break 10K?
  63. Why not use this for SQUID? by Anonymous Coward · · Score: 0

    Hey I wonder if this program can also be used to debug the memory leaks in squid proxy server...

  64. "Other" Mozilla by Anonymous Coward · · Score: 0

    I'd recommend trying a different browser based on Mozilla's rendering engine. For Linux, there's Galeon. I use this as my primary browser (I can't stand Mozilla - it responds slowly even on my 1GHz processor with 400 MB of RAM). K-Meleon is a similar program for Windows ("K-Meleon may be considered the unbloated Mozilla for Windows").

  65. you don't need Geodesic's stuff by markj02 · · Score: 4, Informative
    If you want leak detection and garbage collection, use the Boehm/Weiser/Dehmers garbage collector. It works with C, C++, and a lot of other languages. Mozilla should probably be using it by default. For plain leak detection, there are plenty of highly functional open source packages. "dmalloc" comes to mind (although it's not completely unencumbered). For array bounds violations, you can use valgrind, ElectricFence, and other free tools.

    A more basic question to ask, however, is why something like Mozilla has memory leaks in the first place. Avoiding memory leaks in C is hard because there simply are no hooks in C to automate resource management. But C++ has constructs that make writing leak-free code and code that doesn't use bad pointers pretty easy. Since switching from C to C++ a few years ago, memory leaks and bad pointers have simply not been an issue anymore in my code.

  66. Re:Slashdotted already? by Anonymous Coward · · Score: 0

    It doesn't support many NS4isms like layers. Pretty much all browsers are back compatible with Netscape 3 however.

  67. Re:Wow, that's pretty damn useful... by Anonymous Coward · · Score: 0

    HAHAHAHA. No sir, YOU are the retard. I will not even validate your fucking moronic statement with a thought out response.

  68. spellchecker by ksheff · · Score: 2, Informative

    Have you tried out the one at http://spellchecker.mozdev.org?

    --
    the good ground has been paved over by suicidal maniacs
  69. Netscape WAS Mosaic by HanzoSan · · Score: 2



    Netscape was the company who originally made Mosiac if i remember right, before they were called netscape.

    --
    If you use Linux, please help development of Autopac
    1. Re:Netscape WAS Mosaic by Reziac · · Score: 2

      I have a standalone netscape.exe that calls itself "Netscape Mosaic 0.99 beta". I use it as a Q&D test to see if my web pages will be tolerably legible in Lynx, since it seems to handle major layout elements more or less similarly.

      IIRC you can get even older versions at http://browsers.evolt.org/index.cfm/dir/navigator/

      --
      ~REZ~ #43301. Who'd fake being me anyway?
    2. Re:Netscape WAS Mosaic by Anonymous Coward · · Score: 0

      No, Mosaic was developed at NCSA, and the Marc Andreesen convinced some of the other programmers that the higher-ups were against them, and they went off and founded Mosaic Communications Corp. Then they had to change names to Netscape. I don't think they ever actually licensed the Mosaic code (whereas Microsoft did, check the "about" box in MSIE).

  70. Insure++ to invasive - must recompile ALL CODE by Anonymous Coward · · Score: 0

    With Purify, and presumably this Great Circle product you either just re-link the app (UNIX) or simply re-run it using the tool (Windows).

    Purify++ has some preprocessor nonsense going on that takes forever to use.

  71. I've tracked this specific leak for 5 YEARS now... by Reziac · · Score: 2
    Someone says,

    I know that when I have moderator status here on slash, I can watch the system resources disappear down a block hole if I hit a story with a lot of comments and I use Moz.... It is a little better under IE, but I prefer to use Moz.

    I've been tracking this particular bug for a LONG time, and couldn't get anyone at the former Netscape to do anything about it. I haven't pestered the current Netscape or Mozilla teams because I haven't actually used the current browsers, and consequently expected I'd receive a poor welcome. But it sounds like the bug IS in still in the codebase, per the above-quoted comment.

    Specifically, the resource leak occurs when there are a lot of links INSIDE table cells, AND those links contain a lot of text. This apparently has a trigger threshold since if you sufficiently cut down the amount of text displayed as links, the leak goes away. Worst case, a large table with lots of long links can suck resources to zero in 30 seconds flat.

    It appears that checkboxes, radio buttons, and dropdown boxes occuring inside table cells can also trigger the problem, tho I don't have this pinned down to exact cases.

    Symptoms vary with the NS version and the WinVersion under it, but in general you will notice oddities like vertically overlapping text and checkboxes that go invisible. An example that affects NS3.04 is Slashdot's own "User Preferences" page, with its zillion checkboxes.

    This bug is apparently in ALL versions of Netscape, but only visibly manifests in certain versions. To my certain knowledge, 3.04-16bit (running on Win16 or Win32), 3.04-32bit, and 4.64 are the worst affected, but apparently it can be triggered in ANY version if you work at it hard enough. 3.02-16bit Gold, 4.00-32bit, and 4.04-32bit are somewhat less affected than average.

    People using the old Delphi forums (which were horrible for triggering the leak) griped about the symptoms constantly, regardless of NS version. Of course most had no idea what was happening, only that using Delphi crashed their computer.

    So long as you haven't actually zeroed out the system, resources will usually recover by 90+% after you leave the triggering page.

    The bug is ALSO definitely in IE3.0. I don't personally know about other versions other than that IE5.01 seems somewhat resistant to it (but I only use IE as a last resort, so...) But per the quoted comment, the bug is clearly not absent in recentish versions (I assume no one here is insane enough to still be using IE3 :)

    Correct me if I remember wrongly, but don't IE and NS both ultimately derive from the Mosaic codebase? The implication is that this is a core bug in the foundation code.

    BTW there is also a resource leak that happens if you view a page that has SWF on it, but you do NOT have the SWF plugin installed. The leak is approx. 25% per SWF box per page, and unlike the above-mentioned leak, resources do NOT recover when you leave the affected page. This affects NS 3.04-32bit and 4.04-32bit equally, haven't checked other versions. I suspect this is another manifestation of the same leak, since SWF-inside-tables also seems to be involved.

    Affected sample of the SWF/tables resource leak: http://www.blkviper.com/index.html (however, NO leak IF you have the SWF plugin installed).

    I'm not a coder, but I can contribute testing if desired.. I hope this information finds its way to the appropriate people (or if someone knows who I should contact, I'll do it myself), and that this bug is finally fixed!

    --
    ~REZ~ #43301. Who'd fake being me anyway?
  72. Never been able to successfully run Boehm's GC by Anonymous Coward · · Score: 0

    I have never been able to successfully run Boehm's GC replacement for malloc/free in my programs on both Solaris/Sparc and Linux/Intel - it crashes very soon after startup usually after spawning a thread, but can also also in a single threaded application. In spite of this, I would still like to use it. What's the secret? There are easily two dozen tweaking parameters (interior pointers, exterior, etc). I just want to run it - not have a PhD in it. Are there a pre-built GC shared libraries for Solaris and Linux somewhere?

  73. it runs MUCH better than IE - on Win98 by porky_pig_jr · · Score: 1

    Don't know about NT, but I have Win98 with only 128MB of memory, and the ancient process, and Mozilla 0.9.8 and 0.9.9 runs *much quicker* than the latest IE. In fact I'm using Mozilla practically all the time - except for the non-standard web pages (that is, 'viewable only with IE'). It doesn't happen that often, though. In addition, IE crashes on Win98, every once in a while, but quite regularly. It didn't happen with Mozilla yet. Not with 0.9.8 and 0.9.9.

  74. Re:I've tracked this specific leak for 5 YEARS now by Anonymous Coward · · Score: 0

    > I've been tracking this particular bug for a LONG time, and couldn't get anyone at the former
    > Netscape to do anything about it. I haven't pestered the current Netscape or Mozilla teams
    > because I haven't actually used the current browsers, and consequently expected I'd receive a
    > poor welcome. But it sounds like the bug IS in still in the codebase, per the above-quoted
    > comment.

    Given that current builds of mozilla contain virtually no code from Netscape 4.x[1] it's probably a different bug. And yes, logging a netscape 3.x or 4.x bug in bugzilla would not make you popular.

    [1] about 2%, I believe.

  75. Possible explanation. Was: Re:Is there some other by allanj · · Score: 1

    [snip]
    It would not be unlike Microsoft to introduce an undocumented API which allows apps to behave differently in swap, but that's just speculation
    [snip]


    I like conspiracy theories as much as anyone, but this one I think I can debunk. IE shares a lot of code with the rest of the GUI part of Windows (iexplore and explorer are intimately connected == uses many of the same DLLs), and explorer.exe has many parts that are used all over. Since these will get constant (at least regular) usage, their pages just doesn't get swapped out that much.


    Another possible explanation is that Mozilla is written in C++ (it is, if memory serves my correctly). Often, OO programming splinters code into many methods with little code in each. Since most compilers place methods in order of appearance in the sourcefiles, calling only a few selected ones of these and having a relatively deep inheritance hierarchy (which further distances code parts), the actual code executed will be scattered all over the memory area. If different classes in the hierarchy are located in different cpp files (they often are for overview and simplicity), they are also linked into mostly random parts of the memory area.
    This all means that the 4Kb pages holding the methods called don't get many hits, so they are prone to being swapped out by the rather aggressive VMM in Windows.


    It should be entirely possible to monitor the swap activity while doing a certain task using the standard monitoring system in WinNT/2000. Doing this on a standard installation after the initial loading of the application, and counting page faults all the way through a fixed sequence of web pages, once for IE and once for Mozilla, one could get a reasonable overview of whether page faulting is really to blame. Someone who cares enough should probably go do it ;-)

    --
    Black holes are where God divided by zero
  76. Many thanks !! by Taco+Cowboy · · Score: 1



    Thanks a lot for the leads !!

    I will add them to the list and hope that others will do too.

    Thanks again !!

    --
    Muchas Gracias, Señor Edward Snowden !