A
A
Alexander2016-03-03 19:39:01
linux
Alexander, 2016-03-03 19:39:01

Global variable has different addresses in different threads, why?

Good evening! Tell me what's the problem? On x86 Ubuntu 12.04 everything is fine, on CentOS 6.5 64 bit there is a problem with addresses, the global variable has a different address in different threads. Posix streams. I see different addresses in the debugger and printing. Because of this memko does not work correctly.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2016-03-04
@jcmvbkbc

global variable has different address in different threads

Just global, if it's not TLS, it's unlikely. Show the line with the definition of the variable.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question