Thread: glibc detected: what can I do?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Registered User
    Join Date
    May 2010
    Posts
    50
    Quote Originally Posted by Salem View Post
    The problem is, you're trying to free something which you didn't get from malloc.
    ok, that was my guess...but it works in C. Calling the shared library in R causes this. Ok, for the moment forget about this...
    The point is that I can't allocate in this way
    Code:
    static struct Subinterval *pinterval=malloc( sizeof(struct Subinterval*) );
    because the compiler says " error: initializer element is not constant".. Do you have a suggestion?
    Last edited by violatro; 06-10-2010 at 11:18 AM.
    ai confini della conoscenza

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. *** glibc detected *** free(): invalid next size
    By kraghavan in forum C++ Programming
    Replies: 3
    Last Post: 05-11-2010, 07:17 AM
  2. *** glibc detected *** a.out: realloc()
    By msshapira in forum C Programming
    Replies: 9
    Last Post: 01-27-2009, 09:49 AM
  3. glibc detected malloc(): memory corruption
    By totalnewbie in forum C Programming
    Replies: 6
    Last Post: 01-12-2009, 06:21 AM
  4. Replies: 7
    Last Post: 11-26-2007, 01:11 PM
  5. *** glibc detected *** free(): invalid next size
    By icebabe in forum C Programming
    Replies: 2
    Last Post: 05-24-2006, 12:09 PM