Unable to browse Public repo
Dejan Tolj
dejan1 at gmail.com
Mon Jun 20 21:12:48 CEST 2011
$ git show
commit 508c91c5475935d10832bc3cfc59fea0cd0590b6
Author: root <root at WEB01.x.local>
Date: Mon Jun 20 14:56:44 2011 -0400
first commit
diff --git a/hi.c b/hi.c
new file mode 100644
index 0000000..3b18e51
--- /dev/null
+++ b/hi.c
@@ -0,0 +1 @@
+hello world
I don't see cgit.cgi anywhere!
$ PATH_INFO=proj1 /var/www/cgi-bin/cgit
returns Segmentation fault
Here is the strace dump.
[root at WEB01]~/projects/proj/.git $ cat strace.log
execve("/var/www/cgi-bin/cgit", ["/var/www/cgi-bin/cgit"], [/* 26 vars */]) = 0
brk(0) = 0x99a1000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=58064, ...}) = 0
mmap2(NULL, 58064, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fa6000
close(3) = 0
open("/usr/lib/libz.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\246\233\0004\0\0\0"...,
512) = 512
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7fa5000
fstat64(3, {st_mode=S_IFREG|0755, st_size=75284, ...}) = 0
mmap2(0x9b9000, 76656, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0x9b9000
mmap2(0x9cb000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11) = 0x9cb000
close(3) = 0
open("/lib/libpthread.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P(\232\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=137908, ...}) = 0
mmap2(0x99e000, 98788, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0x99e000
mmap2(0x9b3000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15) = 0x9b3000
mmap2(0x9b5000, 4580, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x9b5000
close(3) = 0
open("/lib/libcrypto.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\205\273\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1296964, ...}) = 0
mmap2(0xb85000, 1312992, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb85000
mmap2(0xcaf000, 77824, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x129) = 0xcaf000
mmap2(0xcc2000, 14560, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xcc2000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
[15:10:41]
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340o\202\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1693812, ...}) = 0
mmap2(0x811000, 1410500, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x811000
mmap2(0x964000, 12288, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x153) = 0x964000
mmap2(0x967000, 9668, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x967000
close(3) = 0
open("/lib/libdl.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\312\226\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=20668, ...}) = 0
mmap2(0x96c000, 16504, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0x96c000
mmap2(0x96f000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0x96f000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7fa4000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7fa3000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7fa36c0,
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0x96f000, 4096, PROT_READ) = 0
mprotect(0x964000, 8192, PROT_READ) = 0
mprotect(0x9b3000, 4096, PROT_READ) = 0
mprotect(0x80d000, 4096, PROT_READ) = 0
munmap(0xb7fa6000, 58064) = 0
set_tid_address(0xb7fa3708) = 14539
set_robust_list(0xb7fa3710, 0xc) = 0
futex(0xbf877714, FUTEX_WAKE_PRIVATE, 1) = 0
rt_sigaction(SIGRTMIN, {0x9a23e0, [], SA_SIGINFO}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x9a22e0, [], SA_RESTART|SA_SIGINFO}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=10240*1024, rlim_max=RLIM_INFINITY}) = 0
uname({sys="Linux", node="WEB01.x.local", ...}) = 0
brk(0) = 0x99a1000
brk(0x99c2000) = 0x99c2000
time(NULL) = 1308596639
open("/etc/cgitrc", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2058, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7fb4000
read(3, "#\n# See cgitrc(5) or /usr/share/"..., 4096) = 2058
read(3, "", 4096) = 0
close(3) = 0
munmap(0xb7fb4000, 4096) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
On Mon, Jun 20, 2011 at 2:44 PM, Lars Hjemli <hjemli at gmail.com> wrote:
> On Mon, Jun 20, 2011 at 20:31, Dejan Tolj <dejan1 at gmail.com> wrote:
>> What is the correct expression for repo.path?
>> Is this the correct one: repo.path=/root/projects/proj/.git
>> It contains the HEAD and other git configs.
>
> That seems right: repo.path should be the absolute path to the git
> directory, i.e. the directory containing HEAD, the objects dir etc.
>
> To verify that the repo is ok, do the following:
>
> $ cd /root/projects/proj/.git && git show
>
> You can then try running cgit from the commandline like this:
>
> $ PATH_INFO=proj1 /path/to/cgit.cgi | less
>
> If the generated html still claims that /root/projects/proj/.git is
> not a git repository, try
>
> $ PATH_INFO=proj1 strace /path/to/cgit.cgi 1>/dev/null 2>strace.log
>
> Then look into strace.log and see if you can find any interesting errors.
>
> --
> larsh
>
More information about the CGit
mailing list