- [root@qwe /home/siudin/local/libdnf/build]# gdb -ex 'b /home/siudin/local/libsolv/src/repo_solv.c:549' -ex r --args env LD_PRELOAD="/home/siudin/local/libdnf/build/libdnf/libdnf.so" /usr/libexec/platform-python3.6 /bin/dnf-3 install librepo-devel-1.11.0-1.el8.fb1.x86_64
- GNU gdb (GDB) 9.1
- Copyright (C) 2020 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-linux".
- 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"...
- 3.8.4 (default, Jul 14 2020, 05:45:33)
- [GCC 9.x 20200523 (qwe) 10.x]
- Script information not found in binary, assuming oldest version
- Type "fbload" to load fb-specific gdb extensions.
- Reading symbols from env...
- Reading symbols from .gnu_debugdata for /usr/bin/env...
- (No debugging symbols found in .gnu_debugdata for /usr/bin/env)
- No symbol table is loaded. Use the "file" command.
- Make breakpoint pending on future shared library load? (y or [n]) y
- Breakpoint 1 (/home/siudin/local/libsolv/src/repo_solv.c:549) pending.
- Starting program: /usr/bin/env LD_PRELOAD=/home/siudin/local/libdnf/build/libdnf/libdnf.so /usr/libexec/platform-python3.6 /bin/dnf-3 install librepo-devel-1.11.0-1.el8.fb1.x86_64
- process 3463869 is executing new program: /usr/libexec/platform-python3.6
- warning: File "/usr/lib64/libthread_db-1.0.so" auto-loading has been declined by your `auto-load safe-path' set to "/opt/gdb-dev:/usr/local/fbcode".
- To enable execution of this file add
- add-auto-load-safe-path /usr/lib64/libthread_db-1.0.so
- line to your configuration file "/root/.gdbinit".
- To completely disable this security protection add
- set auto-load safe-path /
- line to your configuration file "/root/.gdbinit".
- For more information about this security protection see the
- "Auto-loading safe path" section in the GDB manual. E.g., run from the shell:
- info "(gdb)Auto-loading safe path"
- warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
- Librepo version: 1.11.0 with CURL_GLOBAL_ACK_EINTR support (libcurl/7.61.1 OpenSSL/1.1.1c zlib/1.2.11 brotli/1.0.6 libidn2/2.2.0 libpsl/0.20.2 (+libidn2/2.0.5) libssh/0.9.0/openssl/zlib nghttp2/1.33.0)
- Downloading: https://qwe:3000/linux_kernel/test/repodata/repomd.xml
- [New LWP 3464093]
- [LWP 3464093 exited] [=== ] --- B/s | 0 B --:-- ETA
- kernel_contbuild 6.7 kB/s | 1.0 kB 00:00
- Thread 1 "platform-python" hit Breakpoint 1, repo_add_solv (repo=0x555555c692b0, fp=0x555555cb9cd0, flags=20) at /home/siudin/local/libsolv/src/repo_solv.c:549
- 549 return pool_error(pool, SOLV_ERROR_CORRUPT, "sub-repository solvable number does not match main repository (%d - %d)", extendend - extendstart, numsolv);
- (gdb) l
- 544 return pool_error(pool, SOLV_ERROR_CORRUPT, "relations are forbidden in a local pool");
- 545 if ((flags & REPO_EXTEND_SOLVABLES) && numsolv)
- 546 {
- 547 /* make sure that we exactly replace the stub repodata */
- 548 if (extendend - extendstart != numsolv)
- 549 return pool_error(pool, SOLV_ERROR_CORRUPT, "sub-repository solvable number does not match main repository (%d - %d)", extendend - extendstart, numsolv);
- 550 for (i = 0; i < numsolv; i++)
- 551 if (pool->solvables[extendstart + i].repo != repo)
- 552 return pool_error(pool, SOLV_ERROR_CORRUPT, "main repository contains holes, cannot extend");
- 553 }
- (gdb) p extendend
- $1 = 1040
- (gdb) p extendstart
- $2 = 833
- (gdb) p numsolv
- $3 = 414
- (gdb) p *repo
- $4 = {name = 0x555555c5df10 "kernel_contbuild", repoid = 2, appdata = 0x555555c013a0, pool = 0x555555c3e800, start = 833, end = 1040, nsolvables = 207, disabled = 0, priority = -99, subpriority = -1000, idarraydata = 0x555555c7fb90,
- idarraysize = 415, nrepodata = 2, rpmdbid = 0x0, repodata = 0x555555c7f4b0, lastoff = 0, lastidhash = 0x0, lastidhash_mask = 0, lastidhash_idarraysize = 0, lastmarker = 0, lastmarkerpos = 0}