Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#76530 - [knot] knsupdate is crashing on server connect

Attached to Project: Community Packages
Opened by Laura Hausmann (zotan) - Friday, 11 November 2022, 16:38 GMT
Last edited by T.J. Townsend (blakkheim) - Sunday, 13 November 2022, 13:25 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Bruno Pagani (ArchangeGabriel)
T.J. Townsend (blakkheim)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Since knot 3.2.2 knsupdate crashes on server connect. This breaks e.g. letsencrypt hook scripts and manual knsupdate invokations.`

Additional info:
* Broken since 3.2.2
* Upstream bug: https://gitlab.nic.cz/knot/knot-dns/-/issues/822
* Patched in https://gitlab.nic.cz/knot/knot-dns/-/commit/8a6645dab63d8fa7932c7d8f747fe33e8cc97e84
* Verified fixed by patching https://gitlab.nic.cz/knot/knot-dns/-/commit/8a6645dab63d8fa7932c7d8f747fe33e8cc97e84.patch in PKGBUILD

Steps to reproduce:

% gdb knsupdate
(gdb) r
Starting program: /usr/bin/knsupdate
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib64/libthread_db.so.1".
knsupdate> server $somednsserver
knsupdate> zone xyz
knsupdate> send

Program received signal SIGSEGV, Segmentation fault.
0x0000555555560a9f in net_send (net=net@entry=0x7ffffffcb990, buf=0x5555555915b0 "\204\310(", buf_len=21) at utils/common/netio.c:587
587 utils/common/netio.c: No such file or directory.
(gdb) bt
#0 0x0000555555560a9f in net_send (net=net@entry=0x7ffffffcb990, buf=0x5555555915b0 "\204\310(", buf_len=21)
at utils/common/netio.c:587
#1 0x000055555555b6d4 in pkt_sendrecv (params=0x7ffffffcbb90) at utils/knsupdate/knsupdate_exec.c:456
#2 cmd_send (lp=<optimized out>, params=0x7ffffffcbb90) at utils/knsupdate/knsupdate_exec.c:851
#3 0x000055555555b1c6 in knsupdate_process_line (line=0x7ffffffcba90 "send", params=params@entry=0x7ffffffcbb90)
at utils/knsupdate/knsupdate_exec.c:498
#4 0x000055555555bc00 in knsupdate_process_line (line=<optimized out>, params=params@entry=0x7ffffffcbb90)
at utils/knsupdate/knsupdate_exec.c:486
#5 0x000055555555c197 in interactive_loop (params=params@entry=0x7ffffffcbb90)
at utils/knsupdate/knsupdate_interactive.c:165
#6 0x000055555555bb20 in process_lines (params=0x7ffffffcbb90, input=0x7ffff7bf9800 <_IO_2_1_stdin_>)
at utils/knsupdate/knsupdate_exec.c:519
#7 0x000055555555bcc4 in knsupdate_exec (params=params@entry=0x7ffffffcbb90) at utils/knsupdate/knsupdate_exec.c:553
#8 0x0000555555559ca2 in main (argc=<optimized out>, argv=0x7fffffffe308) at utils/knsupdate/knsupdate_main.c:35
This task depends upon

Closed by  T.J. Townsend (blakkheim)
Sunday, 13 November 2022, 13:25 GMT
Reason for closing:  Fixed
Additional comments about closing:  3.2.2-2

Loading...