Re: [fossil-users] Version 1.33

2015-06-01 Thread Thomas Bilk
I also cannot access the /reports url. When I curl the address I get
an empty reply from the server. Does Fossil have some kind of error
log?
I am using the checkout [2b1261a59] with gcc 4.8.3 on OpenSuse.

On Thu, May 28, 2015 at 7:06 PM, Richard Hipp d...@sqlite.org wrote:
 On 5/28/15, Svyatoslav Mishyn j...@openmailbox.org wrote:
 (Wed, 27 May 14:03) Warren Young:
 On May 23, 2015, at 1:25 PM, Svyatoslav Mishyn j...@openmailbox.org
 wrote:
 
  /tmp: wget -S http://localhost:8080/reports
  --2015-05-23 21:42:12--  http://localhost:8080/reports
  Resolving localhost (localhost)... 127.0.0.1
  Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
  HTTP request sent, awaiting response... No data received.
  Retrying.

 That works here.

 Finally, I found why ;)
 It is just  CFLAGS=' -O2'.


 (and if it matters: Clang - 3.6.0; GCC - 4.8.4

 + if Clang:
 ./src/rss.c:99:40: warning: address of 'g.perm.Read' will always evaluate to
 'true' [-Wpointer-bool-conversion]
   assert( !g.perm.RdTkt  g.perm.Read  g.perm.RdWiki );

 Three  characters instead of two.  Fixed in the latest check-in.

 ~~  ~~~^~~~
 /usr/include/assert.h:86:5: note: expanded from macro 'assert'
   ((expr)   \
 ^
 1 warning generated.


 and of course much more warnings with CFLAGS=' -ansi -pedantic -Wall
 -Wextra'
 )


 Should I add `unset CFLAGS` to  Pkgfile?


___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Version 1.33 - /reports failing

2015-06-01 Thread John P. Rouillard

Jooks like this never made it to the list when it was sent on May 28th.

In message 20150528165652.GA2489@k8,
Svyatoslav Mishyn writes:

(Wed, 27 May 14:03) Warren Young:
 On May 23, 2015, at 1:25 PM, Svyatoslav Mishyn
 j...@openmailbox.org wrote:
  
  /tmp: wget -S http://localhost:8080/reports
  --2015-05-23 21:42:12--  http://localhost:8080/reports
  Resolving localhost (localhost)... 127.0.0.1
  Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
  HTTP request sent, awaiting response... No data received.
  Retrying.
 
 That works here.

It doesn't for me.

Finally, I found why ;)
It is just  CFLAGS=' -O2'.

I also have the /reports url crashing with no output. Recompiling
after changing the top level Makefile to remove -O2 from the TCCFLAGS
makes /reports work. The side effect is to turn off optimization which
isn't great.

This is on Linux mint 17.1 with

   gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) 
   GNU ld (GNU Binutils for Ubuntu) 2.24

Is there a way to run fossil under gdb in single shot mode where it
will listen at a port but not fork a child to handle the request. That
would make debugging this a lot easier rather than trying to chase
across a forking process.

  echo 'GET /fossil/reports HTTP/1.1' | fossil  http ~/fossil_repos/ | less

is the right idea, but

  echo 'GET /fossil/reports HTTP/1.1' | gdb fossil

sends the get to gdb and not to fossil so

Also is there any logging in fossil thatt I can enable to help debug
where things are actually going wrong?

--
-- rouilj
John Rouillard
===
My employers don't acknowledge my existence much less my opinions.
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Version 1.33 - /reports failing

2015-06-01 Thread Richard Hipp
On 6/1/15, John P. Rouillard rouilj+fos...@cs.umb.edu wrote:

 Jooks like this never made it to the list when it was sent on May 28th.


 Is there a way to run fossil under gdb in single shot mode where it
 will listen at a port but not fork a child to handle the request.

Yes.

Start in an open check-out for the repository that you want to serve.
(This is not strictly necessary, but it makes things a little easier.)
 Then do gdb fossil.  Then run test-http.  You will not be
prompted, but Fossil is waiting on an HTTP request.  Enter GET
/reports following pressing Enter twice.  Note that in test-http
mode, Fossil is forgiving of the HTTP request syntax and allows you to
omit the HTTP/1.0 at the en dof the first line, for example.

-- 
D. Richard Hipp
d...@sqlite.org
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users