From: Biswapesh C. <bis...@tc...> - 2003-04-03 07:11:40
|
Hi I was thinking of writing a GTK+ GUI on top of valgrind (mainly for the addrcheck skin for now) and integrating it with Anjuta. So, my questions are: 1. What is the recommended method for writing a GUI on top of valgrind ? Should I just fork()/exec() the process and parse the output Or, is it possible to use valgrind as a loadable library in some way ? 2. I'm having some problems while running large GTK+ programs (e.g. anjuta). For example, anjuta crashes on startup unless you pass the '--no-splash' flag. Then, some gconf errors occur only when running through valgrind. Are these known issues, and are they on the way to getting solved ? FWIW, I'm using RH 8.0 with GNOME 2.2 CVS. Thanks in advance. -- Biswa. |
From: Jeffrey S. <fe...@xi...> - 2003-04-03 18:47:19
|
I've actually already started working on a valgrind frontend for Gtk. http://primates.ximian.com/~fejj/alleyoop-0.1.tar.gz I don't think that's the latest sources, but it should be close enough for you to get a feel for what I am doing. On Thu, 2003-04-03 at 02:16, Biswapesh Chattopadhyay wrote: > Hi > > I was thinking of writing a GTK+ GUI on top of valgrind (mainly for the > addrcheck skin for now) and integrating it with Anjuta. So, my questions > are: > > 1. What is the recommended method for writing a GUI on top of valgrind ? > Should I just fork()/exec() the process and parse the output this is how I did it :-) however... speaking of front-ends for valgrind - would it be possible for the valgrind developers to add a switch such as --full-src-path or some such that would give the full path name for the src file in the error log output? currently it only gives the basename of the src file containing the brokeness. I've taken a look at adding this myself (to 1.0.4) but got lost in the valgrind sources for parsing ELF (symtab2.c or some such if I recall correctly). from my limited understanding of ELF (mostly from playing with libbfd), the debugging symbols which would give what I want (full src path) lies within the "text" section - but it appears that is not what valgrind uses (probably for a good reason, just that I don't know what that reason is). the other path I was thinking of following was to use bfd myself, but that means that I would have to figure out which .so each address was in. it also means (logically) that I would have to open each of the dependency .so's in libbfd so that I could extract the debugging symbols I needed. kinda yuck, but ya gotta do what ya gotta do I guess :-) > Or, is it > possible to use valgrind as a loadable library in some way ? not that I know of. > > 2. I'm having some problems while running large GTK+ programs (e.g. > anjuta). For example, anjuta crashes on startup unless you pass the > '--no-splash' flag. Then, some gconf errors occur only when running > through valgrind. Are these known issues, and are they on the way to > getting solved ? are you using --alignment=8 ? I had to do this when valgrinding evolution. Jeff > > FWIW, I'm using RH 8.0 with GNOME 2.2 CVS. > > Thanks in advance. -- Jeffrey Stedfast Evolution Hacker - Ximian, Inc. fe...@xi... - www.ximian.com |
From: Biswapesh C. <bis...@tc...> - 2003-04-04 04:10:11
|
On Fri, 2003-04-04 at 00:14, Jeffrey Stedfast wrote: > I've actually already started working on a valgrind frontend for Gtk. > > http://primates.ximian.com/~fejj/alleyoop-0.1.tar.gz > > I don't think that's the latest sources, but it should be close enough > for you to get a feel for what I am doing. Cool ! Thanks for the pointer. That's almost exactly what I was looking for. > -- > Biswa. > |
From: Julian S. <js...@ac...> - 2003-04-04 07:57:17
|
You're aware of valgui and gnogrind, both of which are GUI projects for V, yes? I think they are both at sourceforge. J On Friday 04 April 2003 4:16 am, Biswapesh Chattopadhyay wrote: > On Fri, 2003-04-04 at 00:14, Jeffrey Stedfast wrote: > > I've actually already started working on a valgrind frontend for Gtk. > > > > http://primates.ximian.com/~fejj/alleyoop-0.1.tar.gz > > > > I don't think that's the latest sources, but it should be close enough > > for you to get a feel for what I am doing. > > Cool ! Thanks for the pointer. That's almost exactly what I was looking > for. > > > -- > > Biswa. > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users |
From: Jeffrey S. <fe...@xi...> - 2003-04-04 17:42:47
|
nah, was not aware of them. thanks for the pointer. Jeff On Fri, 2003-04-04 at 03:05, Julian Seward wrote: > You're aware of valgui and gnogrind, both of which are GUI > projects for V, yes? I think they are both at sourceforge. > > J > > On Friday 04 April 2003 4:16 am, Biswapesh Chattopadhyay wrote: > > On Fri, 2003-04-04 at 00:14, Jeffrey Stedfast wrote: > > > I've actually already started working on a valgrind frontend for Gtk. > > > > > > http://primates.ximian.com/~fejj/alleyoop-0.1.tar.gz > > > > > > I don't think that's the latest sources, but it should be close enough > > > for you to get a feel for what I am doing. > > > > Cool ! Thanks for the pointer. That's almost exactly what I was looking > > for. > > > > > -- > > > Biswa. > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: ValueWeb: > > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > > No other company gives more support or power for your dedicated server > > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > > _______________________________________________ > > Valgrind-users mailing list > > Val...@li... > > https://lists.sourceforge.net/lists/listinfo/valgrind-users -- Jeffrey Stedfast Evolution Hacker - Ximian, Inc. fe...@xi... - www.ximian.com |