These are classic symptoms of a memory problem in your program. 
Somewhere you have overstepped an array or accessed a null
pointer.

The problem occurred somewhere before free, but only manifested itself
once you called free. That is the trouble with memory errors, where the
debugger shows you the core dump occurred is not actually where
the bad access occurred.

The fact it runs different on different architectures may be due to
different initialization of variables, or any other number of factors.

A suggestion mighnt be to look at electric fence for finding the problem
(man libefence), as this will show you where the first bad access occurred.

As a rule of thumb, when things go wrong I usually think I must have
done something stupid :) and problems are *typically* not with the system.

On Mon, 04 May 1998, Alex Heiphetz wrote:
>I'm having a weird problem with free() behaviour under Linux.
>The program compiles fine, but in runtime it
>*sometimes* dumps core which, thanks to gdb, can be
>traced to free() calls. This is especially true when calls
>to free() repeat, i.e. within the loop. Second free() is
>guaranteed to dump core while first does it sometimes.
>On BSDI and freeBSD same program runs perfectly every time.
>
>I'm running RH5.0 with libc5-4-x and glibc installed.
>
>I would appreciate any comments since I'm afraid it
>might be something deep in the system/libraries
>and I'm not a system guy.
>
>Thanks,
>A.Heiphetz
>
>
> 
>
>
>-- 
>  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
>http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
>         To unsubscribe: mail [EMAIL PROTECTED] with 
>                       "unsubscribe" as the Subject.

--
+-=-+--=-+=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+
Mark R. Stevens              Research Assistant
Computer Science Department  email: [EMAIL PROTECTED]
Colorado State University    phone: 970-491-1943
Fort Collins, CO 80526       url:   http://www.cs.colostate.edu/~stevensm


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to