Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #15098

Re: Memory leaking in memmove

From ArifulHossain tuhin <etothepowerpi@gmail.com>
Newsgroups comp.lang.c
Subject Re: Memory leaking in memmove
Date 2011-12-28 03:50 -0800
Organization http://groups.google.com
Message-ID <19848468.838.1325073016070.JavaMail.geo-discussion-forums@prlu4> (permalink)
References <15848343.42.1325064299310.JavaMail.geo-discussion-forums@prdv33> <c74eb109-792e-4d93-91c9-842b966907f4@f33g2000yqh.googlegroups.com> <23252303.950.1325068627929.JavaMail.geo-discussion-forums@preg25> <bca9950e-3fb2-474e-9cbd-3ed05c258839@z12g2000yqm.googlegroups.com>

Show all headers | View raw


On Wednesday, December 28, 2011 5:36:59 PM UTC+6, Nick Keighley wrote:
> On Dec 28, 10:37 am, ArifulHossain tuhin <etothe...@gmail.com>
> wrote:
> 
> > The app crashes with seg fault. Coredump's backtrace shows it occurs in memove() statements.
> 
> that doesn't sound like a memory leak to me.

Sorry for the mistake. Actually its "SegFaulting".
> Print (or use a debugger)
> the values of the parameters passed to the memmove(). In fact why not
> just use a debugger? A debugger can also be used on a core dump.
> 

I have used gdb to print the parameters passed to memove(). But i'm unsure what to do with it. Any suggestion ? what should i do with the parameters?

> > The packet comes from network, its a RTP packet embedded in UDP payload.
> 
> I meant, how was it allocated.

rtp_packet is allocated dynamically. But the data.buf field is allocated as you see as static allocation.

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Memory leaking in memmove ArifulHossain tuhin <etothepowerpi@gmail.com> - 2011-12-28 01:24 -0800
  Re: Memory leaking in memmove Nick Keighley <nick_keighley_nospam@hotmail.com> - 2011-12-28 02:20 -0800
    Re: Memory leaking in memmove ArifulHossain tuhin <etothepowerpi@gmail.com> - 2011-12-28 02:37 -0800
      Re: Memory leaking in memmove Philip Lantz <prl@canterey.us> - 2011-12-28 02:42 -0800
      Re: Memory leaking in memmove Nick Keighley <nick_keighley_nospam@hotmail.com> - 2011-12-28 03:36 -0800
        Re: Memory leaking in memmove ArifulHossain tuhin <etothepowerpi@gmail.com> - 2011-12-28 03:50 -0800
      Re: Memory leaking in memmove Seebs <usenet-nospam@seebs.net> - 2011-12-28 18:17 +0000
  Re: Memory leaking in memmove Philip Lantz <prl@canterey.us> - 2011-12-28 02:36 -0800
    Re: Memory leaking in memmove ArifulHossain tuhin <etothepowerpi@gmail.com> - 2011-12-28 03:57 -0800
      Re: Memory leaking in memmove Dr Nick <3-nospam@temporary-address.org.uk> - 2011-12-28 12:21 +0000
        Re: Memory leaking in memmove ArifulHossain tuhin <etothepowerpi@gmail.com> - 2011-12-28 04:26 -0800
      Re: Memory leaking in memmove jt@toerring.de (Jens Thoms Toerring) - 2011-12-28 12:46 +0000
  Re: Memory leaking in memmove ArifulHossain tuhin <etothepowerpi@gmail.com> - 2011-12-28 05:54 -0800
  Re: Memory leaking in memmove Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-12-28 14:46 +0000
    Re: Memory leaking in memmove Philip Lantz <prl@canterey.us> - 2011-12-28 12:20 -0800
      Re: Memory leaking in memmove Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-12-28 21:50 +0000
  Re: Memory leaking in memmove Barry Schwarz <schwarzb@dqel.com> - 2011-12-28 10:36 -0800

csiph-web