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

Susan Hinrichs commented on TS-1254:
------------------------------------

Set up a plugin that removes a field and then destroys it.  Saw no assert.  
Walked through the code as well and the second detach is the 
mime_hdr_field_detach is indeed being called and catching things before the 
is_alive is checked.

I assume this was fixed sometime along the way from 3.x to now.

> Using TSMimeHdrFieldDestroy after TSMimeHdrFieldRemove asserts when using 
> --enable-debug
> ----------------------------------------------------------------------------------------
>
>                 Key: TS-1254
>                 URL: https://issues.apache.org/jira/browse/TS-1254
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: MIME
>            Reporter: B Wyatt
>            Assignee: Susan Hinrichs
>            Priority: Minor
>
> ts.h indicates that if you wish to destroy a "removed" header you should call 
> TSMimeHdrFieldDestroy and TSHandleMLocRelease, however when --enable-debug is 
> passed to configure the following assert is hit:
> {noformat}FATAL: MIME.cc:1496: failed assert `field->is_live()`{noformat}
> it seems that this assert would trip for any call to mime_hdr_field_delete if 
> the field was previously detached.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to