Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

memory leak & double free checks
Hello
Is there any software for *bsd which could help in debugging my
application ? (i need to find memory leaks, and i have problems with
double free()ing memory).

Thanx
Michal


Report this thread to moderator Post Follow-up to this message
Old Post
vertigo
10-26-04 08:58 PM


Re: memory leak & double free checks
by the way:
my gdb return segmentation fault when i try to debug my application. I
think it's because it's using -llthread (linux threads library).
It hangs when it has to create thread :(
Is it normal ?

Is there any better tool ?


Thanx
Michal


Report this thread to moderator Post Follow-up to this message
Old Post
vertigo
10-26-04 08:58 PM


Re: memory leak & double free checks
vertigo <ax178@wp.pl> writes:

> Hello
> Is there any software for *bsd which could help in debugging my
> application ? (i need to find memory leaks, and i have problems with
> double free()ing memory).

Will the code run under Linux?  Then you could use Valgrind to track
down such bugs.

--
Måns Rullgård
mru@inprovide.com

Report this thread to moderator Post Follow-up to this message
Old Post
Måns Rullgård
10-26-04 08:58 PM


Re: memory leak & double free checks
vertigo wrote:
> Hello
> Is there any software for *bsd which could help in debugging my
> application ? (i need to find memory leaks, and i have problems with
> double free()ing memory).
>
> Thanx
> Michal
>

If your on solaris you could try purify, it you company has it.
I does a very good job.

--
___  _ ____       ___       __  __
/ _ )(_) / /_ __  / _ \___ _/ /_/ /____  ___
/ _  / / / / // / / ___/ _ `/ __/ __/ _ \/ _ \
/____/_/_/_/\_, / /_/   \_,_/\__/\__/\___/_//_/
/___/
Texas Instruments ASIC Circuit Design Methodology Group
Dallas, Texas, 214-480-4455,  b-patton@ti.com

Report this thread to moderator Post Follow-up to this message
Old Post
Billy N. Patton
10-26-04 08:58 PM


Re: memory leak & double free checks
vertigo <ax178@wp.pl> writes:

> Is there any software for *bsd which could help in debugging my
> application ? (i need to find memory leaks, and i have problems with
> double free()ing memory).

What system is this on? If it's Solaris look at
watchmalloc(3MALLOC). If it's Solaris 9 also look at libumem(3LIB).

Joe
--
Nothing cures like time and love
- Laura Nyro

Report this thread to moderator Post Follow-up to this message
Old Post
joe@invalid.address
10-26-04 08:58 PM


Re: memory leak & double free checks
"Billy N. Patton" <b-patton@ti.com> writes:

>vertigo wrote: 

>If your on solaris you could try purify, it you company has it.
>I does a very good job.

Or some of the built-in alternatives: watchmalloc and libumem
which come for free with the OS (libumem since update 2 of S9;
watchmalloc since 2.6 or so)

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.

Report this thread to moderator Post Follow-up to this message
Old Post
Casper H.S. Dik
10-27-04 01:56 AM


Re: memory leak & double free checks
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

joe@invalid.address wrote:
| vertigo <ax178@wp.pl> writes:
|
|
|>Is there any software for *bsd which could help in debugging my
|>application ? (i need to find memory leaks, and i have problems with
|>double free()ing memory).
|
|
| What system is this on? If it's Solaris look at
| watchmalloc(3MALLOC). If it's Solaris 9 also look at libumem(3LIB).
|
| Joe

Does Solaris get matched by the *bsd glob? I'm curious.

(I don't know the tangled and mixed lineages of all *nixes.)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

 iD8DBQFBfzntKxatjOtX+j0RAtWXAJsHxUEXIIfe
ZMK5DL7B4wx5RmKorACfa/Ha
4mgn2QjkUCiO4jXyu5apHgY=
=0uym
-----END PGP SIGNATURE-----

Report this thread to moderator Post Follow-up to this message
Old Post
Chris Barts
10-27-04 08:57 AM


Re: memory leak & double free checks
Casper H.S. Dik <Casper.Dik@Sun.COM> wrote in message news:<417eb291$0$37789$e4fe514c@news.
xs4all.nl>...
> "Billy N. Patton" <b-patton@ti.com> writes:
> 
> 
>
> Or some of the built-in alternatives: watchmalloc and libumem
> which come for free with the OS (libumem since update 2 of S9;
> watchmalloc since 2.6 or so)
>
> Casper


any such tool for gnu/linux(say Red Hat or Mandrake) OS??

tabrez

Report this thread to moderator Post Follow-up to this message
Old Post
Tabrez Iqbal
10-27-04 01:56 PM


Re: memory leak & double free checks
tabrez19_i@rediffmail.com (Tabrez Iqbal) writes:

> Casper H.S. Dik <Casper.Dik@Sun.COM> wrote in message news:<417eb291$0$377
89$e4fe514c@news.xs4all.nl>... 
>
> any such tool for gnu/linux(say Red Hat or Mandrake) OS??

valgrind

--
Måns Rullgård
mru@inprovide.com

Report this thread to moderator Post Follow-up to this message
Old Post
Måns Rullgård
10-27-04 01:56 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Unix Programming archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:45 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.