[med-svn] [Git][med-team/spades][master] Add debug code to track down test failure issue
Andreas Tille (@tille)
gitlab at salsa.debian.org
Mon Nov 8 09:21:38 GMT 2021
Andreas Tille pushed to branch master at Debian Med / spades
Commits:
35d478c3 by Andreas Tille at 2021-11-08T10:21:03+01:00
Add debug code to track down test failure issue
- - - - -
1 changed file:
- + debian/patches/debug.patch
Changes:
=====================================
debian/patches/debug.patch
=====================================
@@ -0,0 +1,38 @@
+Description: Some debugging printf's to clarifiy the issue
+ Just run
+ metaspades.py--test
+ or more directly the issue can be debugged in gdb using
+ /usr/libexec/spades/spades-hammer ./spades_test/corrected/configs/config.info
+ gdb output of last command is:
+
+ ...
+ ./assembler/ext/src/gqf/gqf.c (591): Debug: last_word = 2, first_word = 774, qf->metadata->bits_per_slot = 8
+ ./assembler/ext/src/gqf/gqf.c (596): Debug: last_word = 1
+ ./assembler/ext/src/gqf/gqf.c (591): Debug: last_word = 1, first_word = 774, qf->metadata->bits_per_slot = 8
+ ./assembler/ext/src/gqf/gqf.c (596): Debug: last_word = 0
+ ./assembler/ext/src/gqf/gqf.c (591): Debug: last_word = 0, first_word = 774, qf->metadata->bits_per_slot = 8
+
+ Thread 4 "spades-hammer" received signal SIGSEGV, Segmentation fault.
+ [Switching to Thread 0x7ffff6a1e700 (LWP 1670144)]
+ 0x00005555555e91d9 in shift_into_b (amount=8, bend=64, bstart=0, b=0, a=<error reading variable: Cannot access memory at address 0x20000636610afff8>)
+ at ./assembler/ext/src/gqf/gqf.c:541
+ warning: Source file is more recent than executable.
+ 541 const uint64_t a_component = bstart == 0 ? (a >> (64 - amount)) : 0;
+
+--- a/assembler/ext/src/gqf/gqf.c
++++ b/assembler/ext/src/gqf/gqf.c
+@@ -586,11 +586,14 @@ static inline void shift_remainders(QF *
+
+ assert(start_index <= empty_index && empty_index < qf->metadata->xnslots);
+ assert(first_word <= last_word);
++ printf("%s (%i): Debug: qf->metadata->bits_per_slot = %i\n", __FILE__, __LINE__, qf->metadata->bits_per_slot);
+ while (last_word != first_word) {
++ printf("%s (%i): Debug: last_word = %i, first_word = %i, qf->metadata->bits_per_slot = %i\n", __FILE__, __LINE__, last_word, first_word, qf->metadata->bits_per_slot);
+ *REMAINDER_WORD(qf, last_word) = shift_into_b(*REMAINDER_WORD(qf, last_word-1),
+ *REMAINDER_WORD(qf, last_word),
+ 0, bend, qf->metadata->bits_per_slot);
+ last_word--;
++ printf("%s (%i): Debug: last_word = %i\n", __FILE__, __LINE__, last_word);
+ bend = 64;
+ }
+ *REMAINDER_WORD(qf, last_word) = shift_into_b(0, *REMAINDER_WORD(qf, last_word),
View it on GitLab: https://salsa.debian.org/med-team/spades/-/commit/35d478c3b91067b6a904e78140e601398905d25d
--
View it on GitLab: https://salsa.debian.org/med-team/spades/-/commit/35d478c3b91067b6a904e78140e601398905d25d
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20211108/2550136d/attachment-0001.htm>
More information about the debian-med-commit
mailing list