[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Commit Problem

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2005-03-09 15:09:04 CET

bob bazo wrote:
> Garrett,
>
> I used DDD to debug the program and I saw that it was dying in the
> client function but I did not have the debug libraries and so I could
> not step into the client function.
>
> I have no experience debugging the Subversion API and so how do you go
> about getting debug libraries. Where is the option that needs to be set
> in order to get debug libraries?
>
> Once I get these debug versions up and running, I'll be able to step
> through it and see where exactly in the client function the segmentation
> fault is hapenning.

(CCing dev list again, so others can benefit from whatever we come up with)

If you could recompile Subversion with the --enable-maintainer-mode flag
passed to configure that would turn on debugging symbols, then relink
your program, and you should be able to get a backtrace. I'm not sure
how to do it in DDD, but in gdb just do something like...

$ gdb ./my-program
# gdb prints some stuff...
(gdb) run <command line args>
# your program runs, and crashes
(gdb) where
$ should print out the backtrace

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Mar 9 15:10:28 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.