Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 266534 - dev-util/git-1.6.0.6 crash on "svn clone" + GDB crash
Summary: dev-util/git-1.6.0.6 crash on "svn clone" + GDB crash
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-17 12:57 UTC by Jaak Ristioja
Modified: 2009-05-06 01:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaak Ristioja 2009-04-17 12:57:32 UTC
Running "git svn clone https://bibletime.svn.sourceforge.net/svnroot/bibletime/trunk/bibletime bibletime.git" ends with the following output:

r1154 = f307f0be4be72e34d4763050d5c116a1af46d16f (git-svn)
        M       i18n/messages/bibletime_ui_en_GB.ts
r1155 = 6f480f72f8d0edc1904b3993166f3ce496636928 (git-svn)
        M       src/backend/managers/clanguagemgr.cpp
r1156 = 32ee49cdaf787558dc851e58f76723da76487418 (git-svn)
Auto packing your repository for optimum performance. You may also
run "git gc" manually. See "git help gc" for more information.
Counting objects: 11758, done.
Compressing objects: 100% (11724/11724), done.
Writing objects: 100% (11758/11758), done.
Total 11758 (delta 9719), reused 0 (delta 0)
Checked out HEAD:
  https://bibletime.svn.sourceforge.net/svnroot/bibletime/trunk/bibletime r1156
Segmentation fault


In "dmesg", I find the following line:
git-svn[8703]: segfault at 7f474e254680 ip 00007f474e254680 sp 00007fff5b7cedb8 error 14 in _Delta.so[7f474e45f000+22000]

Re-running the command again without deleting the output directory results in the same crash and the following output:

Using existing [svn-remote "svn"]
error: More than one value for the key svn-remote.svn.fetch: :refs/remotes/git-svn
error: More than one value for the key svn-remote.svn.fetch: :refs/remotes/git-svn
config --get svn-remote.svn.fetch :refs/remotes/git-svn$: command returned error: 2

Segmentation fault

Trying to debug that command with gdb results in gdb also crashing. This is gdb backtrace of gdb crashing when debugging git:

Program received signal SIGSEGV, Segmentation fault.
0x00000000004654f7 in clear_lwpid_callback (thread=0x22a2640, dummy=0x0) at linux-thread-db.c:762
762       thread->private->th_valid = 0;                                                         
(gdb) bt                                                                                         
#0  0x00000000004654f7 in clear_lwpid_callback (thread=0x22a2640, dummy=0x0) at linux-thread-db.c:762
#1  0x00000000004e1503 in iterate_over_threads (callback=0x4654f0 <clear_lwpid_callback>, data=0x0) at thread.c:212
#2  0x0000000000467092 in thread_db_resume (ptid={pid = 26855, lwp = 26855, tid = 0}, step=1, signo=TARGET_SIGNAL_0) at linux-thread-db.c:779
#3  0x00000000004d919a in resume (step=1, sig=TARGET_SIGNAL_0) at infrun.c:651                                                               
#4  0x00000000004d9440 in keep_going (ecs=0x7fff3eb27050) at infrun.c:2975                                                                   
#5  0x00000000004da1c8 in handle_inferior_event (ecs=0x7fff3eb27050) at infrun.c:2228                                                        
#6  0x00000000004dbf5a in wait_for_inferior (treat_exec_as_sigtrap=0) at infrun.c:1042                                                       
#7  0x00000000004dc2a7 in proceed (addr=<value optimized out>, siggnal=TARGET_SIGNAL_0, step=0) at infrun.c:844                              
#8  0x00000000004d681e in run_command_1 (args=0x0, from_tty=1, tbreak_at_main=<value optimized out>) at infcmd.c:563
#9  0x000000000044a33a in execute_command (p=0x2283731 "", from_tty=1) at top.c:449
#10 0x00000000004e6f4a in command_handler (command=0x2283730 "") at event-top.c:518
#11 0x00000000004e7c6c in command_line_handler (rl=<value optimized out>) at event-top.c:804
#12 0x00007f0a366f4d27 in rl_callback_read_char () from /lib/libreadline.so.5
#13 0x00000000004e7129 in rl_callback_read_char_wrapper (client_data=0x22a2640) at event-top.c:177
#14 0x00000000004e5d3d in process_event () at event-loop.c:341
#15 0x00000000004e66f5 in gdb_do_one_event (data=<value optimized out>) at event-loop.c:378
#16 0x00000000004e3564 in catch_errors (func=0x4e64f0 <gdb_do_one_event>, func_args=0x0, errstring=0x63a6b0 "", mask=<value optimized out>) at exceptions.c:513
#17 0x000000000048e720 in tui_command_loop (data=<value optimized out>) at ../gdb/tui/tui-interp.c:153
#18 0x0000000000443d29 in captured_command_loop (data=0x22a2640) at ../gdb/main.c:99
---Type <return> to continue, or q <return> to quit---
#19 0x00000000004e3564 in catch_errors (func=0x443d20 <captured_command_loop>, func_args=0x0, errstring=0x63a6b0 "", mask=<value optimized out>)
    at exceptions.c:513
#20 0x0000000000443996 in captured_main (data=<value optimized out>) at ../gdb/main.c:882
#21 0x00000000004e3564 in catch_errors (func=0x442f70 <captured_main>, func_args=0x7fff3eb27750, errstring=0x63a6b0 "", mask=<value optimized out>)
    at exceptions.c:513
#22 0x0000000000442f64 in gdb_main (args=<value optimized out>) at ../gdb/main.c:891
#23 0x0000000000442f36 in main (argc=<value optimized out>, argv=0x0) at gdb.c:33
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2009-04-18 15:26:59 UTC
Please post your `emerge --info' too.
Comment 2 Jaak Ristioja 2009-04-18 15:35:26 UTC
Portage 2.1.6.7 (default/linux/amd64/2008.0/developer, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.29-gentoo-r1-arm x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r1-arm-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8700_@_2.53GHz-with-glibc2.2.5
Timestamp of tree: Fri, 17 Apr 2009 19:30:01 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.2-r7
dev-util/cmake:      2.6.3-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="-march=core2 -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect cvs distlocks fixpackages installsources multilib-strict parallel-fetch protect-owned sandbox sfperms sign splitdebug strict unmerge-orphans userfetch userpriv usersandbox usersync"
LANG="et_EE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en et de"
MAKEOPTS="-j3"
PORTAGE_CONFIGROOT="/"
USE="X acl acpi alsa amd64 apache2 aspell berkdb bindist bzip2 cairo cdr cli consolekit cracklib crypt cups dbus directfb djvu doc dri dvd dvdr dvdread eds emboss encode esd evo exif fam fbcon firefox flac fortran gdbm gif git glitz gmp gnokii gnutls gpm gstreamer gtk hal hdri htmlhandbook iconv icu idn ipv6 isdnlog jbig jpeg jpeg2k kde kdeprefix kontact kpathsea latex lcms libnotify lua lzma lzo mad mailwrapper md5sum midi mikmod mmx mng mp3 mp4 mpeg mudflap multilib mysql ncurses nptl nptlonly ogg opengl openmp pam pcre pdf perl phonon php pic plasma png postgres ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl semantic-desktop session snmp source spell spl sqlite sse sse2 ssl ssse3 startup-notification subversion svg sysfs tcpd threads tiff truetype ucs2 unicode usb vorbis webkit xcb xcomposite xetex xinerama xml xorg xprint xscreensaver xulrunner xv zlib" ELIBC="glibc" KERNEL="linux" LINGUAS="en et de" USERLAND="GNU"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-05-05 19:09:43 UTC
What options are your git and subversion built with?
Comment 4 Jaak Ristioja 2009-05-05 19:19:04 UTC
(In reply to comment #3)
> What options are your git and subversion built with?
> 

dev-util/subversion-1.5.6  USE="apache2 berkdb doc dso perl python webdav-neon -bash-completion -debug -emacs -extras -java -nls -ruby -sasl -vim-syntax -webdav-serf"
dev-util/git-1.6.0.6  USE="curl doc gtk iconv perl subversion threads tk -bash-completion -cgi -cvs -emacs -mozsha1 (-ppcsha1) -vim-syntax -webdav -xinetd"
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-05-05 19:40:41 UTC
Please rebuild subversion with USE=-dso

You ignored the warning messages in the git build:
 58     if use subversion && has_version dev-util/subversion && built_with_use --missing false dev-util/subversion dso ; then
 59         ewarn "Per Gentoo bugs #223747, #238586, when subversion is built"
 60         ewarn "with USE=dso, there may be weird crashes in git-svn. You"
 61         ewarn "have been warned."
 62     fi


It's even enforced in newer git ebuilds that USE=-dso is in play.
Comment 6 Jaak Ristioja 2009-05-06 00:45:18 UTC
(In reply to comment #5)
> It's even enforced in newer git ebuilds that USE=-dso is in play.
> 

Ok. But why not in older git ebuilds as well?

Anyway, after emerging subversion with USE=-dso the error does not occur. Thank you!
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-05-06 01:19:39 UTC
It involved an EAPI2 bump, and we had to wait for the newer Portage to have some bugs fixed before we could do it safely.

I haven't backported it so that users on older Portage still have non-EAPI2 git ebuilds available to them.