[med-svn] [Git][med-team/plink2][master] More debugging stuff

Andreas Tille (@tille) gitlab at salsa.debian.org
Fri Feb 18 19:43:02 GMT 2022



Andreas Tille pushed to branch master at Debian Med / plink2


Commits:
3d93c55f by Andreas Tille at 2022-02-18T20:42:45+01:00
More debugging stuff

- - - - -


2 changed files:

- + debian/patches/debug3.patch
- debian/patches/series


Changes:

=====================================
debian/patches/debug3.patch
=====================================
@@ -0,0 +1,35 @@
+From ca19133b358b7a4a4083f50df15ba278152749dd Mon Sep 17 00:00:00 2001
+From: Christopher Chang <chrchang523 at gmail.com>
+Date: Fri, 18 Feb 2022 08:31:30 -0800
+Subject: [PATCH] more Debian debug-prints
+Origin: https://github.com/chrchang/plink-ng/commit/ca19133b358b7a4a4083f50df15ba278152749dd.patch
+
+---
+ 2.0/plink2.cc       | 2 +-
+ 2.0/plink2_common.h | 4 ++++
+ 2.0/plink2_psam.cc  | 1 +
+ 3 files changed, 6 insertions(+), 1 deletion(-)
+
+--- a/plink2_common.h
++++ b/plink2_common.h
+@@ -1015,6 +1015,10 @@ typedef struct PhenoColStruct {
+   PhenoDtype type_code;
+ 
+   uint32_t nonnull_category_ct;
++#ifdef __LP64__
++  // This may be needed to avoid segfaults on some machines?
++  uint32_t padding;
++#endif
+ } PhenoCol;
+ 
+ void InitPheno();
+--- a/plink2_psam.cc
++++ b/plink2_psam.cc
+@@ -606,6 +606,7 @@ PglErr LoadPsam(const char* psamname, co
+           goto LoadPsam_ret_NOMEM;
+         }
+       }
++      DPrintf("sizeof(PhenoCol): %" PRIuPTR "  pheno_cols: %lx\n", sizeof(PhenoCol), R_CAST(uintptr_t, pheno_cols));
+       for (uint32_t pheno_idx = 0; pheno_idx != pheno_ct; ++pheno_idx) {
+         // ensure cleanup works if initialization fails in the middle
+         if (g_debug_on) {


=====================================
debian/patches/series
=====================================
@@ -3,3 +3,4 @@ use_packaged_libdeflate.patch
 baseline
 debug.patch
 debug2.patch
+debug3.patch



View it on GitLab: https://salsa.debian.org/med-team/plink2/-/commit/3d93c55f45ed39d3162c8ac9b4cfaec43341d221

-- 
View it on GitLab: https://salsa.debian.org/med-team/plink2/-/commit/3d93c55f45ed39d3162c8ac9b4cfaec43341d221
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/20220218/3b814d73/attachment-0001.htm>


More information about the debian-med-commit mailing list