Re: Bowtie segfaults in pbuilder chroot at build time (Was: Issue with new version of Bowtie) (original) (raw)
- To: Debian Mentors List <debian-mentors@lists.debian.org>
- Cc: Debian Med Project List <debian-med@lists.debian.org>
- Subject: Re: Bowtie segfaults in pbuilder chroot at build time (Was: Issue with new version of Bowtie)
- From: Andreas Tille <andreas@an3as.eu>
- Date: Thu, 21 Sep 2017 15:12:12 +0200
- Message-id: <[🔎] 20170921131212.whduk46pef4sjsgu@an3as.eu>
- In-reply-to: <[🔎] 1505992550.8019.1.camel@kathenas.org>
- References: 20170905074455.kxlhobrejkpcw2q4@an3as.eu 8137ce8b-858d-5da1-673b-2e5506b51964@evolbio.mpg.de 309a9243-b81d-31e6-f117-7560305fc184@evolbio.mpg.de 20170906064627.fd5imriblwn7wnco@an3as.eu 20170920102338.b6luxyqmarmdfxo2@an3as.eu 79815dc6-f68b-d468-d066-7355c3a730e8@gmx.de <[🔎] 20170920134454.qmia6kmyn3oynt24@an3as.eu> <[🔎] a4d418c9-748b-aa02-775f-ac36701a0f02@gmx.de> <[🔎] 20170921062740.n42c5hqqlb77lzha@an3as.eu> <[🔎] 1505992550.8019.1.camel@kathenas.org>
Hi Phil,
thanks for your attempt to help.
On Thu, Sep 21, 2017 at 12:15:50PM +0100, Phil Wyett wrote:
- Parallel build.
// Diff starts on line below. diff --git a/debian/rules b/debian/rules index 7919361..b536ce7 100755 --- a/debian/rules +++ b/debian/rules @@ -11,7 +11,7 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all  pkg := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')   %: -       dh $@ +       dh $@ --parallel   override_dh_auto_build:         $(MAKE) allall // Diff ends on line above.
That's redundant since debian/compat=10 is used.
- At error the unit tests should dump a diff to std error.
The script is very old style and has errors.
Well, its old style but you replaced `` by $() which has the same result und adding "" around variables is probably better style but not solving any problem here. Or am I missing something?
// Diff starts on line below. diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test index dfcb0e5..1335a4b 100644 --- a/debian/tests/run-unit-test +++ b/debian/tests/run-unit-test @@ -5,19 +5,19 @@ if [ "$1" = "test_at_build_time" ] ; then  else      pkg=bowtie      if [ "$ADTTMP" = "" ] ; then -      ADTTMP=
mktemp -d /tmp/${pkg}-test.XXXXXX
+      ADTTMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)      fi -    mkdir -p $ADTTMP/tests -    cp -a debian/tests/example* $ADTTMP/tests -    cd $ADTTMP -    cp -a /usr/share/doc/bowtie/examples/indexes $ADTTMP +    mkdir -p "$ADTTMP"/tests +    cp -a debian/tests/example* "$ADTTMP"/tests +    cd "$ADTTMP" +    cp -a /usr/share/doc/bowtie/examples/indexes "$ADTTMP"  fi   check_result () { -    EDIFF=diff -u tests/$1.out $1.out
+    EDIFF=$(diff -u tests/"$1".out "$1".out)      if ! $EDIFF ; then          echo "Error testing example" -        echo $EDIFF +        echo "$EDIFF"          exit 1      else          echo "$1 OK" // Diff ends on line above.A diff is now outputted at example6.
That's no change at all. The point is that after outputting the diff (which is the very same as without your changes) the segfault happens again. The very strange thing is that the test suite works until example5 bit if I force an error before running the script and run it manually inside the chroot
root@wr-linux01:/# cd build/bowtie-1.2.1.1+dfsg/ root@wr-linux01:/build/bowtie-1.2.1.1+dfsg# ./bowtie Segmentation fault root@wr-linux01:/build/bowtie-1.2.1.1+dfsg# sh debian/tests/run-unit-test test_at_build_time Segmentation fault debian/tests/run-unit-test: 18: debian/tests/run-unit-test: ---: not found Error testing example --- tests/example1.out 2017-09-21 12:55:02.000000000 +0000 +++ example1.out 2017-09-21 13:07:54.755536757 +0000 @@ -1,5 +0,0 @@ -- gi|110640213|ref|NC_008253.1| 148810 10:A>G,13:C>G -- gi|110640213|ref|NC_008253.1| 2852852 8:T>A -- gi|110640213|ref|NC_008253.1| 4930433 4:G>T,6:C>G -- gi|110640213|ref|NC_008253.1| 905664 6:A>G,7:G>T -+ gi|110640213|ref|NC_008253.1| 1093035 2:T>G,15:A>T root@wr-linux01:/build/bowtie-1.2.1.1+dfsg# bash debian/tests/run-unit-test test_at_build_time debian/tests/run-unit-test: line 27: 24652 Segmentation fault bowtie -a -v 2 e_coli --suppress 1,5,6,7 -c ATGCATCATGCGCCAT > example1.out debian/tests/run-unit-test: line 18: ---: command not found Error testing example --- tests/example1.out 2017-09-21 12:55:02.000000000 +0000 +++ example1.out 2017-09-21 13:08:04.855722853 +0000 @@ -1,5 +0,0 @@ -- gi|110640213|ref|NC_008253.1| 148810 10:A>G,13:C>G -- gi|110640213|ref|NC_008253.1| 2852852 8:T>A -- gi|110640213|ref|NC_008253.1| 4930433 4:G>T,6:C>G -- gi|110640213|ref|NC_008253.1| 905664 6:A>G,7:G>T -+ gi|110640213|ref|NC_008253.1| 1093035 2:T>G,15:A>T
The problem happens even for example1. So I keep on thinking that running inside the chroot is evident to reproduce the problem and the script itself is not the problem even if it produces strange effects. I would love to hear further opinions to the gdb output I provided in my first mail to this thread on debian-mentors.
Kind regards
Andreas.
Reply to:
- Follow-Ups:
- References:
- Bowtie segfaults in pbuilder chroot at build time (Was: Issue with new version of Bowtie)
* From: Andreas Tille andreas@an3as.eu - Re: Bowtie segfaults in pbuilder chroot at build time (Was: Issue with new version of Bowtie)
* From: Steffen Möller <steffen_moeller@gmx.de> - Re: Bowtie segfaults in pbuilder chroot at build time (Was: Issue with new version of Bowtie)
* From: Andreas Tille andreas@an3as.eu - Re: Bowtie segfaults in pbuilder chroot at build time (Was: Issue with new version of Bowtie)
* From: Phil Wyett philwyett@kathenas.org
- Bowtie segfaults in pbuilder chroot at build time (Was: Issue with new version of Bowtie)
- Prev by Date:Re: Bowtie segfaults in pbuilder chroot at build time (Was: Issue with new version of Bowtie)
- Next by Date:Bug#869806: Update
- Previous by thread:Re: Bowtie segfaults in pbuilder chroot at build time (Was: Issue with new version of Bowtie)
- Next by thread:Re: Bowtie segfaults in pbuilder chroot at build time (Was: Issue with new version of Bowtie)
- Index(es):