On Thu, Jun 7, 2012 at 6:46 AM, Lluís Batlle i Rossell <[email protected]>wrote:

> On Thu, Jun 07, 2012 at 06:36:23AM -0400, Richard Hipp wrote:
> > On Thu, Jun 7, 2012 at 3:51 AM, Christopher Vance <[email protected]
> >wrote:
> >
> > > Firefox gave the message I quoted.
> > > Chrome said that the server returned no data.
> > > Safari just shows an empty page.
> > > Telnet to the relevant port returns no data.
> > >
> >
> > Ok.  Good clue.
> >
> > It appears that the Fossil binary is segfaulting while it is trying to
> > generate the page.  What version of Fossil are you running?  Have you
> tried
> > updating to the tip of trunk?
>
> As of debugging this, you (Christopher) can look at the PID of the fossil
> server, attach to it with gdb (gdb fossil PID), then run "set
> follow-fork-mode
> child", and tell gdb "contiue". Then try to visit the page, and gdb should
> stop
> at the segfaulting point.
>

Not that easy, unfortunately.  Fossil starts a new instance of itself to
handle each incoming page request, leaving the debugger looking at the
original instance, which is not the one that is crashing.

The way to debug this is:

(1) Start your debugger
(2) Invoke fossil with a single argument "test-http"
(3) Manually type in an HTTP header.  This can be minimal:  "GET
/timeline".  You'll need to press enter twice to signal the end-of-header.

With any luck, you'll hit the segfault that way.  But sometimes, the
problem is due to a specific login or user permission, in which case a more
elaborate HTTP request has to be entered.



>
> It would be better if you can do that with the trunk fossil, built with
> debug
> info, without optimisations, and having the source code available.
>
> Regards,
> Lluís.
> _______________________________________________
> fossil-users mailing list
> [email protected]
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>



-- 
D. Richard Hipp
[email protected]
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to