Disease of fruite tree
Where are you writing from? Knowing the region may help narrow the problem.
I see you asked this question several times and all but this question were marked Private but this is a Public searchable question. This question was answered by Micheal Bush.
This damage is very similar to a beetle borer of fruit trees found in the USA called the shothole borer, Scolytus rugulosus. This pest was introduced to the USA from Europe and Asia. The beetle itself typically invades Prunus fruit trees that are under stress and dying. Here in the desert-like environment (6 to 8 inches of precipitation) of Eastern Washington State, the beetles often invade trees that suffer from insufficient watering or irrigation. Thus these beetles are OFTEN secondary invaders taking advantage of stressed trees, but if there are nearby trees that are infested with this beetle, the beetle can be a primary cause of tree death. The curlicue or "pigtail" shaped structures is tree sap that the tree is trying to "bleed out" the invading beetle. The larvae of this beetle do bore into the tree, just under the bark. For more information on the beetle and management, follow this links:
Please note that the pesticide recommendations provided by these links are for Washington State and may not be applicable to your country.
-Michael Bush, WA State University Extension, Yakima, WA, USA
Posted 4 days ago