🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #3844

Bug#1153475: tcpxtract: intermittent fbts due to stale lexer configuration file

#3844
From: Vladimir Petko
Date: Sun, 08 Nov 2026 22:20
97 lines
6386 bytes
This is a multi-part MIME message sent by reportbug.


--===============2077774444028307708==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: tcpxtract
Version: 1.0.1-19
Severity: normal
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu tenacious ubuntu-patch

Dear Maintainer,

The package intermittently fails to build in Ubuntu (or fails autopkgtest in
Debian) with the following error
--
No file was recognized in the sample capture
--
[1]
--
./tcpxtract -c tcpxtract.conf -f debian/tests/test.pcap
tcpxtract: search.c:181: search: Assertion `tree != NULL' failed.
--
[2]

I have added confy.h to BUILT_SOURCES in Makefile.am to avoid compiling against
stale confy.h (as Debian patches change it and cause regeneration).

In Ubuntu, the attached patch was applied to achieve the following:

    - d/p/140_enforce_build_order.patch: resolve intermittent ftbfs.


Thanks for considering the patch.

[1] https://ci.debian.net/packages/t/tcpxtract/testing/s390x/76229664/
[2] https://launchpadlibrarian.net/884139148/buildlog_ubuntu-tenacious-
arm64.tcpxtract_1.0.1-19ubuntu1~ppa1_BUILDING.txt.gz


-- System Information:
Debian Release: forky/sid
  APT prefers resolute-updates
  APT policy: (500, 'resolute-updates'), (500, 'resolute-security'), (500, 'resolute'), (100, 'resolute-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 7.0.0-43-generic (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

--===============2077774444028307708==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="tcpxtract_1.0.1-19ubuntu1.debdiff"

diff -Nru tcpxtract-1.0.1/debian/patches/140_enforce_build_order.patch tcpxtract-1.0.1/debian/patches/140_enforce_build_order.patch
--- tcpxtract-1.0.1/debian/patches/140_enforce_build_order.patch	1970-01-01 12:00:00.000000000 +1200
+++ tcpxtract-1.0.1/debian/patches/140_enforce_build_order.patch	2026-11-09 09:22:43.000000000 +1300
@@ -0,0 +1,18 @@
+Description: Resolve intermittent ftbfs
+ The Makefile.am does not explicitly list confy.h as a built source.
+ It must be regenerated before compiling the source code as the Debian
+ patches introduce changes to the lexer and parser.
+ The source is compiled against the stale token definitions causing the
+ parse error.
+Author: Vladimir Petko <vladimir.petko@canonical.com>
+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/tcpxtract/+bug/2173708
+Forwarded: no
+Last-Update: 2026-11-09
+
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,3 +1,4 @@
++BUILT_SOURCES = confy.h
+ AM_CFLAGS = -D_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
+ bin_PROGRAMS = tcpxtract
+ tcpxtract_SOURCES = tcpxtract.c sessionlist.c sessionlist.h util.c util.h confy.y confl.l \
diff -Nru tcpxtract-1.0.1/debian/patches/series tcpxtract-1.0.1/debian/patches/series
--- tcpxtract-1.0.1/debian/patches/series	2026-09-04 14:20:21.000000000 +1200
+++ tcpxtract-1.0.1/debian/patches/series	2026-11-09 09:22:43.000000000 +1300
@@ -11,3 +11,4 @@
 110_use-captured-packet-length.patch
 120_use-extract-prototype.patch
 130_packet-structures-packed.patch
+140_enforce_build_order.patch

--===============2077774444028307708==--
Technical Details
Message-ID: <NXjoZ-aHgi-7@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
From: Vladimir Petko <vpa1977@gmail.com>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1153475: tcpxtract: intermittent fbts due to stale lexer configuration file
Date: Sun, 08 Nov 2026 23:20:01 +0100
Message-ID: <NXjoZ-aHgi-7@gated-at.bofh.it>
X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Sun Nov  8 22:17:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -0.297
Reply-To: Vladimir Petko <vpa1977@gmail.com>, 1153475@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: andrade@debian.org
X-Debian-Pr-Message: report 1153475
X-Debian-Pr-Package: tcpxtract
X-Debian-Pr-Keywords: patch
X-Debian-Pr-Source: tcpxtract
X-Gm-Message-State: APuU4Z8z612Frua2Rdz/3ZO1tC0Zq8BVHPwne9K6vnaWLIKqwjM+xTAU
	VzJzigEpYsGt+ApODPU64CIydi4rnmNdJp/1aTsh1eIOXuYGD+NGDCoJx2Yj5g==
X-Gm-Gg: AYBFou3YQeIuvCAiWL4kF7mCZCdzTzE1eQxwXpXhn5Zu3+45czJnv7UXWxXJtzYhKMf
	BZw1h1j4jvt7+yyhiBC+W01niyDXo0Aq7GMqDjFLXSnwMC9HtIG5DonnEkUXgjpwlzVoRCzfbe7
	v48RYxX1wiWEl3lOKH4yI7MyPlENOI9xpyoNCVVLt1WIhKJ8YdIuw7dOgieLQZK9dL02Cq9OKDB
	55TKS/cKU148+xX9lXx19wj8FNuDMhoh7ldAEtuwTHxztjgAPLDqDrzd2XIAFrPzrP6J2OeWn4r
	OMJGwYcmiZcZmtnu33ZGHod9oWPTVfr+xykH/5LAoGuiwosLO9AWXw5S6ldurK9cBhFD7SpN17E
	bAJBZAs5FilFpKKWzNH10bZaK92UMjfglBbT5cxs5pXO4RlcBXGnY79Xubr3YOHZnjSwvdIrdYF
	Fc/LtAE7pdKG1h03N363UyOE+1P2g44AcLB2Doa+Li9WFXgUmZDUvyZcKKgwFOlGVsdzfr3VtUk
	P5vg/46ykK/NzGcaAktCe8jCUMipGqIn0SV7kLTQvsG4GprOKnbA7OOzs3QvKDFrIGPaG9XnJth
	RdR9xBo6kUo/VW3YG8wKXs1Gs2tAdni1m02htYOranVDgGjOx9Uu5NxONBNGNHyfsQ7jI84CpOD
	YkwHL8Ycgosocegc+JAVmnF5ZfXl/GFpi0ME1ciyQHgPodf2WUTOG0rjEyQ==
X-Received: by 2002:a17:90b:2648:b0:3ae:8410:ae6a with SMTP id 98e67ed59e1d1-3b12d2b0dd1mr2110005a91.22.1794176093884;
        Sun, 08 Nov 2026 14:14:53 -0800 (PST)
X-Google-Original-From: Vladimir Petko <vladimir.petko@canonical.com>
Content-Type: multipart/mixed; boundary="===============2077774444028307708=="
MIME-Version: 1.0
X-Mailer: reportbug 13.2.0+ubuntu1
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2001551
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 97
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Mon, 09 Nov 2026 11:13:51 +1300
X-Original-Message-ID: <179417603155.652338.11521089154574272894.reportbug@vladimirp>