Git Product home page Git Product logo

Comments (9)

carlosmn avatar carlosmn commented on June 15, 2024

Do you have the right version of the library in your load path? The public config API had the argument order changed in the _get_ functions not far back.

from rugged.

stereobooster avatar stereobooster commented on June 15, 2024

I use library from submodule https://github.com/libgit2/rugged/tree/development/vendor

from rugged.

carlosmn avatar carlosmn commented on June 15, 2024

By use do you mean that you compile rugged against it? Having the wrong version is still the only thing that makes sense. Have you installed the submodule into the system? Have you set LD_LIBRARY_PATH somewhere where you might have an older version?

from rugged.

stereobooster avatar stereobooster commented on June 15, 2024

I didn't install libgit before. Exact steps

$ echo $PATH
/home/test/.rvm/gems/ruby-1.9.3-p194/bin:/home/test/.rvm/gems/ruby-1.9.3-p194@global/bin:/home/test/.rvm/rubies/ruby-1.9.3-p194/bin:/home/test/.rvm/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
$ unset LD_LIBRARY_PATH
$ git clone https://github.com/libgit2/rugged.git && cd rugged
$ rvm use 1.9.2
Using /home/test/.rvm/gems/ruby-1.9.2-p320
$ bundle install
$ bundle exec rake
WARNING: 'require 'rake/rdoctask'' is deprecated.  Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead.
    at /home/test/.rvm/gems/ruby-1.9.2-p320@global/gems/rake-0.9.2.2/lib/rake/rdoctask.rb
