You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2016/03/06 21:26:40 UTC
[jira] [Updated] (TS-4252) background_fetch.so segfaults with no
arguments as a global plugin.
[ https://issues.apache.org/jira/browse/TS-4252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leif Hedstrom updated TS-4252:
------------------------------
Affects Version/s: 6.2.0
> 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
> Affects Versions: 6.2.0
> Reporter: Peter Chou
> Assignee: Leif Hedstrom
>
> 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)