Re: Re: CGIT 0.8.3.1 "chokes" on some bare repos

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 3, 2010 at 2:47 PM, Lars Hjemli <hjemli@xxxxxxxxx> wrote:
> On Tue, Aug 3, 2010 at 20:19, Eugene Sajine <euguess@xxxxxxxxx> wrote:
>> I have disabled cache: i have nocache=1 (we are working without cache
>> yet,  cache-size set to 0, but for the experiment i commented this
>> out)
>
> Good
>
>> We are using scan mode as we have central folder to store our repos.
>> So I switched off the scanmode by commenting the scan-url out from
>> cgitrc
>
> Then you'll have to add the repo.* settings to cgitrc by hand, or else...
>
>> Now when i'm trying to generate the html for the repo in question i
>> get html where it says "no repositories found".
>
> This is expected.
>
>
>> The command is like this:
>> $ PATH_INFO=/home/users/gitrepouser/repos/subfolder/repo.git
>> ./cgit.cgi 1>cgit.html 2>cgit.log
>
> Add this to your cgitrc:
>
> repo.url=foo
> repo.path=/home/users/gitrepouser/repos/subfolder/repo.git
>
> Then run `PATH_INFO=foo ./cgit.cgi 1>cgit.html 2>cgit.log`
>
> --
> larsh
>

Touchdown!;)

It segfaults:

GNU gdb Red Hat Linux (6.3.0.0-1.159.el4rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host
libthread_db library "/lib/tls/libthread_db.so.1".

Core was generated by `./cgit.cgi'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/libcrypto.so.4...done.
Loaded symbols for /lib/libcrypto.so.4
Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /usr/lib/libgssapi_krb5.so.2...done.
Loaded symbols for /usr/lib/libgssapi_krb5.so.2
Reading symbols from /usr/lib/libkrb5.so.3...done.
Loaded symbols for /usr/lib/libkrb5.so.3
Reading symbols from /lib/libcom_err.so.2...done.
Loaded symbols for /lib/libcom_err.so.2
Reading symbols from /usr/lib/libk5crypto.so.3...done.
Loaded symbols for /usr/lib/libk5crypto.so.3
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
#0  0x080538fa in cmp_tag_age (a=0x8bcc760, b=0x8bcc764) at ui-refs.c:52
52      ui-refs.c: No such file or directory.
        in ui-refs.c
(gdb) where
#0  0x080538fa in cmp_tag_age (a=0x8bcc760, b=0x8bcc764) at ui-refs.c:52
#1  0x0040eb45 in msort_with_tmp () from /lib/tls/libc.so.6
#2  0x0040ea1d in msort_with_tmp () from /lib/tls/libc.so.6
#3  0x0040ea1d in msort_with_tmp () from /lib/tls/libc.so.6
#4  0x0040ea1d in msort_with_tmp () from /lib/tls/libc.so.6
#5  0x0040ea1d in msort_with_tmp () from /lib/tls/libc.so.6
#6  0x0040ecdc in qsort () from /lib/tls/libc.so.6
#7  0x08053f8b in cgit_print_tags (maxcount=10) at ui-refs.c:217
#8  0x08058189 in cgit_print_summary () at ui-summary.c:56
#9  0x0804da70 in summary_fn (ctx=0x80e44a0) at cmd.c:119
#10 0x0804cc6d in process_request (cbdata=0x80e44a0) at cgit.c:431
#11 0x0804ae31 in cache_process (size=0, path=0x80a2e24
"../cgit/cache", key=0x8ba6028 "foo", ttl=5, fn=0x804cb28
<process_request>, cbdata=0x80e44a0) at cache.c:322
#12 0x0804d81e in main (argc=1, argv=0xbfffa2b4) at cgit.c:712

Thanks,
Eugene
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]