git submodule update --init
Submodule 'vendor/libgit2' (https://github.com/libgit2/libgit2.git) registered for path 'vendor/libgit2'
Cloning into 'vendor/libgit2'...
remote: Counting objects: 18696, done.
remote: Compressing objects: 100% (5468/5468), done.
remote: Total 18696 (delta 13696), reused 17751 (delta 12864)
Receiving objects: 100% (18696/18696), 5.69 MiB | 1.51 MiB/s, done.
Resolving deltas: 100% (13696/13696), done.
Submodule path 'vendor/libgit2': checked out '430af731d259053691b0de9b18917f7adf97021a'
mkdir -p tmp/i686-linux/rugged/1.9.2
cd tmp/i686-linux/rugged/1.9.2
/home/test/.rvm/rubies/ruby-1.9.2-p320/bin/ruby -I. ../../../../ext/rugged/extconf.rb
 -- make -f Makefile.embed
checking for main() in -lgit2_embed... yes
checking for git2.h... yes
creating Makefile
cd -
cd tmp/i686-linux/rugged/1.9.2
make
gcc -I.  -I/home/test/projects/rugged/ext/rugged/../../vendor/libgit2/include -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1/i686-linux -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1/ruby/backward -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1 -I../../../../ext/rugged -DHAVE_GIT2_H -I/home/test/.rvm/usr/include  -D_FILE_OFFSET_BITS=64  -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC  -o rugged_remote.o -c ../../../../ext/rugged/rugged_remote.c
gcc -I.  -I/home/test/projects/rugged/ext/rugged/../../vendor/libgit2/include -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1/i686-linux -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1/ruby/backward -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1 -I../../../../ext/rugged -DHAVE_GIT2_H -I/home/test/.rvm/usr/include  -D_FILE_OFFSET_BITS=64  -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC  -o rugged_config.o -c ../../../../ext/rugged/rugged_config.c
gcc -I.  -I/home/test/projects/rugged/ext/rugged/../../vendor/libgit2/include -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1/i686-linux -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1/ruby/backward -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1 -I../../../../ext/rugged -DHAVE_GIT2_H -I/home/test/.rvm/usr/include  -D_FILE_OFFSET_BITS=64  -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC  -o rugged_tree.o -c ../../../../ext/rugged/rugged_tree.c
gcc -I.  -I/home/test/projects/rugged/ext/rugged/../../vendor/libgit2/include -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1/i686-linux -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1/ruby/backward -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1 -I../../../../ext/rugged -DHAVE_GIT2_H -I/home/test/.rvm/usr/include  -D_FILE_OFFSET_BITS=64  -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC  -o rugged.o -c ../../../../ext/rugged/rugged.c
gcc -I.  -I/home/test/projects/rugged/ext/rugged/../../vendor/libgit2/include -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1/i686-linux -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1/ruby/backward -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1 -I../../../../ext/rugged -DHAVE_GIT2_H -I/home/test/.rvm/usr/include  -D_FILE_OFFSET_BITS=64  -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC  -o rugged_revwalk.o -c ../../../../ext/rugged/rugged_revwalk.c
gcc -I.  -I/home/test/projects/rugged/ext/rugged/../../vendor/libgit2/include -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1/i686-linux -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1/ruby/backward -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1 -I../../../../ext/rugged -DHAVE_GIT2_H -I/home/test/.rvm/usr/include  -D_FILE_OFFSET_BITS=64  -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC  -o rugged_commit.o -c ../../../../ext/rugged/rugged_commit.c
gcc -I.  -I/home/test/projects/rugged/ext/rugged/../../vendor/libgit2/include -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1/i686-linux -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1/ruby/backward -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1 -I../../../../ext/rugged -DHAVE_GIT2_H -I/home/test/.rvm/usr/include  -D_FILE_OFFSET_BITS=64  -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC  -o rugged_object.o -c ../../../../ext/rugged/rugged_object.c
gcc -I.  -I/home/test/projects/rugged/ext/rugged/../../vendor/libgit2/include -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1/i686-linux -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1/ruby/backward -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1 -I../../../../ext/rugged -DHAVE_GIT2_H -I/home/test/.rvm/usr/include  -D_FILE_OFFSET_BITS=64  -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC  -o rugged_repo.o -c ../../../../ext/rugged/rugged_repo.c
gcc -I.  -I/home/test/projects/rugged/ext/rugged/../../vendor/libgit2/include -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1/i686-linux -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1/ruby/backward -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1 -I../../../../ext/rugged -DHAVE_GIT2_H -I/home/test/.rvm/usr/include  -D_FILE_OFFSET_BITS=64  -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC  -o rugged_index.o -c ../../../../ext/rugged/rugged_index.c
gcc -I.  -I/home/test/projects/rugged/ext/rugged/../../vendor/libgit2/include -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1/i686-linux -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1/ruby/backward -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1 -I../../../../ext/rugged -DHAVE_GIT2_H -I/home/test/.rvm/usr/include  -D_FILE_OFFSET_BITS=64  -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC  -o rugged_reference.o -c ../../../../ext/rugged/rugged_reference.c
gcc -I.  -I/home/test/projects/rugged/ext/rugged/../../vendor/libgit2/include -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1/i686-linux -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1/ruby/backward -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1 -I../../../../ext/rugged -DHAVE_GIT2_H -I/home/test/.rvm/usr/include  -D_FILE_OFFSET_BITS=64  -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC  -o rugged_blob.o -c ../../../../ext/rugged/rugged_blob.c
gcc -I.  -I/home/test/projects/rugged/ext/rugged/../../vendor/libgit2/include -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1/i686-linux -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1/ruby/backward -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1 -I../../../../ext/rugged -DHAVE_GIT2_H -I/home/test/.rvm/usr/include  -D_FILE_OFFSET_BITS=64  -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC  -o rugged_tag.o -c ../../../../ext/rugged/rugged_tag.c
gcc -I.  -I/home/test/projects/rugged/ext/rugged/../../vendor/libgit2/include -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1/i686-linux -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1/ruby/backward -I/home/test/.rvm/rubies/ruby-1.9.2-p320/include/ruby-1.9.1 -I../../../../ext/rugged -DHAVE_GIT2_H -I/home/test/.rvm/usr/include  -D_FILE_OFFSET_BITS=64  -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC  -o rugged_signature.o -c ../../../../ext/rugged/rugged_signature.c
gcc -shared -o rugged.so rugged_remote.o rugged_config.o rugged_tree.o rugged.o rugged_revwalk.o rugged_commit.o rugged_object.o rugged_repo.o rugged_index.o rugged_reference.o rugged_blob.o rugged_tag.o rugged_signature.o -L. -L/home/test/.rvm/rubies/ruby-1.9.2-p320/lib -Wl,-R/home/test/.rvm/rubies/ruby-1.9.2-p320/lib -L/home/test/.rvm/usr/lib -Wl,-R/home/test/.rvm/usr/lib -L.  -rdynamic -Wl,-export-dynamic -L/home/test/projects/rugged/ext/rugged    -Wl,-R -Wl,/home/test/.rvm/rubies/ruby-1.9.2-p320/lib -L/home/test/.rvm/rubies/ruby-1.9.2-p320/lib -lruby -lgit2_embed  -lpthread -lrt -ldl -lcrypt -lm   -lc
cd -
install -c tmp/i686-linux/rugged/1.9.2/rugged.so lib/rugged/rugged.so
Run options: --seed 48447

# Running tests:

.........../home/test/projects/rugged/test/config_test.rb:21: [BUG] Segmentation fault
ruby 1.9.2p320 (2012-04-20 revision 35421) [i686-linux]

-- control frame ----------
c:0022 p:---- s:0084 b:0084 l:000083 d:000083 CFUNC  :[]
c:0021 p:0030 s:0080 b:0079 l:0023ec d:000078 LAMBDA /home/test/projects/rugged/test/config_test.rb:21
c:0020 p:---- s:0076 b:0076 l:000075 d:000075 FINISH
c:0019 p:0083 s:0074 b:0074 l:000073 d:000073 METHOD /home/test/.rvm/gems/ruby-1.9.2-p320/gems/minitest-3.0.1/lib/minitest/unit.rb:1068
c:0018 p:0101 s:0068 b:0068 l:000056 d:000067 BLOCK  /home/test/.rvm/gems/ruby-1.9.2-p320/gems/minitest-3.0.1/lib/minitest/unit.rb:833
c:0017 p:---- s:0062 b:0062 l:000061 d:000061 FINISH
c:0016 p:---- s:0060 b:0060 l:000059 d:000059 CFUNC  :map
c:0015 p:0124 s:0057 b:0057 l:000056 d:000056 METHOD /home/test/.rvm/gems/ruby-1.9.2-p320/gems/minitest-3.0.1/lib/minitest/unit.rb:825
c:0014 p:0015 s:0049 b:0049 l:000040 d:000048 BLOCK  /home/test/.rvm/gems/ruby-1.9.2-p320/gems/minitest-3.0.1/lib/minitest/unit.rb:812
c:0013 p:---- s:0046 b:0046 l:000045 d:000045 FINISH
c:0012 p:---- s:0044 b:0044 l:000043 d:000043 CFUNC  :map
c:0011 p:0012 s:0041 b:0041 l:000040 d:000040 METHOD /home/test/.rvm/gems/ruby-1.9.2-p320/gems/minitest-3.0.1/lib/minitest/unit.rb:812
c:0010 p:0189 s:0036 b:0036 l:000035 d:000035 METHOD /home/test/.rvm/gems/ruby-1.9.2-p320/gems/minitest-3.0.1/lib/minitest/unit.rb:785
c:0009 p:0013 s:0026 b:0026 l:000025 d:000025 METHOD /home/test/.rvm/gems/ruby-1.9.2-p320/gems/minitest-3.0.1/lib/minitest/unit.rb:974
c:0008 p:0012 s:0023 b:0023 l:000014 d:000022 BLOCK  /home/test/.rvm/gems/ruby-1.9.2-p320/gems/minitest-3.0.1/lib/minitest/unit.rb:961
c:0007 p:---- s:0020 b:0020 l:000019 d:000019 FINISH
c:0006 p:---- s:0018 b:0018 l:000017 d:000017 CFUNC  :each
c:0005 p:0068 s:0015 b:0015 l:000014 d:000014 METHOD /home/test/.rvm/gems/ruby-1.9.2-p320/gems/minitest-3.0.1/lib/minitest/unit.rb:960
c:0004 p:0029 s:0011 b:0011 l:000010 d:000010 METHOD /home/test/.rvm/gems/ruby-1.9.2-p320/gems/minitest-3.0.1/lib/minitest/unit.rb:949
c:0003 p:0057 s:0007 b:0007 l:000724 d:000cb8 BLOCK  /home/test/.rvm/gems/ruby-1.9.2-p320/gems/minitest-3.0.1/lib/minitest/unit.rb:697
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:00152c d:00152c TOP   
---------------------------
-- Ruby level backtrace information ----------------------------------------
/home/test/.rvm/gems/ruby-1.9.2-p320/gems/minitest-3.0.1/lib/minitest/unit.rb:697:in `block in autorun'
/home/test/.rvm/gems/ruby-1.9.2-p320/gems/minitest-3.0.1/lib/minitest/unit.rb:949:in `run'
/home/test/.rvm/gems/ruby-1.9.2-p320/gems/minitest-3.0.1/lib/minitest/unit.rb:960:in `_run'
/home/test/.rvm/gems/ruby-1.9.2-p320/gems/minitest-3.0.1/lib/minitest/unit.rb:960:in `each'
/home/test/.rvm/gems/ruby-1.9.2-p320/gems/minitest-3.0.1/lib/minitest/unit.rb:961:in `block in _run'
/home/test/.rvm/gems/ruby-1.9.2-p320/gems/minitest-3.0.1/lib/minitest/unit.rb:974:in `run_tests'
/home/test/.rvm/gems/ruby-1.9.2-p320/gems/minitest-3.0.1/lib/minitest/unit.rb:785:in `_run_anything'
/home/test/.rvm/gems/ruby-1.9.2-p320/gems/minitest-3.0.1/lib/minitest/unit.rb:812:in `_run_suites'
/home/test/.rvm/gems/ruby-1.9.2-p320/gems/minitest-3.0.1/lib/minitest/unit.rb:812:in `map'
/home/test/.rvm/gems/ruby-1.9.2-p320/gems/minitest-3.0.1/lib/minitest/unit.rb:812:in `block in _run_suites'
/home/test/.rvm/gems/ruby-1.9.2-p320/gems/minitest-3.0.1/lib/minitest/unit.rb:825:in `_run_suite'
/home/test/.rvm/gems/ruby-1.9.2-p320/gems/minitest-3.0.1/lib/minitest/unit.rb:825:in `map'
/home/test/.rvm/gems/ruby-1.9.2-p320/gems/minitest-3.0.1/lib/minitest/unit.rb:833:in `block in _run_suite'
/home/test/.rvm/gems/ruby-1.9.2-p320/gems/minitest-3.0.1/lib/minitest/unit.rb:1068:in `run'
/home/test/projects/rugged/test/config_test.rb:21:in `block (2 levels) in <top (required)>'
/home/test/projects/rugged/test/config_test.rb:21:in `[]'

-- C level backtrace information -------------------------------------------
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(rb_vm_bugreport+0x72) [0x288ff2]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(+0x54183) [0x165183]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(rb_bug+0x33) [0x165e73]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(+0x109403) [0x21a403]
[0x6fc40c]
/home/test/projects/rugged/lib/rugged/rugged.so(git_config_get_string+0x3f) [0x5d22df]
/home/test/projects/rugged/lib/rugged/rugged.so(+0xe19b) [0x5c519b]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(+0x1637b3) [0x2747b3]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(+0x1711e0) [0x2821e0]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(+0x16729e) [0x27829e]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(+0x16d410) [0x27e410]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(rb_vm_invoke_proc+0xf9) [0x27f409]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(+0x17147b) [0x28247b]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(+0x168081) [0x279081]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(+0x16d410) [0x27e410]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(rb_yield+0x55) [0x283325]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(+0x27d4a) [0x138d4a]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(+0x1637bd) [0x2747bd]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(+0x1711e0) [0x2821e0]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(+0x168081) [0x279081]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(+0x16d410) [0x27e410]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(rb_yield+0x55) [0x283325]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(+0x27d4a) [0x138d4a]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(+0x1637bd) [0x2747bd]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(+0x1711e0) [0x2821e0]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(+0x168081) [0x279081]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(+0x16d410) [0x27e410]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(rb_yield+0x55) [0x283325]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(rb_ary_each+0x4a) [0x13382a]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(+0x1637bd) [0x2747bd]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(+0x1711e0) [0x2821e0]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(+0x168081) [0x279081]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(+0x16d410) [0x27e410]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(rb_vm_invoke_proc+0xf9) [0x27f409]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(rb_proc_call+0x57) [0x170e97]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(rb_call_end_proc+0x24) [0x1692f4]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(rb_exec_end_proc+0x208) [0x16bb58]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(+0x5ac19) [0x16bc19]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(ruby_cleanup+0x128) [0x16bd98]
/home/test/.rvm/rubies/ruby-1.9.2-p320/lib/libruby.so.1.9(ruby_run_node+0x3e) [0x16c0fe]
/home/test/.rvm/rubies/ruby-1.9.2-p320/bin/ruby(main+0x68) [0x8048668]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x3ba4d3]
/home/test/.rvm/rubies/ruby-1.9.2-p320/bin/ruby() [0x8048691]

