You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Oliver Brakmann <ob...@gmx.net> on 2004/09/14 18:33:45 UTC

svnlook diff segfaults

Hi,

I have a project hosted on berlios.de using SVN. It worked just fine
until yesterday, when we noticed that "svnlook diff /path/to/repos -r
xx" segfaults without producing any output at all. It still worked fine
on revision 86, and doesn't from revision 87 onwards. Now it doesn't
work on any revision at all anymore.

Other svnlook commands (info, tree etc.) do work, though. I can also run
an update on my working copy just fine and using svn diff to create the
same diff that svnlook would return works just as well.

svnadmin recover doesn't help things, either, I tried that already. And
svnadmin verify returns "verified" for every single revision.  The only
thing I can see is that svnadmin lsxtns returns "2n" which doesn't
really help me much, but maybe it's a clue to some of you.

Anyway, if someone can point me to some way to find out what the problem
actually is, and perhaps how to solve it, I'd greatly appreciate it.

The OS is some kind of SuSE, but access to /etc/SuSE-release is not
permitted to non-root users :-/

Subversion is 
svn, version 1.0.6 (r10360)
   compiled Aug  4 2004, 12:53:12

Holler if you need any more information.

Thanks in advance,
Oliver
-- 
It's practically impossible to look at a   /\   #198843 @ http://counter.li.org
penguin and feel angry.     -- Joe Moore   \/   http://www.linuxfromscratch.org

NP: Marillion - Goodbye to all that

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

Re: svnlook diff segfaults

Posted by Ricardo Niederberger Cabral <rn...@gmail.com>.
C. Michael Pilato <cmpilato <at> collab.net> writes:

> 
> Oliver Brakmann <obrakmann <at> gmx.net> writes:
> 
> > Anyway, if someone can point me to some way to find out what the
> > problem actually is, and perhaps how to solve it, I'd greatly
> > appreciate it.
> 
> A debugger, perhaps?  Or if you post a compressed dumpfile of your
> repository somewhere so someone else can try to reproduce it with your
> data set, that might help.
> 

I also host a project at Berlios and I'm having the same problem Oliver has 
("svnlook diff" segfaulting). But I managed to get a gdb trace.

The cause seems to be a strange error happening when removing a temporary 
directory (on a call to "svn_io_remove_dir"). 
 
$ gdb svnlook
(gdb) set args diff /svnroot/repos/chalks -r 51
(gdb) r
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 14218)]
0x4006298b in svn_io_remove_dir (path=0x8055fb0 "/tmp/svnlook.57",
pool=0x8055470) at subversion/libsvn_subr/io.c:1112
1112          if ((this_entry.filetype == APR_DIR)
(gdb) bt
#0  0x4006298b in svn_io_remove_dir (path=0x8055fb0 "/tmp/svnlook.57",
pool=0x8055470) at subversion/libsvn_subr/io.c:1112
#1  0x0804b9b2 in do_diff (c=0x80a9f08, pool=0x8055470) at subversion/svnlook/
main.c:1335
#2  0x0804c03f in subcommand_diff (os=0x80554a8, baton=0xbffff4b0,
pool=0x8055470) at subversion/svnlook/main.c:1634
#3  0x0804ca33 in main (argc=134567024, argv=0xbffff544) at subversion/svnlook/
main.c:2049
(gdb) p this_entry
$1 = {pool = 0x80b01e0, valid = 41152880, protection = 1877, filetype
= APR_DIR, user = 23052, group = 23052, inode = 220081,
  device = 8826157793280, nlink = 0, size = 3, csize = 72, atime = 0,
mtime = 6760885729200439296, ctime = 6739410892720694315,
  fname = 0x3e42b <Address 0x3e42b out of bounds>, name = 0x5d873280
"", filehand = 0x3e42b}
(gdb) p this_entry.filetype
$2 = APR_DIR
(gdb) The program is running.  Exit anyway? (y or n) y
 

NOTE: I don't subscribe this mailinglist/newsgroup so please CC. any follow-up 
to rnc000 at gmail dot com, and I could provide any further debugging info.

Thanks and best regards,

-- 
Ricardo Niederberger Cabral
(rnc000 at gmail dot com)


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

Re: svnlook diff segfaults

Posted by Oliver Brakmann <ob...@gmx.net>.
On Tue, 2004-09-14 23:16, Brakmann, Oliver wrote...
> Ok, it's at <ftp://ftp.berlios.de/pub/lfs-prometheus/svn_dump.bz2>
> 
> It's only 175kb compressed, about 2.2M uncompressed.

Alright. So I created a new repository and loaded the dump into it, and
svnlook diff still segfaults. I then created a dump of only the very
first two revisions, which of course svnlook previously operated just
fine on, and loaded it into yet another repository, and lo and behold,
svnlook segfaults again.

So, it is neither the data that causes the segfaults, nor is it the
database itself.

I have to admit I'm quite stumped now, and don't know where or what to
look out for anymore.

Thanks anyway for the help,
Oliver
-- 
It's practically impossible to look at a   /\   #198843 @ http://counter.li.org
penguin and feel angry.     -- Joe Moore   \/   http://www.linuxfromscratch.org

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

Re: svnlook diff segfaults

Posted by Oliver Brakmann <ob...@gmx.net>.
On Tue, 2004-09-14 13:40, C. Michael Pilato wrote...
> A debugger, perhaps?

...is not available at Berlios. At least gdb isn't.

> Or if you post a compressed dumpfile of your repository somewhere so
> someone else can try to reproduce it with your data set, that might
> help.

Ok, it's at <ftp://ftp.berlios.de/pub/lfs-prometheus/svn_dump.bz2>

It's only 175kb compressed, about 2.2M uncompressed.

Thanks again,
Oliver
-- 
It's practically impossible to look at a   /\   #198843 @ http://counter.li.org
penguin and feel angry.     -- Joe Moore   \/   http://www.linuxfromscratch.org

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

Re: svnlook diff segfaults

Posted by "C. Michael Pilato" <cm...@collab.net>.
Oliver Brakmann <ob...@gmx.net> writes:

> Anyway, if someone can point me to some way to find out what the
> problem actually is, and perhaps how to solve it, I'd greatly
> appreciate it.

A debugger, perhaps?  Or if you post a compressed dumpfile of your
repository somewhere so someone else can try to reproduce it with your
data set, that might help.

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