[fossil-users] Segfaults on Solaris when serving a directory

2011-02-21 Thread Petr Man
Hello,
I have been successfully using Fossil on SunOS 5.10/sparc for over six
months. I wanted to set up a permanent cgi server this morning, but I
am getting core dumps when I try to serve a directory with fossil
files. With a separate cgi script for each repo, everything works
flawlessly. I would like to debug the problem, but unfortunately I
don't have a debugger on the machine. Is anyone able to help?
Petr
___
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] Segfaults on Solaris when serving a directory

2011-02-21 Thread Mark Janssen
On Mon, Feb 21, 2011 at 11:21 AM, Petr Man p...@madnetwork.org wrote:
 Hello,
 I have been successfully using Fossil on SunOS 5.10/sparc for over six
 months. I wanted to set up a permanent cgi server this morning, but I
 am getting core dumps when I try to serve a directory with fossil
 files. With a separate cgi script for each repo, everything works
 flawlessly. I would like to debug the problem, but unfortunately I
 don't have a debugger on the machine. Is anyone able to help?
 Petr
 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Do the fossil repos have the extension .fossil? If not then you will
get a segfault.

Regards,
Mark
___
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] Segfaults on Solaris when serving a directory

2011-02-21 Thread Petr Man
On Mon, Feb 21, 2011 at 11:34, Mark Janssen mpc.jans...@gmail.com wrote:
 Do the fossil repos have the extension .fossil? If not then you will
 get a segfault.

Hello Mark,
the repos have .fossil extension. I have just tried on my Linux laptop
and I am experiencing the same issue.
My setup looks exactly as the wiki page says. I am running [6502627a3e].
Petr
___
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] Segfaults on Solaris when serving a directory

2011-02-21 Thread Richard Hipp
On Mon, Feb 21, 2011 at 5:50 AM, Petr Man p...@madnetwork.org wrote:

 On Mon, Feb 21, 2011 at 11:34, Mark Janssen mpc.jans...@gmail.com wrote:
  Do the fossil repos have the extension .fossil? If not then you will
  get a segfault.

 Hello Mark,
 the repos have .fossil extension. I have just tried on my Linux laptop
 and I am experiencing the same issue.


Please run it in a debugger and let me know where the segfault is occurring.



 My setup looks exactly as the wiki page says. I am running [6502627a3e].
 Petr
 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users




-- 
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


Re: [fossil-users] Segfaults on Solaris when serving a directory

2011-02-21 Thread Petr Man
On Mon, Feb 21, 2011 at 07:29:35AM -0500, Richard Hipp wrote:
 Please run it in a debugger and let me know where the segfault is occurring.
 

Program terminated with signal 11, Segmentation fault.
#0  0x004207aa in process_one_web_page (zNotFound=0x0) at 
./bld/main_.c:896
896 while( zPathInfo[i]  zPathInfo[i]!='/' ){ i++; }

-- 
My GnuPG key is at http://petr.madnetwork.org/home/contact/pubkey.asc
Key fingerprint = 0F04 503F EF79 2B8D B63C  00B4 AD2F 0594 FAA5 0053


pgpzgefPGXptX.pgp
Description: PGP signature
___
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] Segfaults on Solaris when serving a directory

2011-02-21 Thread Petr Man
On Mon, Feb 21, 2011 at 02:00:28PM +0100, Mark Janssen wrote:
 
 I really does look like your fossil files are not found. I had exactly
 the same crash when my files were called *.fsl. Are the fossil files
 readable by the process running the CGI? Try by making the files and
 containing directory world rw.

I have tripple checked everything, the files have .fossil extension, they are
in very ordinary path and the cgi is running under the same user that owns the
files. In any case, it should not segfault.

-- 
My GnuPG key is at http://petr.madnetwork.org/home/contact/pubkey.asc
Key fingerprint = 0F04 503F EF79 2B8D B63C  00B4 AD2F 0594 FAA5 0053


pgpI1cfQrqe45.pgp
Description: PGP signature
___
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] Segfaults on Solaris when serving a directory

2011-02-21 Thread Richard Hipp
On Mon, Feb 21, 2011 at 7:46 AM, Petr Man p...@madnetwork.org wrote:

 On Mon, Feb 21, 2011 at 07:29:35AM -0500, Richard Hipp wrote:
  Please run it in a debugger and let me know where the segfault is
 occurring.
 

 Program terminated with signal 11, Segmentation fault.
 #0  0x004207aa in process_one_web_page (zNotFound=0x0) at
 ./bld/main_.c:896
 896 while( zPathInfo[i]  zPathInfo[i]!='/' ){ i++; }


Is zPathInfo NULL?  (That would mean that your web server is not setting the
PATH_INFO environment variable.  It is unclear what Fossil ought to do in
that case - print an error message screen of some kind, I suppose.)





 --
 My GnuPG key is at http://petr.madnetwork.org/home/contact/pubkey.asc
 Key fingerprint = 0F04 503F EF79 2B8D B63C  00B4 AD2F 0594 FAA5 0053

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




-- 
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