Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DS214: broken dig #6441

Closed
1 task done
btro1404 opened this issue Feb 5, 2025 · 1 comment · Fixed by #6442
Closed
1 task done

DS214: broken dig #6441

btro1404 opened this issue Feb 5, 2025 · 1 comment · Fixed by #6442
Assignees

Comments

@btro1404
Copy link

btro1404 commented Feb 5, 2025

Is this a new Bug?

  • I checked that the bug hasn't been reported before

Package Name

synocli-net

Package Version

2.4-19

Device Model

DS214

Device Architecture

ARMv7

Firmware Version

DSM 6.2.4-25556 Update 8

What happened?

I axpect the "dig" command will work but it produce an error:

netmgr/udp.c:988: fatal error: RUNTIME_CHECK(result == ISC_R_SUCCESS || result == ISC_R_NOTIMPLEMENTED) failed
Aborted (core dumped)

Reproduction steps

  1. root@NAS_bt:/# dig
    netmgr/udp.c:988: fatal error: RUNTIME_CHECK(result == ISC_R_SUCCESS || result == ISC_R_NOTIMPLEMENTED) failed
    Aborted (core dumped)

  2. root@NAS_bt:/# dig -v
    DiG 9.17.22

  3. root@NAS_bt:/# ls -l /var/packages/synocli-net/target/bin/dig
    -rwxr-xr-x 1 root root 109652 Oct 15 23:58 /var/packages/synocli-net/target/bin/dig

Install Log

