iPhone MWI EXC_BAD_ACCESS

JS
Jonathan Simmonds
Wed, Dec 20, 2017 2:44 PM

Hi,

In my method for processing MWI information I do the following:

void *messageBuffer = mwi_info.rdata->msg_info.msg->body->data;

Today I received a crash report detailing an EXC_BAD_ACCESS caused by “attempting to dereference garbage pointer”.

What could have potentially caused this?  If I can’t do anything to stop it then what can I do to handle it?

Thanks,

Jonathan

Jonathan Simmonds
Software Engineer

tel. 01202 901222 email. jonathan@atech.mediamailto:jonathan@atech.media web. https://atech.media

This e-mail has been sent by aTech Media Limited (or one of its assoicated group companys, Dial 9 Communications Limited or Viaduct Hosting Limited). Its contents are confidential therefore if you have received this message in error, we would appreciate it if you could let us know and delete the message. aTech Media Limited is a UK limited company, registration number 5523199. Dial 9 Communications Limited is a UK limited company, registration number 7740921. Viaduct Hosting Limited is a UK limited company, registration number 8514362. All companies are registered at Unit 9 Winchester Place, North Street, Poole, Dorset, BH15 1NX.

Hi, In my method for processing MWI information I do the following: void *messageBuffer = mwi_info.rdata->msg_info.msg->body->data; Today I received a crash report detailing an EXC_BAD_ACCESS caused by “attempting to dereference garbage pointer”. What could have potentially caused this? If I can’t do anything to stop it then what can I do to handle it? Thanks, Jonathan Jonathan Simmonds Software Engineer tel. 01202 901222 email. jonathan@atech.media<mailto:jonathan@atech.media> web. https://atech.media This e-mail has been sent by aTech Media Limited (or one of its assoicated group companys, Dial 9 Communications Limited or Viaduct Hosting Limited). Its contents are confidential therefore if you have received this message in error, we would appreciate it if you could let us know and delete the message. aTech Media Limited is a UK limited company, registration number 5523199. Dial 9 Communications Limited is a UK limited company, registration number 7740921. Viaduct Hosting Limited is a UK limited company, registration number 8514362. All companies are registered at Unit 9 Winchester Place, North Street, Poole, Dorset, BH15 1NX.
SM
s.marek@avm.de
Wed, Dec 20, 2017 2:54 PM

Afaik body is NULL when the MWI subscription is running out. So you need
to check and handle that case before accessing ...body->data.

Sebastian.

"pjsip" pjsip-bounces@lists.pjsip.org schrieb am 20.12.2017 15:44:11:

Von: Jonathan Simmonds jonathan@atech.media
An: "pjsip@lists.pjsip.org" pjsip@lists.pjsip.org
Datum: 20.12.2017 15:45
Betreff: [pjsip] iPhone MWI EXC_BAD_ACCESS
Gesendet von: "pjsip" pjsip-bounces@lists.pjsip.org

Hi,

In my method for processing MWI information I do the following:

void *messageBuffer = mwi_info.rdata->msg_info.msg->body->data;

Today I received a crash report detailing an EXC_BAD_ACCESS caused
by “attempting to dereference garbage pointer”.

What could have potentially caused this?  If I can’t do anything to
stop it then what can I do to handle it?

Thanks,

Jonathan

Jonathan Simmonds
Software Engineer

tel. 01202 901222 email. jonathan@atech.media web. https://atech.media

This e-mail has been sent by aTech Media Limited (or one of its
assoicated group companys, Dial 9 Communications Limited or Viaduct
Hosting Limited). Its contents are confidential therefore if you
have received this message in error, we would appreciate it if you
could let us know and delete the message. aTech Media Limited is a
UK limited company, registration number 5523199. Dial 9
Communications Limited is a UK limited company, registration number
7740921. Viaduct Hosting Limited is a UK limited company,
registration number 8514362. All companies are registered at Unit 9
Winchester Place, North Street, Poole, Dorset, BH15 1NX.


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Afaik body is NULL when the MWI subscription is running out. So you need to check and handle that case before accessing ...body->data. Sebastian. "pjsip" <pjsip-bounces@lists.pjsip.org> schrieb am 20.12.2017 15:44:11: > Von: Jonathan Simmonds <jonathan@atech.media> > An: "pjsip@lists.pjsip.org" <pjsip@lists.pjsip.org> > Datum: 20.12.2017 15:45 > Betreff: [pjsip] iPhone MWI EXC_BAD_ACCESS > Gesendet von: "pjsip" <pjsip-bounces@lists.pjsip.org> > > Hi, > > In my method for processing MWI information I do the following: > > void *messageBuffer = mwi_info.rdata->msg_info.msg->body->data; > > Today I received a crash report detailing an EXC_BAD_ACCESS caused > by “attempting to dereference garbage pointer”. > > What could have potentially caused this? If I can’t do anything to > stop it then what can I do to handle it? > > Thanks, > > Jonathan > > > Jonathan Simmonds > Software Engineer > > tel. 01202 901222 email. jonathan@atech.media web. https://atech.media > > This e-mail has been sent by aTech Media Limited (or one of its > assoicated group companys, Dial 9 Communications Limited or Viaduct > Hosting Limited). Its contents are confidential therefore if you > have received this message in error, we would appreciate it if you > could let us know and delete the message. aTech Media Limited is a > UK limited company, registration number 5523199. Dial 9 > Communications Limited is a UK limited company, registration number > 7740921. Viaduct Hosting Limited is a UK limited company, > registration number 8514362. All companies are registered at Unit 9 > Winchester Place, North Street, Poole, Dorset, BH15 1NX. > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org