1. [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
  2. GNU gdb (GDB) 9.1
  3. Copyright (C) 2020 Free Software Foundation, Inc.
  4. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  5. This is free software: you are free to change and redistribute it.
  6. There is NO WARRANTY, to the extent permitted by law.
  7. Type "show copying" and "show warranty" for details.
  8. This GDB was configured as "x86_64-linux".
  9. Type "show configuration" for configuration details.
  10. For bug reporting instructions, please see:
  11. <http://www.gnu.org/software/gdb/bugs/>.
  12. Find the GDB manual and other documentation resources online at:
  13. <http://www.gnu.org/software/gdb/documentation/>.
  14. For help, type "help".
  15. Type "apropos word" to search for commands related to "word"...
  16. 3.8.4 (default, Jul 14 2020, 05:45:33)
  17. [GCC 9.x 20200523 (qwe) 10.x]
  18. Script information not found in binary, assuming oldest version
  19. Type "fbload" to load fb-specific gdb extensions.
  20. Reading symbols from env...
  21. Reading symbols from .gnu_debugdata for /usr/bin/env...
  22. (No debugging symbols found in .gnu_debugdata for /usr/bin/env)
  23. No symbol table is loaded. Use the "file" command.
  24. Make breakpoint pending on future shared library load? (y or [n]) y
  25. Breakpoint 1 (/home/siudin/local/libsolv/src/repo_solv.c:549) pending.
  26. 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
  27. process 3463869 is executing new program: /usr/libexec/platform-python3.6
  28. 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".
  29. To enable execution of this file add
  30. add-auto-load-safe-path /usr/lib64/libthread_db-1.0.so
  31. line to your configuration file "/root/.gdbinit".
  32. To completely disable this security protection add
  33. set auto-load safe-path /
  34. line to your configuration file "/root/.gdbinit".
  35. For more information about this security protection see the
  36. "Auto-loading safe path" section in the GDB manual. E.g., run from the shell:
  37. info "(gdb)Auto-loading safe path"
  38. warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
  39. 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)
  40. Downloading: https://qwe:3000/linux_kernel/test/repodata/repomd.xml
  41. [New LWP 3464093]
  42. [LWP 3464093 exited] [=== ] --- B/s | 0 B --:-- ETA
  43. kernel_contbuild 6.7 kB/s | 1.0 kB 00:00
  44. 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
  45. 549 return pool_error(pool, SOLV_ERROR_CORRUPT, "sub-repository solvable number does not match main repository (%d - %d)", extendend - extendstart, numsolv);
  46. (gdb) l
  47. 544 return pool_error(pool, SOLV_ERROR_CORRUPT, "relations are forbidden in a local pool");
  48. 545 if ((flags & REPO_EXTEND_SOLVABLES) && numsolv)
  49. 546 {
  50. 547 /* make sure that we exactly replace the stub repodata */
  51. 548 if (extendend - extendstart != numsolv)
  52. 549 return pool_error(pool, SOLV_ERROR_CORRUPT, "sub-repository solvable number does not match main repository (%d - %d)", extendend - extendstart, numsolv);
  53. 550 for (i = 0; i < numsolv; i++)
  54. 551 if (pool->solvables[extendstart + i].repo != repo)
  55. 552 return pool_error(pool, SOLV_ERROR_CORRUPT, "main repository contains holes, cannot extend");
  56. 553 }
  57. (gdb) p extendend
  58. $1 = 1040
  59. (gdb) p extendstart
  60. $2 = 833
  61. (gdb) p numsolv
  62. $3 = 414
  63. (gdb) p *repo
  64. $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,
  65. idarraysize = 415, nrepodata = 2, rpmdbid = 0x0, repodata = 0x555555c7f4b0, lastoff = 0, lastidhash = 0x0, lastidhash_mask = 0, lastidhash_idarraysize = 0, lastmarker = 0, lastmarkerpos = 0}