The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
'memory corruption' error when using Awk kooyee UNIX for Dummies Questions & Answers 5 07-09-2009 12:36 PM
OS is not detected CPU and memory arumsun SUN Solaris 1 06-29-2009 05:15 AM
Pointer to a struct (with pointers) *** glibc detected *** double free jatoo High Level Programming 1 12-05-2008 08:31 AM
*** glibc detected *** double free or corruption: 0x40236ff4 *** norsk hedensk High Level Programming 19 11-14-2008 01:43 PM
*** glibc detected *** free(): invalid next size (normal): 0x0000000000503e70 *** vbreddy High Level Programming 1 04-11-2006 12:18 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 3 Weeks Ago
cdbug cdbug is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 52
Why does this occur? *** glibc detected *** malloc(): memory corruption: 0x10013ff8 ***

there seems not to be error in this segment. In some computers, it can work well. But in others, it will give a failure.

why it ocurrs and how to deal with it?


in a function:
Code:
        if( *ver == NULL ) {
                *ver = (vertex *) malloc(sizeof(vertex));    //this line
                if( *ver == NULL ) {
                        printf("memory allocation error\n");
                }
        }

Last edited by pludi; 3 Weeks Ago at 08:15 AM.. Reason: code tags, please
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:37 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0