Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assertion "oidcmp(&hash, &empty_tree) == 0" failed #315

Closed
riastradh opened this issue Oct 3, 2023 · 1 comment
Closed

assertion "oidcmp(&hash, &empty_tree) == 0" failed #315

riastradh opened this issue Oct 3, 2023 · 1 comment

Comments

@riastradh
Copy link

riastradh commented Oct 3, 2023

git-cinnabar 0.6.2 on NetBSD 9

$ git clone hg::https://anonhg.NetBSD.org/xsrc
Cloning into 'xsrc.cinnabar'...
Getting clone bundle from https://cdn.netbsd.org/_bundles/xsrc-public/0fc97a967a8522228b1655b1bd21c0b34e7a69d9.zstd-22.hg
Reading 6934 changesets
Reading and importing 6894 manifests
Reading and importing 189910 revisions of 80999 files
assertion "oidcmp(&hash, &empty_tree) == 0" failed: file "/home/riastradh/pkgsrc/current/work/devel/git-cinnabar/work/git-cinnabar-0.6.2/src/cinnabar-fast-import.c", line 1018, function "ensure_empty_tree"
error: git-remote-hg died of signal 6
fatal: could not read ref refs/cinnabar/refs/heads/branches/ARM32VIDC/tip
$ gdb ~/pkgsrc/current/pkg/libexec/git-core/git-remote-hg ./git-remote-hg.core
GNU gdb (GDB) 8.3
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64--netbsd".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/riastradh/pkgsrc/current/pkg/libexec/git-core/git-remote-hg...
[New process 29694]
[New process 22349]
[New process 12071]
Core was generated by `git-remote-hg'.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007973dcf679ea in _lwp_kill () from /usr/lib/libc.so.12
[Current thread is 1 (process 29694)]
(gdb) bt
#0  0x00007973dcf679ea in _lwp_kill () from /usr/lib/libc.so.12
#1  0x00007973dcf6729a in abort () at /usr/src/9/lib/libc/stdlib/abort.c:74
#2  0x00007973dcea8557 in __assert13 (
    file=file@entry=0xfd1e4748 "/home/riastradh/pkgsrc/current/work/devel/git-cinnabar/work/git-cinnabar-0.6.2/src/cinnabar-fast-import.c",
    line=line@entry=1018,
    function=function@entry=0xfd1e4b20 <__func__.15516> "ensure_empty_tree",
    failedexpr=failedexpr@entry=0xfd1e4b00 "oidcmp(&hash, &empty_tree) == 0")
    at /usr/src/9/lib/libc/gen/assert.c:72
#3  0x00000000fcf521b2 in ensure_empty_tree ()
    at /home/riastradh/pkgsrc/current/work/devel/git-cinnabar/work/git-cinnabar-0.6.2/src/cinnabar-fast-import.c:1018
#4  0x00000000fceb88d6 in git_cinnabar::store::store_changegroup ()
#5  0x00000000fcedafd9 in git_cinnabar::hg_connect::get_store_bundle ()
#6  0x00000000fcf2f555 in git_cinnabar::git_remote_hg ()
#7  0x00000000fcf19d80 in git_cinnabar::git_cinnabar ()
#8  0x00000000fcf33738 in cinnabar_main ()
#9  0x00000000fcf1a406 in git_cinnabar::main ()
#10 0x00007973de272008 in ?? ()
#11 0x00007973de257040 in ?? ()
#12 0x0000000000000004 in ?? ()
#13 0x0000000000000003 in ?? ()
#14 0x00007973de25d000 in ?? ()
--Type <RET> for more, q to quit, c to continue without paging--c
#15 0x0000000000000003 in ?? ()
#16 0x00007973de25d000 in ?? ()
#17 0x00007973de25d048 in ?? ()
#18 0x00007973de253000 in ?? ()
#19 0x0000000000000006 in ?? ()
#20 0x0000000000000004 in ?? ()
#21 0x00007f7fff8a0fc0 in ?? ()
#22 0x00000000fd4b7550 in ?? ()
#23 0x00000000fce43d53 in std::sys_common::backtrace::__rust_begin_short_backtrace () 
#24 0x00000000fce62079 in std::rt::lang_start::{{closure}} ()
#25 0x00007973de257010 in ?? ()
#26 0x00000000fd18e341 in std::rt::lang_start_internal ()
#27 0x00000000fcf4b312 in main ()
(gdb) fr 3
#3  0x00000000fcf521b2 in ensure_empty_tree ()
    at /home/riastradh/pkgsrc/current/work/devel/git-cinnabar/work/git-cinnabar-0.6.2/src/cinnabar-fast-import.c:1018
1018                    assert(oidcmp(&hash, &empty_tree) == 0);
(gdb) x/32xb hash.hash
0x7f7fff89cf80: 0xe6    0x9d    0xe2    0x9b    0xb2    0xd1    0xd6    0x43
0x7f7fff89cf88: 0x4b    0x8b    0x29    0xae    0x77    0x5a    0xd8    0xc2
0x7f7fff89cf90: 0xe4    0x8c    0x53    0x91    0x00    0x00    0x00    0x00
0x7f7fff89cf98: 0x00    0x00    0x00    0x00    0x00    0x00    0x00    0x00
(gdb) x/32xb empty_tree.hash
0xfd1e4bc0 <empty_tree>:        0x4b    0x82    0x5d    0xc6    0x42    0xcb   0x6e     0xb9
0xfd1e4bc8 <empty_tree+8>:      0xa0    0x60    0xe5    0x4b    0xf8    0xd6   0x92     0x88
0xfd1e4bd0 <empty_tree+16>:     0xfb    0xee    0x49    0x04    0x00    0x00   0x00     0x00
0xfd1e4bd8 <empty_tree+24>:     0x00    0x00    0x00    0x00    0x00    0x00   0x00     0x00
(gdb) 
@glandium
Copy link
Owner

glandium commented Oct 3, 2023

Fixed in d81234a

@glandium glandium closed this as completed Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants