Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
84 Views

memcpy causes an RTM abort?

Hi,
I'm new in using intel tsx so, please correct me on any terminological/conceptional mistake.
I'm trying to use RTM on a project. I have multiple code segments causing a transaction failure and I'm trying to address those issues one by one. I have the following code segment,

int result=-1;

unsigned status;
while(result!=1){
   if ((status = _xbegin()) == _XBEGIN_STARTED) {
      memcpy(private_plaintext,private_decrypt,986);
      result=1;
      _xend();
   }else{ 
      printf("Block 1: Transaction failed\n");
     printf("status is %ld\n", status);
  }
  printf("Block 1: Result is %d\n", result);

}

that memcpy is causing transaction failure. I'm getting the following output,

.
.
.
Block 1: Transaction failed
status is 0
Block 1: Result is -1
.
.


Any help, why this is happening and how can I solve it?

Thank you.

Labels (1)
0 Kudos
2 Replies
Highlighted
52 Views

Hello Alam__Shariful, 

 

Thank you for posting on the Intel® communities.   

 

We are checking this thread and based on the details described we noticed that this seems to be related to the development of a software. 

 

Based on that, we will move this thread to Software Products > Software Development Tools > Intel® C++ Compiler. However, there are several topics that you can choose based on your inquiry. 

Sebastian_M_Intel_0-1600191457639.png

 

 

Regards, 

 

Sebastian M  

Intel Customer Support Technician  

 

0 Kudos
Highlighted
Moderator
35 Views

Hi,


Forwarding this thread to TSX subject matter experts(SMEs). They will get back to you soon.



Thanks,

Rahul


0 Kudos