Closed mariopaumann closed 1 month ago
@mariopaumann we didn't change nmap since synocli-net v2.3-17
Can you downgrade to synocli-net v2.3-17?
If it still works with synocli-net v2.3-17, then we need some further investigation.
Since we have changed the development environment from debian 11 to debian 12 it might be related to the build environment. Alas I have a DSM-210+ with DSM 5.2 that works with synocli-net v2.3-17 and v2.4-18 It has kernel version 2.6.32.12 But this is a system with ppc853x CPU and is limitted to nmap v7.92 (instead of current 7.94)
Another difference is, that all pulblished synocli-net packages until rev -17 are built on local build environment, only rev -18 was built by github build actions (and deployed by @mreid-tt)
summary:
BTW: DSM does not support automatic update of thirdparty packages, you must have manually started the update of synocli-net from 2.3-17 to 2.4-18
Hey @hgy59, looking back, I published the synocli-net package on behalf of @th0ma7 as part of PR #6239. However, upon reviewing the actual PR, I noticed that there were no changes made to synocli-net. It seems a dependency update triggered the build, and I mistakenly assumed it was an intentional update. Apologies for the confusion.
I also checked the previous PR #5985, which proposed synocli-net v2.4-18, but it doesn't appear to have been published. Was the release held back deliberately? If that's the case, I can go ahead and disable it in the repo.
Hey @hgy59, looking back, I published the synocli-net package on behalf of @th0ma7 as part of PR #6239. However, upon reviewing the actual PR, I noticed that there were no changes made to synocli-net. It seems a dependency update triggered the build, and I mistakenly assumed it was an intentional update. Apologies for the confusion.
I also checked the previous PR #5985, which proposed synocli-net v2.4-18, but it doesn't appear to have been published. Was the release held back deliberately? If that's the case, I can go ahead and disable it in the repo.
I confirm, synocli-net was not planned for release part of my pr. But i recall fixing libudev build for dsm-7.2 which must have triggered it.
I confirm, synocli-net was not planned for release part of my pr. But i recall fixing libudev build for dsm-7.2 which must have triggered it.
I think I just forgot to publish it (half a year ago)...
I did not my regular synocli package tests, but at least nmap does not have the kernel issue reported here, tested on three different systems with kernel versions 2.6,32.12, 3.2.110 and 4.4.59+.
@hgy59 i tested it again. it works with 2.3-17 and stops working with 2.4-18.
you're right i manually updated the package after it gave me a update notification.
@hgy59, @th0ma7, one of the last changes I noted in #5820 (Aug 12, 2023) for nmap
was the move from:
to
Would the change to openssl3
be possibly contributing to this? I know there is at least one patch for that package which treats with the special needs of 88f628x CPU archs:
EDIT: Alternatively, this could be due to a change in the libpcap
requirements, as it was associated with #5985:
to
@mariopaumann for futher analysis I have created various packages downloadable under releases in my fork https://github.com/hgy59/spksrc/releases/tag/synocli-net-dev
The packages with nmap
only can be installed side by side to synocli-net.
So far I created nmap 7.92 and 7.94 in the current (debian 12) and in debian 11 environment.
can you please validate all of them?
After final uninstall of the nmap packages, you have to install synocli-net again to restore the symlinks to the nmap binaries (nmap package overwrites the links and removes those on uninstall).
@mariopaumann based on the latest recognition, I built a nmap package built with older libpcap for armv5 (libpcap 1.10.1). This is expected to work. (latest package in link above).
@hgy59
7.92 packages are working. 7.94 are not working. regardless of which debian build release.
the last one with pcap 1.10.1 crashes with coredump
root@ds111:~# /volume1/@appstore/nmap/bin/nmap -n -sn 192.168.0.* Starting Nmap 7.94 ( https://nmap.org ) at 2024-10-09 19:49 CEST glibc detected /volume1/@appstore/nmap/bin/nmap: double free or corruption (out): 0x003c3598 *** ======= Backtrace: ========= /lib/libc.so.6(+0x6f5b4)[0x407ec5b4] /var/packages/nmap/target/lib/libpcap.so.1(+0x490c)[0x4003590c] /var/packages/nmap/target/lib/libpcap.so.1(+0x5bec)[0x40036bec] /var/packages/nmap/target/lib/libpcap.so.1(pcap_activate+0x24)[0x4003a108] ... 40906000-40907000 rwxp 0000d000 08:01 17744 /usr/lib/libnss_files-2.15.so befd1000-befe6000 rw-p 00000000 00:00 0 [stack] Aborted (core dumped)
@mariopaumann thanks for testing. So I will try to create another package with nmap 7.94 and libpcap 1.9.1 (this version of libpcap is used in combination with nmap 7.92) If this does not work either, we will have to fallback to nmap 7.92 for ARMv5 packages.
@mariopaumann nmap 7.94 with libpcap 1.9.1 is ready for testing...
@hgy59 nmap 7.94 with libpcap 1.9.1 is working
There is a libpcap 1.10.5 btw, maybe this got fixed?
There is a libpcap 1.10.5 btw, maybe this got fixed?
no, not for ARMv5. This is by design that libpcap >= 1.10.2 does not work for 2.x kernels when kernel does not include the MMAP package. So I limitted libpcap for ARMv5 to version 1.9.1 and nmap 7.94 works. This is the current state in #6269
Ah, that explains!
@hgy59 thank you. i updated to latest synocli network tools and it's fine for me now. 👍
Is this a new Bug?
Package Name
nmap
Package Version
SynoCli Network Tools 2.4-18
Device Model
DS111
Device Architecture
ARMv5
Firmware Version
DSM 6.2.4-25556 Update 7
What happened?
Since a few days nmap shows
i think it is because SynoCli Network Tools may have been updated automatically. For DSM there is no update anymore so the kernel is the same and the command worked for years since last tuesday.
Reproduction steps
...
Install Log
Service Log
Other Logs
No response