2025/02/05 12:23:06     uninstall synocli-net 2.4-19 Begin start-stop-status stop
2025/02/05 12:23:06     uninstall synocli-net 2.4-19 End start-stop-status stop ret=[0]
2025/02/05 12:23:07     uninstall synocli-net 2.4-19 Begin preuninst
2025/02/05 12:23:07     Begin initialize_variables
2025/02/05 12:23:07     End initialize_variables
2025/02/05 12:23:07     ===> Step preuninst. STATUS=UNINSTALL USER= GROUP= SHARE_PATH=
2025/02/05 12:23:07     uninstall synocli-net 2.4-19 End preuninst ret=[0]
2025/02/05 12:23:07     uninstall synocli-net 2.4-19 Begin /bin/rm -rf /volume1/@appstore/synocli-net
2025/02/05 12:23:08     uninstall synocli-net 2.4-19 End /bin/rm -rf /volume1/@appstore/synocli-net ret=[0]
2025/02/05 12:23:08     uninstall synocli-net 2.4-19 Begin postuninst
2025/02/05 12:23:08     Begin initialize_variables
2025/02/05 12:23:08     End initialize_variables
2025/02/05 12:23:08     ===> Step postuninst. STATUS=UNINSTALL USER= GROUP= SHARE_PATH=
2025/02/05 12:23:08     uninstall synocli-net 2.4-19 End postuninst ret=[0]
2025/02/05 12:24:44     install synocli-net 2.4-19 Begin preinst
2025/02/05 12:24:45     Begin initialize_variables
2025/02/05 12:24:45     End initialize_variables
2025/02/05 12:24:45     ===> Step preinst. STATUS=INSTALL USER= GROUP= SHARE_PATH=
2025/02/05 12:24:45     install synocli-net 2.4-19 End preinst ret=[0]
2025/02/05 12:24:45     install synocli-net 2.4-19 Begin /bin/rm -rf /volume1/@appstore/synocli-net
2025/02/05 12:24:45     install synocli-net 2.4-19 End /bin/rm -rf /volume1/@appstore/synocli-net ret=[0]
2025/02/05 12:24:45     install synocli-net 2.4-19 Begin /bin/mv -f /volume1/@tmp/pkginstall/package /volume1/@appstore/synocli-net
2025/02/05 12:24:45     install synocli-net 2.4-19 End /bin/mv -f /volume1/@tmp/pkginstall/package /volume1/@appstore/synocli-net ret=[0]
2025/02/05 12:24:45     install synocli-net 2.4-19 Begin /bin/rm -rf /var/packages/synocli-net
2025/02/05 12:24:45     install synocli-net 2.4-19 End /bin/rm -rf /var/packages/synocli-net ret=[0]
2025/02/05 12:24:45     install synocli-net 2.4-19 Begin /bin/mkdir -p /var/packages/synocli-net
2025/02/05 12:24:45     install synocli-net 2.4-19 End /bin/mkdir -p /var/packages/synocli-net ret=[0]
2025/02/05 12:24:45     install synocli-net 2.4-19 Begin /bin/mv -f /volume1/@tmp/pkginstall/INFO /var/packages/synocli-net/INFO
2025/02/05 12:24:45     install synocli-net 2.4-19 End /bin/mv -f /volume1/@tmp/pkginstall/INFO /var/packages/synocli-net/INFO ret=[0]
2025/02/05 12:24:45     install synocli-net 2.4-19 Begin /bin/rm -rf /var/packages/synocli-net/scripts
2025/02/05 12:24:45     install synocli-net 2.4-19 End /bin/rm -rf /var/packages/synocli-net/scripts ret=[0]
2025/02/05 12:24:45     install synocli-net 2.4-19 Begin /bin/mv -f /volume1/@tmp/pkginstall/scripts /var/packages/synocli-net/scripts
2025/02/05 12:24:45     install synocli-net 2.4-19 End /bin/mv -f /volume1/@tmp/pkginstall/scripts /var/packages/synocli-net/scripts ret=[0]
2025/02/05 12:24:45     install synocli-net 2.4-19 Begin /bin/rm -rf /var/packages/synocli-net/conf
2025/02/05 12:24:45     install synocli-net 2.4-19 End /bin/rm -rf /var/packages/synocli-net/conf ret=[0]
2025/02/05 12:24:45     install synocli-net 2.4-19 Begin /bin/mv -f /volume1/@tmp/pkginstall/conf /var/packages/synocli-net/conf
2025/02/05 12:24:45     install synocli-net 2.4-19 End /bin/mv -f /volume1/@tmp/pkginstall/conf /var/packages/synocli-net/conf ret=[0]
2025/02/05 12:24:47     install synocli-net 2.4-19 Begin postinst
2025/02/05 12:24:48     Begin initialize_variables
2025/02/05 12:24:48     End initialize_variables
2025/02/05 12:24:48     ===> Step postinst. STATUS=INSTALL USER= GROUP= SHARE_PATH=
2025/02/05 12:24:48     Begin save_wizard_variables
2025/02/05 12:24:48     End save_wizard_variables
2025/02/05 12:24:48     install synocli-net 2.4-19 End postinst ret=[0]
2025/02/05 12:24:53     install synocli-net 2.4-19 Begin start-stop-status start
2025/02/05 12:24:53     install synocli-net 2.4-19 End start-stop-status start ret=[0]
2025/02/05 12:24:53     install synocli-net 2.4-19 Begin /bin/rm -rf /volume1/@tmp/pkginstall
2025/02/05 12:24:53     install synocli-net 2.4-19 End /bin/rm -rf /volume1/@tmp/pkginstall ret=[0]

Service Log


Other Logs


@btro1404 btro1404 added the bug label Feb 5, 2025
@hgy59 hgy59 self-assigned this Feb 5, 2025
@hgy59
Copy link
Contributor

hgy59 commented Feb 5, 2025

@btro1404 issue is identified.
the same error occurs with delv command.

The crash is related to generic ARMv7 archs
some of the archs do support SO_REUSEPORT and some do not.

I can reproduce this issue on DS115j (armada370 cpu)
like DS214 (armadaxp) it does not support SO_REUSEPORT
but for generic ARMv7 we use armada385 toolchain and this cpu does support SO_REUSEPORT

I created diyspk/bind for armada370 and dig and delv do not crash.

So we have to find a way to disable SO_REUSEPORT for ARMv7 archs when building bind tools.

hgy59 added a commit to hgy59/spksrc that referenced this issue Feb 5, 2025
- patch sources to ignore SO_REUSEPORT for compatibility with all archs of ARMv7 (fixes SynoCommunity#6441)
@hgy59 hgy59 closed this as completed in 8951c9e Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants