On 4/6/2011 5:29 PM, Nicholas Ilyin wrote:
Hi everyone,

just set up trac 0.12.2 over sqlite on my Fedora box and trac is working fine through the web browser and command line. My issue is with implementing svn hooks where the post-commit hook dies on a segmentation fault when running this command:

|/usr/bin/trac-admin /var/trac/myproject changeset added "$1" "$2"|

...

I did some basic checking with regards to the user running this command which is |apache|. I also tried running this command as |apache| to see if it would fail, but this works just find from the command line:

|sudo -u apache /usr/bin/trac-admin /var/trac/ujaweb changeset added /path/to/svn/repo 750|

...

Any help would be greatly appreciated!!



For getting more details about the segfault itself, running the process under gdb is the way to go. The main problem in your case will be to reproduce exactly the same environment as the one set up by the hook, so that the crash becomes reproducible. A simple sudo -u is apparently not enough, I think you also have to start with an empty environment. As the apache user, do: `env - /usr/bin/trac-admin ...`). If this "works" (i.e. you can reproduce the crash), then redo it with gdb:

  env - /usr/bin/gdb /usr/bin/python
gdb> run /usr/bin/trac-admin /var/trac/ujaweb changeset added /path/to/svn/repo 750
  ... (crash!)
  gdb> bt
  ...
  gdb> info shared
  ...

-- Christian

--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Reply via email to