[MacPorts] #62369: clamdscan segmentation fault in version
MacPorts
noreply at macports.org
Sun Apr 11 19:33:28 UTC 2021
#62369: clamdscan segmentation fault in version
------------------------+------------------------
Reporter: essandess | Owner: danielluke
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Resolution: | Keywords:
Port: clamav |
------------------------+------------------------
Comment (by essandess):
Passing the flag {{{--fdpass}}} causes the issue.
Here's What I see from a core dump:
Enable core dumps:
{{{
ulimit -c unlimited
sudo launchctl limit core unlimited
}}}
Dump core:
{{{
sudo clamdscan --multiscan --quiet --fdpass --move=/opt/Quarantine/
--log=/opt/local/var/log/clamav/ClamavScanSchedule.log
Segmentation fault: 11
}}}
Disable core dumps:
{{{
ulimit -c 0
sudo launchctl limit core 0 unlimited
}}}
Stack trace:
{{{
$ lldb `which clamdscan` -c /cores/core.67147
(lldb) target create "/opt/local/bin/clamdscan" --core "/cores/core.67147"
Core file '/cores/core.67147' (x86_64) was loaded.
(lldb) bt all
* thread #1, stop reason = signal SIGSTOP
* frame #0: 0x00007fff67ef8bb0
libsystem_platform.dylib`_platform_strncpy + 112
frame #1: 0x000000010801c086 clamdscan`match_regex + 129
frame #2: 0x0000000108018af0 clamdscan`chkpath + 64
frame #3: 0x0000000108019205 clamdscan`parallel_callback + 110
frame #4: 0x00000001081841c1 libclamav.9.dylib`cli_ftw + 271
frame #5: 0x00000001080190d6 clamdscan`parallel_client_scan + 172
frame #6: 0x000000010801a2d4 clamdscan`client_scan + 222
frame #7: 0x000000010801a1b0 clamdscan`client + 940
frame #8: 0x0000000108017f3c clamdscan`main + 728
frame #9: 0x00007fff67d01cc9 libdyld.dylib`start + 1
}}}
--
Ticket URL: <https://trac.macports.org/ticket/62369#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list