Operating System - OpenVMS
1753775 Members
7451 Online
108799 Solutions
New Discussion юеВ

Thread halt in CPP code and clears its stack

 
Vinod kumar_3
New Member

Thread halt in CPP code and clears its stack

Hello,

When we execute CPP code, in the following order, the thread gets struck/halt.

int32_t var;
int32_t var = *(int32_t *)foo.chArray;
foo is a class that contains a public for chArray.
chArray is defined as:
char*& chArray; // alias
chArray is initialized by the following statement in the constructor of the foo object.

chArray((char*&)(f_vector[1].iov_base))
// point to the buffer in the io vector table

Thanks for all your help in advance
Regards
Vinod kumar
2 REPLIES 2
John Gillings
Honored Contributor

Re: Thread halt in CPP code and clears its stack

Vinod,

You'll need to post a clearer problem description. Please post the exact steps you're performing, and the exact and complete text of any resulting error messages.

If possible post a small reproducer (a complete, runnable example).
A crucible of informative mistakes
Dennis Handly
Acclaimed Contributor

Re: Thread halt in CPP code and clears its stack

What is the type of iov_base? Is it a int32_t*?