You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "maskit (via GitHub)" <gi...@apache.org> on 2024/06/06 22:00:30 UTC

Re: [I] traffic_layout remove command core dumped [trafficserver]

maskit commented on issue #9065:
URL: https://github.com/apache/trafficserver/issues/9065#issuecomment-2153472988

   I was able to reproduce the crash on master branch.
   
   It looks like `traffic_layout` assumes these directories below are under a run-root directory. If some of them are not under a run-root directory, the command fails to calculate string lengths and causes the crash.
   https://github.com/apache/trafficserver/blob/188a12834cf1b3692b62e2d5e3abd68912d3390b/src/traffic_layout/engine.h#L57-L60
   
   To reproduce, use the preset below (on master)
   ```
   {                                                                                                                                
     "name": "problematic_layout",                                                                                                  
     "hidden": true,                                                                                                                
     "cacheVariables": {                                                                                                            
       "CMAKE_INSTALL_CACHEDIR": "/tmp/problematic_layout_test_directory/trafficserver"                                             
     } 
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org