[asterisk-dev] Bad magic number error
Moises Silva
moises.silva at gmail.com
Sat Nov 17 09:28:59 CST 2007
Chrisophe,
I think you should fill a bug in http://bugs.digium.com/ , please read
the bug guidelines that you can find there too.
Moy
On Nov 17, 2007 1:56 AM, Christophe Saigne <csaigne at free.fr> wrote:
> Hi,
> I guess it's not the right place to post this, but i got no response on
> users forum.
>
> With latest versions of asterisk using astobj2.c file I have an error Bad
> magic number when I receive a IAX call and Asterik quit.
> All works fine in 1.4.10 version.
>
> Here is the function in astobj2.c wich give the error:
>
> /*!
> * \brief convert from a pointer _p to a user-defined object
> *
> * \return the pointer to the astobj2 structure
> */
> static inline struct astobj2 *INTERNAL_OBJ(void *user_data)
> {
> struct astobj2 *p;
>
> if (!user_data) {
> ast_log(LOG_ERROR, "user_data is NULL\n");
> return NULL;
> }
>
> p = (struct astobj2 *) ((char *) user_data - sizeof(*p));
> if (AO2_MAGIC != (p->priv_data.magic) ) {
> ast_log(LOG_ERROR, "bad magic number 0x%x for %p\n", p->priv_data.magic, p);
> p = NULL;
> }
>
> return p;
> }
>
> Asterisk run on Mac osx ppc with Tiger
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-dev
>
--
"Within C++, there is a much smaller and cleaner language struggling
to get out."
More information about the asterisk-dev
mailing list