from rugged.

scottjg avatar scottjg commented on June 15, 2024

Probably my fault. I guess when I converted to using the submodule, and brought in the mingw fixes, we needed to fix the param ordering of that function. I could've sworn these were passing though...

oh well. if that's really the bug it should be an easy fix.

@carlosmn rugged is synced up to 430af73, do you know when the api breaking change happened? was it after this?

from rugged.

carlosmn avatar carlosmn commented on June 15, 2024

Ah, silly me, rugged embeds the library, so all of that was just senseless drivel. Sorry about that.

I've just checked the code and the params are in the right order. This wouldn't be the problem anyway, as I can run the tests without problems on my Linux system, both with 1.8.7 and 1.9.3.

I notice that it's always in the same test (getting the global user.email). Do you have that set (i.e. does git config --global user.name return anything)?

Can you run it under the debugger? With gdb, typing bt when it crashes should tell us what the parameters are.

from rugged.

stereobooster avatar stereobooster commented on June 15, 2024

I recently installed gui git client which required to setup those globals. So now:

git config --global user.name
stereobooster

And now all tests pass. So the bug is: rugged crashes when no global name/email seted.

from rugged.

carlosmn avatar carlosmn commented on June 15, 2024

The tests do assume that you have a global user name configured. It fails, but I can't get it to crash.

from rugged.

stereobooster avatar stereobooster commented on June 15, 2024

I restarted machine. It installed updates.

$ uname -a
3.2.0-25-generic #40-Ubuntu SMP Wed May 23 20:33:05 UTC 2012 i686 athlon i386 GNU/Linux

And now I can't reproduce crash too. There is only one failed test (if I unset global user name).

from rugged.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.