[
https://issues.apache.org/jira/browse/TS-1205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13261482#comment-13261482
]
Zhao Yongming commented on TS-1205:
-----------------------------------
here is a quick fix for this:
{code}
diff --git a/lib/records/RecUtils.cc b/lib/records/RecUtils.cc
index b47310f..a337efc 100644
--- a/lib/records/RecUtils.cc
+++ b/lib/records/RecUtils.cc
@@ -86,7 +86,7 @@ RecDataSet(RecDataT data_type, RecData * data_dst, RecData *
data_src)
}
} else if (((data_dst->rec_string) && (strcmp(data_dst->rec_string,
data_src->rec_string) != 0)) ||
((data_dst->rec_string == NULL) && (data_src->rec_string !=
NULL))) {
- ats_free(data_dst->rec_string);
+ if (data_dst->rec_string) ats_free(data_dst->rec_string);
data_dst->rec_string = ats_strdup(data_src->rec_string);
rec_set = true;
}
lines 1-13/13 (END)
{code}
> Crash report: double free when RecDataSet in cluster mode
> ---------------------------------------------------------
>
> Key: TS-1205
> URL: https://issues.apache.org/jira/browse/TS-1205
> Project: Traffic Server
> Issue Type: Bug
> Components: Clustering, Configuration
> Affects Versions: 3.1.3
> Environment: v3.0.x, with cluster mode 2
> Reporter: Zhao Yongming
> Assignee: kuotai
> Fix For: 3.3.0
>
>
> we have seen some config system syncing config files in cluster mode.
> {code}
> *** glibc detected *** /usr/bin/traffic_server: double free or corruption
> (fasttop): 0x00002b639c0009a0 ***
> ======= Backtrace: =========
> /lib64/libc.so.6[0x3f8f0750c6]
> /usr/bin/traffic_server(RecDataSet(RecDataT, RecData*,
> RecData*)+0xb8)[0x65dd58]
> /usr/bin/traffic_server(RecForceInsert(RecRecord*)+0x74)[0x6584b4]
> /usr/bin/traffic_server[0x65cd62]
> /usr/bin/traffic_server(RecMessageRecvThis(void*, char*, int)+0x16)[0x65ed46]
> /usr/bin/traffic_server(BaseManager::executeMgmtCallback(int, char*,
> int)+0x3d)[0x5b562d]
> /usr/bin/traffic_server(ProcessManager::processEventQueue()+0x29)[0x5b5d49]
> /usr/bin/traffic_server(startProcessManager(void*)+0x8d)[0x5b633d]
> /lib64/libpthread.so.0[0x3f8f4077f1]
> /lib64/libc.so.6(clone+0x6d)[0x3f8f0e570d]
> ======= Memory map: ========
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira