Skip to content

nut-scanner IP address reporting is bogus #3234

Closed

Description

@jimklimov

Scanned a VM network recently, and reports saw some IP addresses repeated and others empty. Is something overlapped in memory with pthreads in use? Is it poking all the correct IPs and only reporting them wrong (e.g. some buffer reuse in inet_ntop() or somesuch)?..

Reproduced with a native NUT for Windows build, and with a Linux build running in WSL:

:; LD_LIBRARY_PATH=`pwd`/clients/.libs:`pwd`/tools/nut-scanner/.libs:$LD_LIBRARY_PATH ./tools/nut-scanner/nut-scanner -O -m 10.10.10.0/24
upscli_tryconnect: Connection to host timed out: '10.10.10.12'
upscli_tryconnect: Connection to host timed out: '10.10.10.12'
upscli_tryconnect: Connection to host timed out: '10.10.10.3'
upscli_tryconnect: Connection to host timed out: '10.10.10.17'
upscli_tryconnect: Connection to host timed out: '10.10.10.20'
upscli_tryconnect: Connection to host timed out: '10.10.10.22'
upscli_tryconnect: Connection to host timed out: '10.10.10.0'
upscli_tryconnect: Connection to host timed out: '10.10.10.7'
upscli_tryconnect: Connection to host timed out: '10.10.10.8'
upscli_tryconnect: Connection to host timed out: '10.10.10.19'
upscli_tryconnect: Connection to host timed out: '10.10.10.23'
upscli_tryconnect: Connection to host timed out: '10.10.10.24'
upscli_tryconnect: Connection to host timed out: '10.10.10.32'
upscli_tryconnect: Connection to host timed out: '10.10.10.40'
upscli_tryconnect: Connection to host timed out: ''
upscli_tryconnect: Connection to host timed out: '10.10.10.18'
upscli_tryconnect: Connection to host timed out: '10.10.10.29'
upscli_tryconnect: Connection to host timed out: '10.10.10.30'
upscli_tryconnect: Connection to host timed out: '10.10.10.11'
...

Activity

  1. added this to the 2.8.5 milestone on Dec 24, 2025
  2. added
    C-strIssues and PRs about C/C++ methods, headers and data types dealing with strings and memory blocks
    impacts-release-2.8.4Issues reported against NUT release 2.8.4 (maybe vanilla or with minor packaging tweaks)
    on Dec 24, 2025
  3. jimklimov commented on Dec 24, 2025

    @jimklimov
    MemberAuthor

    The problem was indeed "cosmetic", in conversions to strings. Just in case it pops up worse, fixed in PR #3235

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-strIssues and PRs about C/C++ methods, headers and data types dealing with strings and memory blocksbugimpacts-release-2.8.4Issues reported against NUT release 2.8.4 (maybe vanilla or with minor packaging tweaks)nut-scanner

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions