You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Peter Chou (JIRA)" <ji...@apache.org> on 2016/03/03 21:53:18 UTC
[jira] [Created] (TS-4252) background_fetch.so segfaults with no
arguments as a global plugin.
Peter Chou created TS-4252:
------------------------------
Summary: background_fetch.so segfaults with no arguments as a global plugin.
Key: TS-4252
URL: https://issues.apache.org/jira/browse/TS-4252
Project: Traffic Server
Issue Type: Bug
Components: Plugins
Reporter: Peter Chou
In "plugin.config" if we just do background_fetch.so with no arguments we get a segmentation fault with messages saying invalid option with argument text from previous lines in the configuration file. If I just add a garbage argument like "background_fetch.so bleah" there is no fault.
I noticed that this plugin initialized optind to 1 before calling getopt_long while others such as tcpinfo set it to 0. Setting it to 0 also prevents the fault. Is this the correct fix?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)