Bug 2126377
| Summary: | traffic_cache_tool crashing with sigfault | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | customercare |
| Component: | trafficserver | Assignee: | Jered Floyd <jered> |
| Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 35 | CC: | jered, zrhoffman |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-09-20 13:58:02 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
customercare
2022-09-13 09:29:55 UTC
Update: i removed the cache.db the hard way, as no traffic_cache_tool options for clearing the cache, did something use/successfull with the newly created cache, Trafficserver started normally, is functional, but the tool does not work at all: [root@s113 trafficserver]# rm -f /var/cache/trafficserver/cache.db [root@s113 trafficserver]# systemctl start trafficserver.service [root@s113 trafficserver]# traffic_cache_tool --spans /var/cache/trafficserver/cache.db scan terminate called after throwing an instance of 'std::length_error' what(): basic_string::_M_replace_aux Abgebrochen (Speicherabzug geschrieben) Are you able to reproduce this problem with upstream? I suspect this is an upstream rather than packaging bug -- I can open one on GitHub and copy you if you'd like. This bug is caused by the misleading assumption, that it's ok to supply the cache file itself, and not the cache directory it is placed in. A good code would make a sanity check i.e. check the filesize before trying to allocate 10G of ram. I would count the segfault as bug, but it's up to you Jered, if you want to open a bug at upstream. For anyone having the "same issue" , here is how to do it correctly: # traffic_cache_tool list --spans /etc/trafficserver/storage.config 0 [1]: Directory support not yet available in my case synonyms to ... # traffic_cache_tool list --spans /var/cache/trafficserver/ 0 [1]: Directory support not yet available "Correct" does not necessarily mean, it will do anything ;) They have not been able to implement this in 10 major versions of ats.. such a shame :( I believe what's happening here is that loadSpanConfig() is trying to parse your cache.db as a config file, and hitting an assertion in doing so. (I don't see this behavior but get a different nonsensical error.) As you point out, the underlying issue is that traffic_cache_tool is not supported on directory caches. I'll add a note to this existing open issue, but I see this as an RFE rather than a bug unfortunately: https://github.com/apache/trafficserver/issues/5168 |