On Sat, 31 Mar 2007 21:39:06 +0400, Alexey Nezhdanov wrote
> Hello. I have experienced very odd crash in my custom build of gaim.
> I understand that it may be off-topic. If so can someone please
> point me to the proper place to ask such question.
>
> The essential part of the traceback is:
> #6 0x425915e9 in gaim_debug_error (category=0x6d <Address 0x6d out of
> bounds>, format=0x0)
> at debug.c:148
> #7 0x426ad8d6 in msn_servconn_got_error (servconn=0x1824bbc0,
> error=MSN_SERVCONN_ERROR_NONE)
> at servconn.c:142
>
> As you can see - msn_servconn_got_error have called gaim_debug_error
> with complete junk instead of first argument. BUT it really can't do
> so. The lines 142-143 in servconn.c are:
> gaim_debug_error("msn", "Connection error from %s server (%s):
> %s\n", name, servconn->host,
> reason);
>
> Can anybody please suggest how "msn" string become corrupted during
> simple function call? May be I am missing some compiler flag that
> makes such strings not permanent? If it makes sense - then here is
> my options that I am passing to gcc3.3.5: -pthread -fno-strict-
> aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC
Compiling with -O3 tends to throw off stack trace information. You may find
that a build compiled without any optimization will show a more believable
stack trace. I guess it's also possible that you have some sort of hideous
memory corruption.
-Mark
|