Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

I did something stupid!

Name: Anonymous 2009-02-18 12:02

Know what it was? It was compiling C++ code on a single-user system without knowing barely anything about the language, then running running that code on a multi-user system far later and finding out, hey, I'm segfaulting!

Any way I can try to patch up any possible memory leaks in my normal computer?

Name: Anonymous 2009-02-18 12:05

Memory leaks!!? AAAAAAAAAHHHHH YOU ARE NEVER GOING TO GET THAT MEMORY BACK JUST KILL YOURSELF!

Name: Anonymous 2009-02-18 12:07

Well, you could start off with freeing any memory allocated with new by calling free at the right time.

By the way, segfault rarely happens because of memory leaks.

Name: Anonymous 2009-02-18 12:07

>>3
Make that delete. And disregard that I suck cocks.

Name: Anonymous 2009-02-18 12:09

sounds like u should be using a retard language like vb

Name: Anonymous 2009-02-18 12:22

Use Python and this won't happen.

Name: Anonymous 2009-02-18 12:38

Use SCALABLE ENTERPRISE SOLUTIONS and this won't happen.

Name: Anonymous 2009-02-18 12:39

>>1
Sounds like you're accessing bad/freed memory. Get out a debugger (ie, gdb+valgrind) and figure out where it's breaking, then come back with a backtrace and associated code if you really want help.

Name: Anonymous 2009-02-18 13:22

>>8
DON'T HELP HIM!

Name: Anonymous 2009-02-18 13:35

Looks like a case of stack pointer monadic overflow.

Name: Anonymous 2009-02-18 13:42

Make all virtual addresses accessible for rw. This will make segfaults impossible.

Since the kernel will likely reserve some memory in the upper half of your address space, mask every pointer with 0x7FFF... for extra security (if you don't know how to do that, cast it to an int and use abs() on it, then cast it back).

Name: Anonymous 2009-02-18 14:19

>>11
My oh my, emulating DOS in protected mode aren't we?

Name: Anonymous 2010-12-17 1:40

Are you GAY?
Are you a NIGGER?
Are you a GAY NIGGER?

If you answered "Yes" to all of the above questions, then GNAA (GAY NIGGER ASSOCIATION OF AMERICA) might be exactly what you've been looking for!

Don't change these.
Name: Email:
Entire Thread Thread List