www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/23/15:54:52

From: cziwkga AT ulcc DOT ac DOT uk (Kevin Ashley)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: ARGH! how can I sigsev inside Malloc?!
Date: 23 Apr 1997 15:00:01 GMT
Organization: University of London Computer Centre
Lines: 18
Distribution: world
Message-ID: <5jl85h$or5@calypso.ulcc.ac.uk>
References: <335d250f DOT 178260 AT news DOT ucalgary DOT ca>
Reply-To: k DOT ashley AT ulcc DOT ac DOT uk
NNTP-Posting-Host: silver-e.ulcc.ac.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp


In article <335d250f DOT 178260 AT news DOT ucalgary DOT ca>, dunkelzan AT geocities DOT com (Paul Szuch) writes:
|>I am gettings a sigsev at Malloc +194. Can anyone give a suggestion as
|>to how I am causing this?
|>
Usually by corrupting one of the blocks you have malloced (writing off
the end of it, or writing before the beginning) or, less likely, by corrupting
malloc's internal tables. You have a pointer problem or some problem
with the size of things (e.g. you allocate 16 bytes but use 17)

A debugging malloc library, which validates all of malloc's tables
and the entire linked list of malloc'ed blocks at each call, would help
you track this down a bit. 
------------------------------------------------------------------------------
Kevin Ashley                              K DOT Ashley AT Ulcc DOT ac DOT uk
Development Manager             http://www.ulcc.ac.uk/staff/Kevin+Ashley
University of London Computer Centre.      ...ukc!ncdlab!K.Ashley
                      This is not a signature

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019