valgrind? (was Fwd: [Bug 417004] python crashes when loading gnome bindings.)
So what is the Darwin equivalent of valgrind and strace so we can isolate this problem with gnome? Since by definition "Valgrind is an award-winning suite of tools for debugging and profiling Linux programs" and there is no interest on their part in making it work for PPC hardware, what other options are there? Begin forwarded message:
If you want to help, attaching the following traces might help: 1. valgrind python -c "import gnome" 2. strace python -c "import gnome"
Though I have no idea whether valgrind runs on darwin at all...
-- Paul Beard contact info: www.paulbeard.org/paulbeard.vcf pictures: http://www.flickr.com/photos/pdb206/ Are you trying to win an argument or solve a problem?
Le 07-03-17 à 09:53, Paul Beard a écrit :
So what is the Darwin equivalent of valgrind and strace so we can isolate this problem with gnome?
There is ktrace on darwin, I don't know how related or not those are.
Though I have no idea whether valgrind runs on darwin at all...
"There are experimental ppc32/darwin and x86/FreeBSD ports for Valgrind 2.X. They could be made to work with 3.X with some effort. x86/darwin is a high priority; it would be great to have Valgrind running on Apple machines, as it would make Valgrind usable with a lot of new software (e.g. Microsoft Office for Mac!), more so than x86/BSD ports, for example. ppc32/darwin is now less interesting as those machines are being phased out." yves
On Mar 17, 2007, at 7:37 AM, Yves de Champlain wrote:
Le 07-03-17 à 09:53, Paul Beard a écrit :
So what is the Darwin equivalent of valgrind and strace so we can isolate this problem with gnome?
There is ktrace on darwin, I don't know how related or not those are.
Rumor has it they are equivalent. Not that its output has been useful to the folks at GNOME so far.
Though I have no idea whether valgrind runs on darwin at all...
"There are experimental ppc32/darwin and x86/FreeBSD ports for Valgrind 2.X. They could be made to work with 3.X with some effort. x86/darwin is a high priority; it would be great to have Valgrind running on Apple machines, as it would make Valgrind usable with a lot of new software (e.g. Microsoft Office for Mac!), more so than x86/BSD ports, for example. ppc32/darwin is now less interesting as those machines are being phased out."
Yes, I saw that. Does anyone know what valgrind does/how it works and if there is something similar in the Darwin/MacPorts toolchain? It doesn't build on Darwin as it requires a lot of integration with the kernel of the host system. -- Paul Beard contact info: www.paulbeard.org/paulbeard.vcf pictures: http://www.flickr.com/photos/pdb206/ Are you trying to win an argument or solve a problem?
On Mar 17, 2007, at 1:38 PM, Paul Beard wrote:
Yes, I saw that. Does anyone know what valgrind does/how it works and if there is something similar in the Darwin/MacPorts toolchain? It doesn't build on Darwin as it requires a lot of integration with the kernel of the host system.
It's a debugging and profiling tool. I think you do do some (but probably not all) of the memory checks with other tools on Mac OS X (it looks like they were asking you to run the program with valgrind's memory checks). Setting MallocPreScribble, MallocScribble, MallocBadFreeAbort, MallocStackLogging, running leaks, and maybe malloc_history (see the malloc(), leaks, and malloc_history man pages) should approximate what it seems like they are looking for. -- Daniel J. Luke +========================================================+ | *---------------- dluke@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
Yes, I saw that. Does anyone know what valgrind does/how it works and if there is something similar in the Darwin/MacPorts toolchain? It doesn't build on Darwin as it requires a lot of integration with the kernel of the host system.
It detects memory leaks. Apple seems to have something similar called MallocDebug in the Developer Tools.
-- Paul Beard contact info: www.paulbeard.org/paulbeard.vcf <http://www.paulbeard.org/paulbeard.vcf> pictures: http://www.flickr.com/photos/pdb206/ Are you trying to win an argument or solve a problem?
------------------------------------------------------------------------
_______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
participants (4)
-
Daniel J. Luke
-
Paul Beard
-
Watson Ladd
-
Yves de Champlain