I tested you PPA Sergio today in one of my virtual systems (x86_64 and
no IPv6 connectivity). Previously the commands were giving incomplete
results or were crashing.

Now, *they consistently output NOTHING*:

$ dig google.com +nssearch

$ host -C google.com

$ dig -d google.com +nssearch
setup_libs()
setup_system()
create_search_list()
ndots is 1.
timeout is 0.
retries is 3.
get_server_list()
make_server(127.0.0.53)
dig_query_setup
parse_args()
making new lookup
make_empty_lookup()
make_empty_lookup() = 0x564a58fce100->references = 1
digrc (open)
main parsing -d
main parsing google.com
clone_lookup()
make_empty_lookup()
make_empty_lookup() = 0x564a58fcf560->references = 1
clone_server_list()
looking up google.com
main parsing +nssearch
dig_startup()
lock_lookup dighost.c:4324
success
start_lookup()
setup_lookup(0x564a58fcf560)
resetting lookup counter.
cloning server list
clone_server_list()
make_server(127.0.0.53)
idn_textname: google.com
using root origin
recursive query
AD query
add_question()
starting to render the message
add_opt()
done rendering
create query 0x7f8030016870 linked to lookup 0x564a58fcf560
dighost.c:2106:lookup_attach(0x564a58fcf560) = 2
dighost.c:2610:new_query(0x7f8030016870) = 1
do_lookup()
start_udp(0x7f8030016870)
dighost.c:2982:query_attach(0x7f8030016870) = 2
working on lookup 0x564a58fcf560, query 0x7f8030016870
dighost.c:3027:query_attach(0x7f8030016870) = 3
unlock_lookup dighost.c:4326
dighost.c:2944:query_attach(0x7f8030016870) = 4
recving with lookup=0x564a58fcf560, query=0x7f8030016870, handle=(nil)
recvcount=1
have local timeout of 5000
dighost.c:2888:query_attach(0x7f8030016870) = 5
sending a request
sendcount=1
dighost.c:1700:query_detach(0x7f8030016870) = 4
dighost.c:2964:query_detach(0x7f8030016870) = 3
send_done(0x7f803003a180, success, 0x7f8030016870)
sendcount=0
lock_lookup dighost.c:2638
success
dighost.c:2642:lookup_attach(0x564a58fcf560) = 3
dighost.c:2680:query_detach(0x7f8030016870) = 2
dighost.c:2681:lookup_detach(0x564a58fcf560) = 2
check_if_done()
list empty
unlock_lookup dighost.c:2684
recv_done(0x7f803003a180, success, 0x7f8036c6c880, 0x7f8030016870)
lock_lookup dighost.c:3631
success
recvcount=0
dighost.c:3636:lookup_attach(0x564a58fcf560) = 3
before parse starts
after parse
in NSSEARCH code
following up google.com
found NS set
found NS ns2.google.com
requeue_lookup()
clone_lookup()
make_empty_lookup()
make_empty_lookup() = 0x7f803003d250->references = 1
before insertion, init@0x564a58fcf560 -> 0xffffffffffffffff, new@0x7f803003d250 
-> 0xffffffffffffffff
after insertion, init -> 0x564a58fcf560, new = 0x7f803003d250, new -> (nil)
dighost.c:1887:_cancel_lookup()
canceling pending query 0x7f8030016870, belonging to 0x564a58fcf560
dighost.c:2707:query_detach(0x7f8030016870) = 1
check_if_done()
list full
pending lookup 0x7f803003d250
adding server ns2.google.com
make_server(216.239.34.10)
make_server(2001:4860:4802:34::a)
found NS set
found NS ns4.google.com
adding server ns4.google.com
make_server(216.239.38.10)
make_server(2001:4860:4802:38::a)
found NS set
found NS ns3.google.com
adding server ns3.google.com
make_server(216.239.36.10)
make_server(2001:4860:4802:36::a)
found NS set
found NS ns1.google.com
adding server ns1.google.com
make_server(216.239.32.10)
make_server(2001:4860:4802:32::a)
dighost.c:4219:query_detach(0x7f8030016870) = 0
dighost.c:4219:destroy_query(0x7f8030016870) = 0
dighost.c:1658:lookup_detach(0x564a58fcf560) = 2
dighost.c:4227:lookup_detach(0x564a58fcf560) = 1
clear_current_lookup()
dighost.c:1783:lookup_detach(0x564a58fcf560) = 0
destroy_lookup
freeing server 0x7f8030001330 belonging to 0x564a58fcf560
start_lookup()
setup_lookup(0x7f803003d250)
idn_textname: google.com
using root origin
AD query
add_question()
starting to render the message
add_opt()
done rendering
create query 0x7f8030016870 linked to lookup 0x7f803003d250
dighost.c:2106:lookup_attach(0x7f803003d250) = 2
dighost.c:2610:new_query(0x7f8030016870) = 1
create query 0x7f8030016270 linked to lookup 0x7f803003d250
dighost.c:2106:lookup_attach(0x7f803003d250) = 3
dighost.c:2610:new_query(0x7f8030016270) = 1
create query 0x7f803003e6b0 linked to lookup 0x7f803003d250
dighost.c:2106:lookup_attach(0x7f803003d250) = 4
dighost.c:2610:new_query(0x7f803003e6b0) = 1
create query 0x7f803003e850 linked to lookup 0x7f803003d250
dighost.c:2106:lookup_attach(0x7f803003d250) = 5
dighost.c:2610:new_query(0x7f803003e850) = 1
create query 0x7f803003e9f0 linked to lookup 0x7f803003d250
dighost.c:2106:lookup_attach(0x7f803003d250) = 6
dighost.c:2610:new_query(0x7f803003e9f0) = 1
create query 0x7f803003c5b0 linked to lookup 0x7f803003d250
dighost.c:2106:lookup_attach(0x7f803003d250) = 7
dighost.c:2610:new_query(0x7f803003c5b0) = 1
create query 0x7f803003c750 linked to lookup 0x7f803003d250
dighost.c:2106:lookup_attach(0x7f803003d250) = 8
dighost.c:2610:new_query(0x7f803003c750) = 1
create query 0x7f803003c8f0 linked to lookup 0x7f803003d250
dighost.c:2106:lookup_attach(0x7f803003d250) = 9
dighost.c:2610:new_query(0x7f803003c8f0) = 1
do_lookup()
start_udp(0x7f8030016870)
dighost.c:2982:query_attach(0x7f8030016870) = 2
working on lookup 0x7f803003d250, query 0x7f8030016870
dighost.c:3027:query_attach(0x7f8030016870) = 3
unlock_lookup dighost.c:4231
dighost.c:2944:query_attach(0x7f8030016870) = 4
recving with lookup=0x7f803003d250, query=0x7f8030016870, handle=(nil)
recvcount=1
have local timeout of 5000
dighost.c:2888:query_attach(0x7f8030016870) = 5
sending a request
sendcount=1
dighost.c:1700:query_detach(0x7f8030016870) = 4
dighost.c:2964:query_detach(0x7f8030016870) = 3
send_done(0x7f803003ca90, success, 0x7f8030016870)
sendcount=0
lock_lookup dighost.c:2638
success
dighost.c:2642:lookup_attach(0x7f803003d250) = 10
sending next, since searching
dighost.c:2666:query_detach(0x7f8030016870) = 2
dighost.c:2667:lookup_detach(0x7f803003d250) = 9
start_udp(0x7f8030016270)
dighost.c:2982:query_attach(0x7f8030016270) = 2
working on lookup 0x7f803003d250, query 0x7f8030016270
dighost.c:3027:query_attach(0x7f8030016270) = 3
check_if_done()
list empty
unlock_lookup dighost.c:2676
dighost.c:2944:query_attach(0x7f8030016270) = 4
recving with lookup=0x7f803003d250, query=0x7f8030016270, handle=(nil)
recvcount=2
have local timeout of 5000
dighost.c:2888:query_attach(0x7f8030016270) = 5
sending a request
sendcount=1
dighost.c:1700:query_detach(0x7f8030016270) = 4
dighost.c:2964:query_detach(0x7f8030016270) = 3
send_done(0x7f803003a180, success, 0x7f8030016270)
sendcount=0
lock_lookup dighost.c:2638
success
dighost.c:2642:lookup_attach(0x7f803003d250) = 10
sending next, since searching
dighost.c:2666:query_detach(0x7f8030016270) = 2
dighost.c:2667:lookup_detach(0x7f803003d250) = 9
start_udp(0x7f803003e6b0)
dighost.c:2982:query_attach(0x7f803003e6b0) = 2
working on lookup 0x7f803003d250, query 0x7f803003e6b0
dighost.c:3027:query_attach(0x7f803003e6b0) = 3
check_if_done()
list empty
unlock_lookup dighost.c:2676
udp setup failed: network unreachable
dighost.c:1700:query_detach(0x7f803003e6b0) = 2
dighost.c:2938:query_detach(0x7f803003e6b0) = 1
dighost.c:2939:_cancel_lookup()
canceling pending query 0x7f8030016870, belonging to 0x7f803003d250
dighost.c:2707:query_detach(0x7f8030016870) = 1
canceling pending query 0x7f8030016270, belonging to 0x7f803003d250
dighost.c:2707:query_detach(0x7f8030016270) = 1
canceling pending query 0x7f803003e6b0, belonging to 0x7f803003d250
dighost.c:2707:query_detach(0x7f803003e6b0) = 0
dighost.c:2707:destroy_query(0x7f803003e6b0) = 0
dighost.c:1658:lookup_detach(0x7f803003d250) = 8
canceling pending query 0x7f803003e850, belonging to 0x7f803003d250
dighost.c:2707:query_detach(0x7f803003e850) = 0
dighost.c:2707:destroy_query(0x7f803003e850) = 0
dighost.c:1658:lookup_detach(0x7f803003d250) = 7
canceling pending query 0x7f803003e9f0, belonging to 0x7f803003d250
dighost.c:2707:query_detach(0x7f803003e9f0) = 0
dighost.c:2707:destroy_query(0x7f803003e9f0) = 0
dighost.c:1658:lookup_detach(0x7f803003d250) = 6
canceling pending query 0x7f803003c5b0, belonging to 0x7f803003d250
dighost.c:2707:query_detach(0x7f803003c5b0) = 0
dighost.c:2707:destroy_query(0x7f803003c5b0) = 0
dighost.c:1658:lookup_detach(0x7f803003d250) = 5
canceling pending query 0x7f803003c750, belonging to 0x7f803003d250
dighost.c:2707:query_detach(0x7f803003c750) = 0
dighost.c:2707:destroy_query(0x7f803003c750) = 0
dighost.c:1658:lookup_detach(0x7f803003d250) = 4
canceling pending query 0x7f803003c8f0, belonging to 0x7f803003d250
dighost.c:2707:query_detach(0x7f803003c8f0) = 0
dighost.c:2707:destroy_query(0x7f803003c8f0) = 0
dighost.c:1658:lookup_detach(0x7f803003d250) = 3
check_if_done()
list empty
dighost.c:2940:lookup_detach(0x7f803003d250) = 2
recv_done(0x7f803003ca90, end of file, 0x7f8036c6c610, 0x7f8030016870)
lock_lookup dighost.c:3631
success
recvcount=1
dighost.c:3636:lookup_attach(0x7f803003d250) = 3
recv_done: cancel
dighost.c:3644:query_detach(0x7f8030016870) = 0
dighost.c:3644:destroy_query(0x7f8030016870) = 0
dighost.c:1658:lookup_detach(0x7f803003d250) = 2
dighost.c:3645:lookup_detach(0x7f803003d250) = 1
unlock_lookup dighost.c:3646
recv_done(0x7f803003a180, end of file, 0x7f8036c6c610, 0x7f8030016270)
lock_lookup dighost.c:3631
success
recvcount=0
dighost.c:3636:lookup_attach(0x7f803003d250) = 2
recv_done: cancel
dighost.c:3644:query_detach(0x7f8030016270) = 0
dighost.c:3644:destroy_query(0x7f8030016270) = 0
dighost.c:1658:lookup_detach(0x7f803003d250) = 1
dighost.c:3645:lookup_detach(0x7f803003d250) = 0
destroy_lookup
freeing server 0x7f8030044cc0 belonging to 0x7f803003d250
freeing server 0x7f8030041c00 belonging to 0x7f803003d250
freeing server 0x7f80300454e0 belonging to 0x7f803003d250
freeing server 0x7f8030043460 belonging to 0x7f803003d250
freeing server 0x7f80300444a0 belonging to 0x7f803003d250
freeing server 0x7f8030042420 belonging to 0x7f803003d250
freeing server 0x7f8030043c80 belonging to 0x7f803003d250
freeing server 0x7f8030042c40 belonging to 0x7f803003d250
start_lookup()
check_if_done()
list empty
shutting down
destroy_lookup
cancel_all()
lock_lookup dighost.c:4340
unlock_lookup dighost.c:3646
success
unlock_lookup dighost.c:4372
destroy_libs()
freeing task
lock_lookup dighost.c:4392
success
flush_server_list()
destroy DST lib
unlock_lookup dighost.c:4420
Removing log context
Destroy memory

$ host -C google.com

$ host -C google.com

$ host -C google.com

$ host -C google.com

$ host -C google.com

$ host -vC google.com
Trying "google.com"
Received 100 bytes from 127.0.0.53#53 in 12 ms
Trying "google.com"

$ host -vC google.com
Trying "google.com"
Received 100 bytes from 127.0.0.53#53 in 0 ms
Trying "google.com"

$ host -vC google.com
Trying "google.com"
Received 100 bytes from 127.0.0.53#53 in 0 ms
Trying "google.com"


Also, the command:

$ dig +trace google.com

randomly gives INCOMPLETE results.

NOTE: I experienced *no crash* in any run of the current commands
though.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1970252

Title:
  The `dig` and `host` commands core dump or give incomplete results in
  Ubuntu 22.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bind9/+bug/1970252/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to