Bug#1018061: pads: segfault at 3a ip
- To: tmcconnell168@gmail.com
- Cc: 1018061@bugs.debian.org
- Subject: Bug#1018061: pads: segfault at 3a ip
- From: Bernhard Übelacker <bernhardu@mailbox.org>
- Date: Wed, 15 Mar 2023 12:10:19 +0100
- Message-id: <[🔎] eb1746f9-bb5a-a319-b2ca-9497a682bba9@mailbox.org>
- Reply-to: Bernhard Übelacker <bernhardu@mailbox.org>, 1018061@bugs.debian.org
- In-reply-to: <0d242cd74366216830e3f5bf987d4db23a091544.camel@gmail.com>
- References: <166137509794.2105374.3490757946671127347.reportbug@DebianTim.midcoip.net> <166137509794.2105374.3490757946671127347.reportbug@DebianTim.midcoip.net> <c3083c72-d04f-c98a-a1ca-ddc41a8360e1@mailbox.org> <695d4e9cd66fe5f5574436e3e6f792a9fd282b87.camel@gmail.com> <d77877a6-7de3-2438-1c99-00306887b82e@mailbox.org> <0dd1fd1b318052d49f7b4cc1700a0a1856fdbe04.camel@gmail.com> <0db2cd2e-c560-65bb-8bce-006532e30b5f@mailbox.org> <de11995c24880c2a3e126fdb84cd6a8e90f850b6.camel@gmail.com> <21e79eb5-0ec8-fafc-7067-a039ee343405@mailbox.org> <0d242cd74366216830e3f5bf987d4db23a091544.camel@gmail.com> <166137509794.2105374.3490757946671127347.reportbug@DebianTim.midcoip.net>
Am 26.02.23 um 16:47 schrieb Tim McConnell:
Hi Bernhard,
The delay is fine, I'm sure it takes a minute to figure it out ;-) and
no I didn't have anything other than defaults for GDB set. I'm not a
programmer so I don't know all the tricks to GDB or when is best to
use them. With that said, how would I go about installing /testing the
patch you provide? I'm happy to test it out for you, I just need the
knowledge of how to.
Thanks!
Hello Tim,
if you are fine with installing a bunch of build dependencies
you could use following steps to rebuild the package with the patch.
As root:
# apt build-dep pads
As user:
$ mkdir -p source/pads
Put attached patch to the new directory and continue as user:
$ cd source/pads
$ apt source pads
$ cd pads-1.2/
$ patch -p1 < ../pads_print_arp_asset_initialize.patch
$ dpkg-buildpackage -b
As root (with the directory adjusted to your user):
# dpkg -i /home/benutzer/source/pads/{pads_1.2-14_amd64.deb,pads-dbgsym_1.2-14_amd64.deb}
And then see if it still works as expected and see
if the crash happens again.
Kind regards,
Bernhard
--- a/src/output/output.c 2023-02-26 15:19:32.000000000 +0100
+++ b/src/output/output.c 2023-02-26 15:54:54.007679051 +0100
@@ -182,7 +182,7 @@ int print_arp_asset (struct in_addr ip_a
/* Find Asset */
ArpAsset *list;
- ArpAsset *rec;
+ ArpAsset *rec = NULL;
list = (ArpAsset *)get_arp_pointer();
while (list != NULL) {
Reply to: