You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Eric Balsa (JIRA)" <ji...@apache.org> on 2011/05/31 21:48:47 UTC

[jira] [Commented] (TS-798) traffic_server crash if add non-existent plugin in remap rule

    [ https://issues.apache.org/jira/browse/TS-798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13041786#comment-13041786 ] 

Eric Balsa commented on TS-798:
-------------------------------

My only comment is that we should exit on "remap parsing failure" and not continue startup (as it seems we do now). It would be confusing for users having a remap configuration where only a subset of remap directives were loaded properly due to some parsing error. 

> traffic_server crash if add non-existent plugin in remap rule
> -------------------------------------------------------------
>
>                 Key: TS-798
>                 URL: https://issues.apache.org/jira/browse/TS-798
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Remap API
>    Affects Versions: 2.1.8, 2.1.7
>         Environment: Mac OS X 10.6.7, Centos 5.4
>            Reporter: Conan Wang
>            Assignee: Leif Hedstrom
>            Priority: Minor
>             Fix For: 3.1.0
>
>         Attachments: TS-798-v2.diff, TS-798.diff
>
>
> remap.config:   map  http://www.example.com/  http://server1.example.com/   @plugin=xxx.so
> start traffic_server at port 8080, then "curl -x 127.0.0.1:8080 http://www.example.com/"
> opps.
> log:
> (http_seq) [HttpSM::do_remap_request] Remapping request
> NOTE: Traffic Server received User Sig 11 from pid: 0 uid: 0
> gdb:
> Program received signal EXC_BAD_ACCESS, Could not access memory.
> Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000017
> [Switching to process 7596 thread 0x1703]
> RemapPlugins::run_single_remap (this=0x1010fbd80) at RemapPlugins.cc:157
> 157	    toPath = map_to->path_get(&toPathLen);
> for some reason the plugin is not install correctly, so maybe it's better not to crash. :)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira