[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PULL 9/9] colo-proxy: fix memory leak
From: |
Greg Kurz |
Subject: |
Re: [Qemu-devel] [PULL 9/9] colo-proxy: fix memory leak |
Date: |
Mon, 31 Oct 2016 10:30:33 +0100 |
On Mon, 31 Oct 2016 16:05:00 +0800
Zhang Chen <address@hidden> wrote:
> On 10/31/2016 03:40 PM, Jason Wang wrote:
> >
> >
> > On 2016年10月31日 14:37, Zhang Chen wrote:
> >>
> >>
> >> On 10/30/2016 08:13 PM, Greg Kurz wrote:
> >>> On Wed, 26 Oct 2016 10:24:11 +0800
> >>> Jason Wang <address@hidden> wrote:
> >>>
> >>>> From: Zhang Chen <address@hidden>
> >>>>
> >>>> Fix memory leak in colo-compare.c and filter-rewriter.c
> >>>> Report by Coverity and add some comments.
> >>>>
> >>>> Signed-off-by: Zhang Chen <address@hidden>
> >>>> Reviewed-by: zhanghailiang <address@hidden>
> >>>> Signed-off-by: Jason Wang <address@hidden>
> >>>> ---
> >>> Hi,
> >>>
> >>> This commit breaks --enable-trace-backends=ust builds in travis (#17):
> >>>
> >>> In file included from ./trace/generated-tracers.h:5966:0,
> >>> from /home/travis/build/gkurz/qemu/include/trace.h:4,
> >>> from qapi/qapi-visit-core.c:22:
> >>> ./trace/generated-ust-provider.h:18625:3: error: unknown type name
> >>> ‘_TP_EXPROTOint’
> >>> In file included from
> >>> /home/travis/build/gkurz/qemu/include/trace.h:4:0,
> >>> from qapi/qapi-visit-core.c:22:
> >>> ./trace/generated-tracers.h: In function ‘trace_colo_compare_pkt_info’:
> >>> ./trace/generated-tracers.h:19249:432: error: expected string
> >>> literal before ‘_SDT_ASM_OPERANDS_ssize’
> >>> ./trace/generated-tracers.h:19249:432: error: implicit declaration
> >>> of function ‘__tracepoint_cb_qemu___colo_compare_pkt_info’
> >>> [-Werror=implicit-function-declaration]
> >>> ./trace/generated-tracers.h:19249:432: error: nested extern
> >>> declaration of ‘__tracepoint_cb_qemu___colo_compare_pkt_info’
> >>> [-Werror=nested-externs]
> >>> cc1: all warnings being treated as errors
> >>> make: *** [qapi/qapi-visit-core.o] Error 1
> >>> make: *** Waiting for unfinished jobs....
> >>>
> >>> https://travis-ci.org/gkurz/qemu/jobs/171641119
> >>
> >> I got your point and test it, same problem in here.
> >> I found that when trace args >10 it not work(this trace have 11 args),
> >> else it works well like that:
> >>
> >> colo_compare_pkt_info(const char *src, const char *dst, uint32_t
> >> pseq, uint32_t pack, uint32_t sseq, uint32_t sack, int res, uint32_t
> >> pflag, uint32_t sflag, const char *src1) "src/dst: %s/%s p:
> >> seq/ack=%u/%u s: seq/ack=%u/%u res=%d flags=%x/%x %s\n"
> >>
> >> So I think this bug could be related to trace system, but I review
> >> trace codes nothing be found about this.
> >> CC: stefan
> >>
> >> Thanks
> >
> > We met similar issue in the past which looks like a limitation of the
> > backend.
> >
> > Btw, Alex Bennee has posted a workaround for this, could you please
> > review or ack on that patch?
>
> Can you give me a patch name ? and about this patch, should I send a
> patch split this trace_event
> to two trace_event first ?
>
This is what Alex's patch does :)
net: split colo_compare_pkt_info into two trace events
<address@hidden>
> Thanks
> Zhang Chen
>
Cheers.
--
Greg
- [Qemu-devel] [PULL 4/9] net: eepro100: fix memory leak in device uninit, (continued)
- [Qemu-devel] [PULL 4/9] net: eepro100: fix memory leak in device uninit, Jason Wang, 2016/10/25
- [Qemu-devel] [PULL 5/9] net: rocker: set limit to DMA buffer size, Jason Wang, 2016/10/25
- [Qemu-devel] [PULL 6/9] e1000e: Don't zero out buffer address in rx descriptor, Jason Wang, 2016/10/25
- [Qemu-devel] [PULL 7/9] net: vmxnet: initialise local tx descriptor, Jason Wang, 2016/10/25
- [Qemu-devel] [PULL 8/9] net: rtl8139: limit processing of ring descriptors, Jason Wang, 2016/10/25
- [Qemu-devel] [PULL 9/9] colo-proxy: fix memory leak, Jason Wang, 2016/10/25
Re: [Qemu-devel] [PULL 0/9] Net patches, Peter Maydell, 2016/10/27