You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Patrick Schoenbach <ps...@gmx.de> on 2006/03/13 02:10:12 UTC

SIGSEGV when using "svn blame" over http

Hi,

I am using apache 2.0.55 and svn 1.3.0. When trying to execute "svn
blame", apache SIGSEGVs.

Debugging has shown the following:

pc01:~ # gdb --args /usr/sbin/httpd2 -X
GNU gdb 6.3
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 "i586-suse-linux"...Using host libthread_db
library "/lib/tls/libthread_db.so.1".

(gdb) r
Starting program: /usr/sbin/httpd2 -X
[Thread debugging using libthread_db enabled]
[New Thread -1211386176 (LWP 3351)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1211386176 (LWP 3351)]
apr_palloc (pool=0x85526ae, size=24) at apr_pools.c:609
609         if (size < (apr_size_t)(active->endp - active->first_avail)) {
(gdb)

Best regards,
Patrick

-- 
e-mail: pschoenb@gmx.de
GnuPG Public Key: Mail to gnupg@robustsoft.de with subject 'pschoenb'.
Fingerprint: BE80 0E7E B68E CE99 623C  902D 62A6 806A 0B7D DE39

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: SIGSEGV when using "svn blame" over http

Posted by Daniel Rall <dl...@collab.net>.
On Mon, 13 Mar 2006, Patrick Schoenbach wrote:

> I am using apache 2.0.55 and svn 1.3.0. When trying to execute "svn
> blame", apache SIGSEGVs.
...

> On 13.03.2006 17:03, Justin Erenkrantz wrote:
> >> #3  0xb7638a2b in dav_svn__file_revs_report (resource=0x8575de8,
> >>     doc=0x8575b68, output=0x8571890)
> >>     at /usr/src/subversion-1.1.0-rc2/subversion/mod_dav_svn/file_revs.c:267
> > 
> > Um.  That doesn't match what you said.  Do you have a mixed/corrupt
> > install?  -- justin
> 
> Does not look like it. How do I check that?


As Justin and Malcolm pointed out, it looks like you're using
1.1.0-rc2 libraries.  Are you sure you're invoking a 1.3.0 binary?  If
you are, it's apparently picking up the wrong Subversion libraries --
you can strace the command to your svn binary to see it in action as
its open()'ing the libraries.

Check your LD_LIBRAR_PATH, /etc/ld.so.conf, and /etc/ld.so.conf.d/* to
correct library load order (or just remove the old 1.1.0-rc2 libs).
-- 

Daniel Rall

Re: SIGSEGV when using "svn blame" over http

Posted by Patrick Schoenbach <ps...@gmx.de>.
On 13.03.2006 17:03, Justin Erenkrantz wrote:
>> #3  0xb7638a2b in dav_svn__file_revs_report (resource=0x8575de8,
>>     doc=0x8575b68, output=0x8571890)
>>     at /usr/src/subversion-1.1.0-rc2/subversion/mod_dav_svn/file_revs.c:267
> 
> Um.  That doesn't match what you said.  Do you have a mixed/corrupt
> install?  -- justin

Does not look like it. How do I check that?

Regards,
Patrick

-- 
e-mail: pschoenb@gmx.de
GnuPG Public Key: Mail to gnupg@robustsoft.de with subject 'pschoenb'.
Fingerprint: BE80 0E7E B68E CE99 623C  902D 62A6 806A 0B7D DE39

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: SIGSEGV when using "svn blame" over http

Posted by Justin Erenkrantz <ju...@erenkrantz.com>.
On 3/13/06, Patrick Schoenbach <ps...@gmx.de> wrote:
> On 13.03.2006 03:10, Patrick Schoenbach wrote:
> > I am using apache 2.0.55 and svn 1.3.0. When trying to execute "svn
> > blame", apache SIGSEGVs.
...
> #3  0xb7638a2b in dav_svn__file_revs_report (resource=0x8575de8,
>     doc=0x8575b68, output=0x8571890)
>     at /usr/src/subversion-1.1.0-rc2/subversion/mod_dav_svn/file_revs.c:267

Um.  That doesn't match what you said.  Do you have a mixed/corrupt
install?  -- justin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org


Re: SIGSEGV when using "svn blame" over http

Posted by Malcolm Rowe <ma...@farside.org.uk>.
On Tue, Mar 14, 2006 at 04:18:46PM +0100, Patrick Schoenbach wrote:
> I just tried the same with 1.3.1, and the problem remains.
> 

You said originally that you were using 1.3.0, but this:

> >>     at /usr/src/subversion-1.1.0-rc2/subversion/mod_dav_svn/file_revs.c:267

(from your backtrace) clearly isn't from a subversion 1.3.0 release
(unless you deliberately compiled it from source located in a confusing
location).

Could it be that you're picking up an old version of mod_dav_svn from
somewhere?

Regards,
Malcolm

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: SIGSEGV when using "svn blame" over http

Posted by Patrick Schoenbach <ps...@gmx.de>.
On 13.03.2006 21:54, Patrick Schoenbach wrote:
> On 13.03.2006 16:28, Patrick Schoenbach wrote:
>> Program received signal SIGSEGV, Segmentation fault.
>> [Switching to Thread -1211660608 (LWP 5764)]
>> apr_palloc (pool=0x8571b66, size=24) at apr_pools.c:609
>> 609         if (size < (apr_size_t)(active->endp - active->first_avail)) {
>> (gdb) bt
>> #0  apr_palloc (pool=0x8571b66, size=24) at apr_pools.c:609
>> #1  0xb7e34890 in apr_array_make (p=0x8571b66, nelts=0, elt_size=4)
>>     at apr_tables.c:85
>> #2  0xb7525f4f in svn_repos_get_file_revs (repos=0x84feaa0,
>>     path=0x854c858 "/foo", start=0, end=1,
>>     authz_read_func=0xb7638cf0 <file_rev_handler>,
>>     authz_read_baton=0xbfda5be0, handler=0x8570a60, handler_baton=0x0,
>>     pool=0x8571b66) at rev_hunt.c:582
>> #3  0xb7638a2b in dav_svn__file_revs_report (resource=0x8575de8,
>>     doc=0x8575b68, output=0x8571890)
>>     at /usr/src/subversion-1.1.0-rc2/subversion/mod_dav_svn/file_revs.c:267
>> #4  0xb76412e5 in dav_svn_deliver_report (r=0x8570a98, resource=0x8575de8,
>>     doc=0x8575b68, output=0x8571890)
>>     at /usr/src/subversion-1.1.0-rc2/subversion/mod_dav_svn/version.c:1047
>> #5  0xb7c29654 in dav_run_gather_propsets ()
>>    from /usr/lib/apache2-prefork/mod_dav.so
>> #6  0xb7c2aacd in dav_run_gather_propsets ()
>>    from /usr/lib/apache2-prefork/mod_dav.so
>> #7  0x08067f36 in ap_run_handler (r=0xb7646420) at config.c:152
>> #8  0x08068304 in ap_invoke_handler (r=0x8570a98) at config.c:364
>> #9  0x0806591d in ap_process_request (r=0x8570a98) at http_request.c:249
>> #10 0x08060ee9 in ap_process_http_connection (c=0x84fe208) at
>> http_core.c:251
>> #11 0x08070d66 in ap_run_process_connection (c=0x84fe208) at connection.c:43
>> #12 0x0806664b in child_main (child_num_arg=<value optimized out>)
>>     at prefork.c:610
>> #13 0x080667fd in make_child (s=0x809fe88, slot=0) at prefork.c:650
>> #14 0x080668a6 in startup_children (number_to_start=5) at prefork.c:722
>> #15 0x08067083 in ap_mpm_run (_pconf=0x809e0a8, plog=0x80ca158, s=0x809fe88)
>>     at prefork.c:941
>> #16 0x0806c76c in main (argc=2, argv=0xbfda6164) at main.c:618
> 
> I tried a fresh install, same result. Is anyone able to reproduce this
> problem as well?

I just tried the same with 1.3.1, and the problem remains.

Best regards,
Patrick

-- 
e-mail: pschoenb@gmx.de
GnuPG Public Key: Mail to gnupg@robustsoft.de with subject 'pschoenb'.
Fingerprint: BE80 0E7E B68E CE99 623C  902D 62A6 806A 0B7D DE39

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: SIGSEGV when using "svn blame" over http

Posted by Patrick Schoenbach <ps...@gmx.de>.
Thanks Malcom,

I found the problem. Fixed it.

Best regards,
Patrick

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: SIGSEGV when using "svn blame" over http

Posted by Patrick Schoenbach <ps...@gmx.de>.
On 13.03.2006 16:28, Patrick Schoenbach wrote:
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread -1211660608 (LWP 5764)]
> apr_palloc (pool=0x8571b66, size=24) at apr_pools.c:609
> 609         if (size < (apr_size_t)(active->endp - active->first_avail)) {
> (gdb) bt
> #0  apr_palloc (pool=0x8571b66, size=24) at apr_pools.c:609
> #1  0xb7e34890 in apr_array_make (p=0x8571b66, nelts=0, elt_size=4)
>     at apr_tables.c:85
> #2  0xb7525f4f in svn_repos_get_file_revs (repos=0x84feaa0,
>     path=0x854c858 "/foo", start=0, end=1,
>     authz_read_func=0xb7638cf0 <file_rev_handler>,
>     authz_read_baton=0xbfda5be0, handler=0x8570a60, handler_baton=0x0,
>     pool=0x8571b66) at rev_hunt.c:582
> #3  0xb7638a2b in dav_svn__file_revs_report (resource=0x8575de8,
>     doc=0x8575b68, output=0x8571890)
>     at /usr/src/subversion-1.1.0-rc2/subversion/mod_dav_svn/file_revs.c:267
> #4  0xb76412e5 in dav_svn_deliver_report (r=0x8570a98, resource=0x8575de8,
>     doc=0x8575b68, output=0x8571890)
>     at /usr/src/subversion-1.1.0-rc2/subversion/mod_dav_svn/version.c:1047
> #5  0xb7c29654 in dav_run_gather_propsets ()
>    from /usr/lib/apache2-prefork/mod_dav.so
> #6  0xb7c2aacd in dav_run_gather_propsets ()
>    from /usr/lib/apache2-prefork/mod_dav.so
> #7  0x08067f36 in ap_run_handler (r=0xb7646420) at config.c:152
> #8  0x08068304 in ap_invoke_handler (r=0x8570a98) at config.c:364
> #9  0x0806591d in ap_process_request (r=0x8570a98) at http_request.c:249
> #10 0x08060ee9 in ap_process_http_connection (c=0x84fe208) at
> http_core.c:251
> #11 0x08070d66 in ap_run_process_connection (c=0x84fe208) at connection.c:43
> #12 0x0806664b in child_main (child_num_arg=<value optimized out>)
>     at prefork.c:610
> #13 0x080667fd in make_child (s=0x809fe88, slot=0) at prefork.c:650
> #14 0x080668a6 in startup_children (number_to_start=5) at prefork.c:722
> #15 0x08067083 in ap_mpm_run (_pconf=0x809e0a8, plog=0x80ca158, s=0x809fe88)
>     at prefork.c:941
> #16 0x0806c76c in main (argc=2, argv=0xbfda6164) at main.c:618

I tried a fresh install, same result. Is anyone able to reproduce this
problem as well?

Best regards,
Patrick

-- 
e-mail: pschoenb@gmx.de
GnuPG Public Key: Mail to gnupg@robustsoft.de with subject 'pschoenb'.
Fingerprint: BE80 0E7E B68E CE99 623C  902D 62A6 806A 0B7D DE39

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: SIGSEGV when using "svn blame" over http

Posted by Patrick Schoenbach <ps...@gmx.de>.
On 13.03.2006 03:10, Patrick Schoenbach wrote:
> I am using apache 2.0.55 and svn 1.3.0. When trying to execute "svn
> blame", apache SIGSEGVs.

Sorry, I should have sent the whole backtrace:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1211660608 (LWP 5764)]
apr_palloc (pool=0x8571b66, size=24) at apr_pools.c:609
609         if (size < (apr_size_t)(active->endp - active->first_avail)) {
(gdb) bt
#0  apr_palloc (pool=0x8571b66, size=24) at apr_pools.c:609
#1  0xb7e34890 in apr_array_make (p=0x8571b66, nelts=0, elt_size=4)
    at apr_tables.c:85
#2  0xb7525f4f in svn_repos_get_file_revs (repos=0x84feaa0,
    path=0x854c858 "/foo", start=0, end=1,
    authz_read_func=0xb7638cf0 <file_rev_handler>,
    authz_read_baton=0xbfda5be0, handler=0x8570a60, handler_baton=0x0,
    pool=0x8571b66) at rev_hunt.c:582
#3  0xb7638a2b in dav_svn__file_revs_report (resource=0x8575de8,
    doc=0x8575b68, output=0x8571890)
    at /usr/src/subversion-1.1.0-rc2/subversion/mod_dav_svn/file_revs.c:267
#4  0xb76412e5 in dav_svn_deliver_report (r=0x8570a98, resource=0x8575de8,
    doc=0x8575b68, output=0x8571890)
    at /usr/src/subversion-1.1.0-rc2/subversion/mod_dav_svn/version.c:1047
#5  0xb7c29654 in dav_run_gather_propsets ()
   from /usr/lib/apache2-prefork/mod_dav.so
#6  0xb7c2aacd in dav_run_gather_propsets ()
   from /usr/lib/apache2-prefork/mod_dav.so
#7  0x08067f36 in ap_run_handler (r=0xb7646420) at config.c:152
#8  0x08068304 in ap_invoke_handler (r=0x8570a98) at config.c:364
#9  0x0806591d in ap_process_request (r=0x8570a98) at http_request.c:249
#10 0x08060ee9 in ap_process_http_connection (c=0x84fe208) at
http_core.c:251
#11 0x08070d66 in ap_run_process_connection (c=0x84fe208) at connection.c:43
#12 0x0806664b in child_main (child_num_arg=<value optimized out>)
    at prefork.c:610
#13 0x080667fd in make_child (s=0x809fe88, slot=0) at prefork.c:650
#14 0x080668a6 in startup_children (number_to_start=5) at prefork.c:722
#15 0x08067083 in ap_mpm_run (_pconf=0x809e0a8, plog=0x80ca158, s=0x809fe88)
    at prefork.c:941
#16 0x0806c76c in main (argc=2, argv=0xbfda6164) at main.c:618

Best regards,
Patrick

-- 
e-mail: pschoenb@gmx.de
GnuPG Public Key: Mail to gnupg@robustsoft.de with subject 'pschoenb'.
Fingerprint: BE80 0E7E B68E CE99 623C  902D 62A6 806A 0B7D DE39

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org