swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ElectricFence SIGILL in initSwarm


From: Steve Emsley
Subject: ElectricFence SIGILL in initSwarm
Date: Mon, 8 Jun 1998 04:05:30 +0100

Having linked my app to Electric Fence to check whether mixing malloc
and alloc was leading to problems I received the following stack trace
... even when I truncate the program to:

int
main (int argc, const char **argv)
{
... several declarations
... some definitions

  initSwarm (argc, argv);
    
  return 0;
... rest of program


  Electric Fence 2.0.5 Copyright (C) 1987-1995 Bruce Perens.
Double word alignment of malloc allocations not guaranteed on local
machine architecture.  Please report to address@hidden
Standard fixup taken, execution continuing...

ElectricFence Aborting: free(42f56ff0): address not from malloc().

Program received signal SIGILL, Illegal instruction.
0x400dc131 in __kill ()
(gdb) bt
#0  0x400dc131 in __kill ()
#1  0x816e887 in EF_Abort ()
#2  0x816e3a5 in free ()
#3  0x809d510 in _i_Zone_c__freeBlock_blockSize_ (self=0x42ba6fd8, 
    _cmd=0x81d64e8, aBlock=0x42f56ff0, size=10) at Zone.m:326
#4  0x8092bdb in _i_String_c__catC_ (self=0x42f54fe8, _cmd=0x81d64f0, 
    cstring=0x8174db1 "/.swarmArchiver") at String.m:135
#5  0x8092c0e in _i_String_c__appendC_ (self=0x42f54fe8, _cmd=0x81c2244, 
    cstring=0x8174db1 "/.swarmArchiver") at String.m:143
#6  0x805e22f in _c_Archiver__load_ (self=0x81c220c, _cmd=0x81c254c, 
    aZone=0x42ba6fd8) at Archiver.m:32
#7  0x805e30e in _c_Archiver__ensure_ (self=0x81c220c, _cmd=0x81dd168, 
    aZone=0x42ba6fd8) at Archiver.m:292
#8  0x80a4c13 in initSwarm (argc=1, argv=0xbffff4a8) at simtools.m:31
#9  0x804d0b8 in main (argc=1, argv=0xbffff4a8) at main.m:48


Can anyone explain this. I shouldn't think it's a real error since the
model certainly runs beyond the initSwarm call. However, ElectricFence
gets stuck here so is no good for furthur debugging.

Linux Redhat 5.0
Swarm 1.1
gcc 2.8.0
Pentium 150 o/c 166 96Mb

Cheers,
Steve  
-- 
---------------------------------------------------------------------
 Steve Emsley                 Ecosystems Analysis & Management Group
 address@hidden              University of Warwick, England
 http://www.oikos.warwick.ac.uk/~sme/           (+44) (0)1598 753648
---------------------------------------------------------------------

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]