• Welcome to Valhalla Legends Archive.
 

BNCSutil Memory Problems?

Started by Archangel, March 27, 2005, 06:38 PM

Previous topic - Next topic

Kp

Wow.  It's been a while since I've caused so much activity with so little effort. :)  Remarks, in no particular order:

Networks: if you don't understand something, a vague "I don't get it", isn't very helpful.  With such a non-specific problem, I doubt I would've been motivated to address your confusion.  Also, although shadypalm is the primary distributor at this point, it's not his obligation to fix it.  I suspect he'd be grateful for a patch instead of an "it doesn't work; fix it!" message.  That is, you should try to fix it yourself and send him the patch if it works.  See below about valgrind.

Arta: sure, not everyone's an expert.  I was a bit time pressed, and felt it better to toss out some concise instructions that an expert could interpret (and hope for the best).  If the recipient wasn't an expert, he would have the side joy of learning about valgrind and its functionality as a consequence of my message. :)

iago: not at all.  I only make it difficult to understand if it's not a lot of effort for me. :)  Jokes just aren't worth it if I have to spend days setting them up. ;)

For those who are not familiar with valgrind: it's a tool to perform dynamic instrumentation of a binary for purposes of profiling, correctness checking, or just about anything else you want to write a tool to do.  Binaries built with debugging symbols produce more informative reports than those which are stripped ( = have no debugging symbols).  The tool memcheck would detect any out of bounds reads/writes, as well as detect memory leaks when the process terminates.  Caveat: valgrind is Linux specific.  There's some rumors that they might try to port it to other Unices, but Microsoft Windows is entirely out of the question for the foreseeable future.  MS-Windows simply has far too many system calls to consider writing wrappers, since valgrind cannot follow execution into kernel mode, and thus must wrap system calls to update its post-call view of process state.  BNCSutil builds on Linux systems, so that's not a problem in this case.

There, that wasn't so unclear, was it? ;)
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

effect

or.. you couldve just said that originally instead of being a hardass on a forum!.

Lowest level of life = forum hardasses
Quote from: Mangix on March 22, 2005, 03:03 AM
i am an expert Stealthbot VBScript. Recognize Bitch.

BaDDBLooD

Quote from: effect on March 28, 2005, 09:21 PM
or.. you couldve just said that originally instead of being a hardass on a forum!.

Lowest level of life = forum hardasses

Keep that to Private Messages please.

EDIT: Thanks KP, that will really come in handy in the future.
There are only two kinds of people who are really fascinating: people who know absolutely everything, and people who know absolutely nothing.

MyndFyre

[off-topic]
Quote from: Kp on March 28, 2005, 08:16 PM
Caveat: valgrind is Linux specific.  There's some rumors that they might try to port it to other Unices, but Microsoft Windows is entirely out of the question for the foreseeable future.
Hahaha.  I never thought of the plural of either of those being "Unices" nor "Linuces," although I suppose they are accurate.  Nice. :)
[/off-topic]
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

warz

Quote from: MyndFyre on March 28, 2005, 02:05 PM
Quote from: Archangel on March 28, 2005, 01:32 PM
Ok calm down, alot of people dont understand alot of stuff in here, so why being so damn agressive?
Quote from: Arta[vL] on March 28, 2005, 01:23 PM
Relax. For someone not familiar with those tools and techniques, that advice would probably be rather difficult to follow.
To clarify my last statement and then question:

I'm not familiar with the tool "valgrind".  I've never heard of it, nor do I know what it does.  My point was that there is a lot of information in the statement Kp made that you can read and understand if you try to think about the statement, and then there is a lot of implied information.

It's like the other day when I came home early to help my mom out with a party she was getting ready to have.  I told her that I came home to help.  Her response, "Help?  What do you mean, 'help'?"  Well wtf do you think I mean?  If she had thought about the context of the situation and my statement, it would have been pretty clear.  It's hardly an exercise in critical thinking.

Similarly, it's reasonable to expect that Networks would analyze the situation in terms of what Kp was suggesting; I understand if someone doesn't know what debugging symbols are.  However, the rest is quite clear: valgrind is a tool to obtain, and it uses the binary and debugging symbols file to figure out what lines in the source code are causing memory leaks.

Appropriate questions would have been "How do I build with debugging symbols?  What are dwarf-2 symbols, and how are they different?  Where do I get valgrind?"

The question was not meant to be aggressive, and for that, I apologize.  It's just frustrating when people don't try to figure something out.

Dang, your mom is dumb. My mom is definantly better. Sorry.

Kp

Quote from: effect on March 28, 2005, 09:21 PMor.. you couldve just said that originally instead of being a hardass on a forum!.

Lowest level of life = forum hardasses

Like I said (which you'd know if you'd actually read my post), I was time pressed and felt it was better to give him some hints about where to start, rather than just ignore him.  Besides which, I hardly think that my original message constitutes "being a hardass".  It could've been more helpful if I'd had more time and inclination when crafting it, but it was by no means rude.  That said, don't provoke the moderators.
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

Networks

Isn't Cloaked the main distributor? It's his dll, his open-source project. I don't know as much C++ as I'd like to know to probably fix it.

iago

Quote from: Networks on March 29, 2005, 11:00 AM
Isn't Cloaked the main distributor? It's his dll, his open-source project. I don't know as much C++ as I'd like to know to probably fix it.

Yes, he is.  But it's opensource, so if I find the problem I can send him a .patch file and he can apply it, then everybody is happy.  If he has made other changes since then, a .patch will merge with them.  It's very handy.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


shadypalm88

#23
Hi everybody.  When I heard about the memory usage I figured there was only one thing that could possibly use that much: CheckRevision.  On Windows systems this uses memory mapping.  Although the memory handle was being closed, the memory wasn't actually being unmapped.  This was fixed and should end the memory troubles.

Edit: I also fixed a (much smaller) leak in WarCraft III decoding (thanks for the ValGrind tip), and it compiles on *NIX "out of the box" now.

UserLoser.

Quote from: UserLoser on March 27, 2005, 07:21 PM
Does BNCSUtil cache all the file data for War3 game files?  Those are quite large, and may be the cause

iago

Quote from: UserLoser on April 03, 2005, 10:05 PM
Quote from: UserLoser on March 27, 2005, 07:21 PM
Does BNCSUtil cache all the file data for War3 game files?  Those are quite large, and may be the cause

Wow, you're cool!  If you knew the problem, why didn't you fix it while shadypalm88 was gone?
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


UserLoser.

Quote from: iago on April 03, 2005, 10:48 PM
Quote from: UserLoser on April 03, 2005, 10:05 PM
Quote from: UserLoser on March 27, 2005, 07:21 PM
Does BNCSUtil cache all the file data for War3 game files?  Those are quite large, and may be the cause

Wow, you're cool!  If you knew the problem, why didn't you fix it while shadypalm88 was gone?

If you are going to say something that would probably get you punched in the mouth in person, do not say it.

Maddox

asdf.

iago

This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*