[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can someone explain me this error
From: |
Scott Christley |
Subject: |
Re: Can someone explain me this error |
Date: |
Thu, 26 Dec 2002 18:26:51 -0800 |
Hi Alex,
It is hard to determine but an initial guess would be a memory issue.
Maybe some memory is being freed twice, or memory/stack is being
overwritten somehow. All I can suggest are some techniques for
debugging:
* Compile everything with no optimization and try running the program;
sometimes optimization causes unexpected side-effects with the code.
* Run the program in the debugger and put a breakpoint at the method
with the problem (maybe dropAllocations: in DefObject.m) then when the
program reaches that point; verify that the parameters point to valid
objects, etc.
* Based upon the stack trace, I think there may be a dynamic function
call being performed (by the use of classes FCall and Arguments); OSX
has its own call stack conventions for function calls so the Swarm
source code may need to be updated to support it. I don't know if the
generic powerpc call stack conventions are sufficient.
cheers
Scott
On Thursday, December 26, 2002, at 03:54 PM, Perrone Alessandro wrote:
Hi all
I am working on MacOsX verwsion of Swarm.
SimpleCBug runs fine, but when I try simpleObserverBug, I have the
segmentation fault error.
I have changed a line on defobj.m, and now I have the following error
The gdb says
--
#6487 0x0005416c in -[Object_s dropAllocations:] (self=0x6d6fb0,
_cmd=0xbff800f0, componentAlloc=1 '\001') at DefObject.m:371
#6488 0x0005b31c in -[FCall_c dropAllocations:] (self=0x6d6fb0,
_cmd=0xbff800f0, componentAlloc=1 '\001') at FCall.m:1041
#6489 0x0005b3e0 in -[FCall_c drop] (self=0x6d6fb0, _cmd=0xbff800f0) at
FCall.m:1046
#6490 0x0004f040 in parse_opt (key=7, arg=0x0, state=0xa) at
Arguments.m:151
#6491 0x00085bf8 in group_parse (group=0x6d6430, state=0xbffff8fc,
key=10, arg=0x0) at argp-parse.c:275
#6492 0x00086340 in parser_init (parser=0xbffff8e0, argp=0x6d6430,
argc=1, argv=0x6d59f8, flags=-1073743620, input=0x6d5ab8) at argp-
parse.c:560
#6493 0x00086b2c in argp_parse (argp=0xbffff860, argc=1, argv=0x6d59f8,
flags=0, end_index=0x6d5b04, input=0x6d5ab8) at argp-parse.c:866
#6494 0x0004f874 in -[Arguments_c createEnd] (self=0x6d5ab8,
_cmd=0xbff800f0) at Arguments.m:365
#6495 0x0004fb78 in +[Arguments_c
createArgc:Argv:appName:version:bugAddress:options:optionFunc:inhibitExecutableSearchFlag:
] (self=0x6d5ab8, _cmd=0xbff800f0, theArgc=1, theArgv=0xbffffc04,
theAppName=0x22607c "bug\000"..., theVersion=0x226080 "2.1\000"...,
theBugAddress=0x226084 "address@hidden"..., options=0x0,
anOptionFunc=0, theInhibitExecutableSearchFlag=0 '\000') at
Arguments.m:388
#6496 0x00004ee0 in _initSwarm_ (argc=1, argv=0xbffffc04,
appName=0x22607c "bug\000"..., version=0x226080 "2.1\000"...,
bugAddress=0x226084 "address@hidden"..., argumentsClass=0x400,
options=0x0, optionFunc=0, forceBatchMode=0 '\000',
inhibitExecutableSearchFlag=0 '\000') at SwarmEnvironment.m:279
#6497 0x00002fdc in main (argc=-1074265056, argv=0xbff800f0) at
main.m:20
#6498 0x00002b18 in _start (argc=1, argv=0xbffffc04, envp=0xbffffc0c)
at /SourceCache/Csu/Csu-45/crt.c:267
#6499 0x00002998 in start ()
---
Any hints?
ALEX
==================================
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.
==================================
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.