Your message dated Mon, 13 Mar 2023 22:34:25 +0000
with message-id <[email protected]>
and subject line Bug#1032193: fixed in pajeng 1.3.6-4
has caused the Debian Bug report #1032193,
regarding pajeng: Please backport fix for Field count does not match definition 
for line
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1032193: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1032193
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: pajeng
Version: 1.3.6-3+fix
Severity: normal
Tags: patch upstream

Hello,

We are seeing these kinds of errors:

+ pj_dump -e 0
This is the event definition of the problematic event:
  %EventDef PajeStartLink 24
  %    Time date
  %    Type string
  %    Container string
  %    Value string
  %    StartContainer string
  %    Key string
  %    Handle string
  %    HName string
  %    X string
  %    Y string
  %EndEventDef
Line field count: 9
Definition field count: 11
Field count does not match definition for line (Line: 10672, Fields: 9, 
Contents: '24 299.383423000 TF p 1024 mm0 com_1 7f1c38c7e998 "  0       0')
terminate called after throwing an instance of 'std::out_of_range'
  what():  vector::_M_range_check: __n (which is 9) >= this->size() (which is 9)
Aborted

That's because the field is an empty string:

24      299.383423000   TF      p       1024    mm0     com_1   7f1c38c7e998    
""      0       0

That has been fixed upstream:
https://github.com/schnorr/pajeng/commit/ca24c95cc5b4e53455058e180f01d5a5febccac6
also attached to this mail, verified as fixing the bug.

Could you backport the patch to the Debian package?

Thanks,
Samuel

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 
'testing-debug'), (500, 'stable-security'), (500, 'stable-debug'), (500, 
'proposed-updates-debug'), (500, 'proposed-updates'), (500, 
'oldstable-proposed-updates'), (500, 'oldoldstable'), (500, 'buildd-unstable'), 
(500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 
'experimental-debug'), (1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, arm64

Kernel: Linux 6.2.0 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages pajeng depends on:
ii  libc6        2.36-8
ii  libgcc-s1    12.2.0-14
ii  libpaje2     1.3.6-3+fix
ii  libstdc++6   12.2.0-14
ii  r-base-core  4.2.2.20221110-2

pajeng recommends no packages.

pajeng suggests no packages.

-- no debconf information

-- 
Samuel
---
Pour une évaluation indépendante, transparente et rigoureuse !
Je soutiens la Commission d'Évaluation de l'Inria.
commit ca24c95cc5b4e53455058e180f01d5a5febccac6
Author: Lucas Schnorr <[email protected]>
Date:   Wed Oct 19 12:55:19 2022 -0300

    fix legacy parsing when empty fields are double-quotes""

diff --git a/src/libpaje/PajeEventDecoder.cc b/src/libpaje/PajeEventDecoder.cc
index 98602b3..a8224e4 100644
--- a/src/libpaje/PajeEventDecoder.cc
+++ b/src/libpaje/PajeEventDecoder.cc
@@ -76,13 +76,16 @@ char *PajeEventDecoder::break_line (char *s, paje_line 
*line)
     }
     if (!in_word && !isspace(*p)) {
       if (*p == '"') {
-        p++;
         in_string = true;
       } else {
         in_word = true;
       }
       if (line->word_count < PAJE_MAX_FIELDS) {
-        line->word[line->word_count] = p;
+        if(in_string){
+          line->word[line->word_count] = p+1; //ignore "
+        }else{
+          line->word[line->word_count] = p;
+        }
         line->word_count ++;
       }
       continue;

--- End Message ---
--- Begin Message ---
Source: pajeng
Source-Version: 1.3.6-4
Done: Martin Quinson <[email protected]>

We believe that the bug you reported is fixed in the latest version of
pajeng, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Martin Quinson <[email protected]> (supplier of updated pajeng package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 13 Mar 2023 22:52:49 +0100
Source: pajeng
Architecture: source
Version: 1.3.6-4
Distribution: unstable
Urgency: medium
Maintainer: Martin Quinson <[email protected]>
Changed-By: Martin Quinson <[email protected]>
Closes: 1032193
Changes:
 pajeng (1.3.6-4) unstable; urgency=medium
 .
   * d/p/fix_legacy_parsing: new patch picked from upstream
     (Closes: #1032193)
   * d/control: Bump standards-version to 4.6.2 (no change needed)
Checksums-Sha1:
 06b441c21186f719b8a475c0aeb6b1e003be10f0 2099 pajeng_1.3.6-4.dsc
 4d6d6bd59ccd1677015a341a3e82234b407d9d85 5848 pajeng_1.3.6-4.debian.tar.xz
 94fcbec1a8bed898bbd4945b48b4a1650cc30243 8573 pajeng_1.3.6-4_amd64.buildinfo
Checksums-Sha256:
 52ed43f1854d95076977cac023f9b7430a16bfb560ccb5fe162c550a39306b52 2099 
pajeng_1.3.6-4.dsc
 cd6c3ed70605b138d27bac9b1f6663be880b4e2f753d47849a38c03e423a4b22 5848 
pajeng_1.3.6-4.debian.tar.xz
 66c4522e4dc1f7cb75471a77a5f656619d106840d236009f946d3830bb596389 8573 
pajeng_1.3.6-4_amd64.buildinfo
Files:
 638c23ecdee24701a4a176d79f6084d0 2099 libs optional pajeng_1.3.6-4.dsc
 8614bd643c98d1d30fc4343993cfa65e 5848 libs optional 
pajeng_1.3.6-4.debian.tar.xz
 b093fcbbdc11cdef15c6b9120700d1d3 8573 libs optional 
pajeng_1.3.6-4_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJIBAEBCgAyFiEET76cTupS7xPVQWYSmL2XJE9zvqcFAmQPnNcUHG1xdWluc29u
QGRlYmlhbi5vcmcACgkQmL2XJE9zvqdPDhAAh02WvOqqiuQvUltNLQbg9B9avlQH
eHLhzMIuWOm39c3Z4WXElsSgn8q9vAEvcoSY3wrDtdd2cAwa7XF6l0wA4gox5syc
0kplnT+UUJWgzjhzABLx8S8xfmSVyQtjqES7tLiH16Dg/wes4p3UhK0FDV5HQNmI
1I97PxvKe7m2BUvExd13DpISBFDM78WWBfq1iGjUa3Tz2pTLz7y0/sApn3iUnzgl
WFcm6ObrjS1Mr0j3jvndMFs+XzqBs36bweTbt8S1hsGB8kT1dqYPlZOkLEccioLT
8pU7RHBhlqjIL0bErxJj6NL0nEssSXl8n2GNa3rBOp2sFzHBiwFkad7ck90FL/1E
/JDKNGxZ/cZNM5Q7B4VVjN36/T2NA25uGvxUEFc0eHMVE11sExLxpOy20ECba0Aj
YCIYOjEU4A/8EDQ/EWlMd+IEaixaBwhTpfKnLAvGkx74lFzNGE8g+nqjLKLVpLyU
9FTRnLcc824psOl25BMV0cwjN5PwKy4IOCcKvxJCMGLi5jKgIrKSghmRp0dF1qy1
CyYgGT72dA7oQcx2296v55LckS+vOSCtuycPyo396Ur6Ps3UIgR1LBVmpHHYCuTa
cihkNdXDA4kMMhmqSjBVf44Vtznl86pZ84LNM/wKRLKnURW8w2AdBw3YYNIe+yLG
r42345VqoT8ISI4=
=a3KR
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to