Open longjiquan opened 2 weeks ago
- Milvus version: - Deployment mode(standalone or cluster): - MQ type(rocksmq, pulsar or kafka): - SDK version(e.g. pymilvus v2.0.0rc2): - OS(Ubuntu or CentOS): - CPU/Memory: - GPU: - Others:
https://github.com/milvus-io/milvus/blob/5bb672d70da60a9e88dedaec579a4ea3d6723649/internal/querynodev2/segments/trace.go#L34-L44
spanID and traceID are local variables inner ParseCTraceContext, they may be garbage collected after return their address, so it's not safe to use them in cgo code.
ParseCTraceContext
No response
/unassign @yanliang567 /assign @czs007 @congqixia
Is there an existing issue for this?
Environment
Current Behavior
https://github.com/milvus-io/milvus/blob/5bb672d70da60a9e88dedaec579a4ea3d6723649/internal/querynodev2/segments/trace.go#L34-L44
Expected Behavior
spanID and traceID are local variables inner
ParseCTraceContext
, they may be garbage collected after return their address, so it's not safe to use them in cgo code.Steps To Reproduce
No response
Milvus Log
No response
Anything else?
No response