By Brandon Bailey, AP Technology Writer

A newly-discovered glitch in Apple’s software can cause iPhones to mysteriously shut down when they receive a certain text message.

Apple says it’s aware of the problem and is working on a fix. But some pranksters are sharing information about the glitch on social media and using it to crash other peoples’ phones.

READ MORE: Dorchester Church Joins National Father's Day Challenge, Calls For 'Summer Of Peace'

Read: Daily Talker: iPhone Glitch

The problem only occurs when the iPhone receives a message with a specific string of characters, including some Arabic characters, according to several tech blogs.

READ MORE: Massachusetts Reports 41 New COVID Cases, 5 Additional Deaths

When an iPhone isn’t being used, it typically shows a shortened version of the message on the phone’s lock screen. That shortened combination of characters apparently triggers the crash.

Affected phones will restart automatically.

Owners can prevent the problem by using phone settings to turn off the message “previews” feature.

MORE NEWS: 'Devastating': 1-Year-Old Angelo Nicoloro Drowned During Wrentham Father's Day Celebration

Copyright 2015 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.