[Xcb] Thread safety of XCB.

John Found johnfound at evrocom.net
Wed Oct 3 13:18:11 PDT 2012


On Wed, 03 Oct 2012 21:53:35 +0200
Uli Schlachter <psychon at znc.in> wrote:

> Hi,
> 
> I think objdump won't help here. Try readelf:
> 

Here is the "readelf -d FreshProgram" for the working program:

Dynamic section at offset 0x3c19 contains 13 entries:
  Tag        Type                         Name/Value
 0x00000001 (NEEDED)                     Shared library: [libpthread.so.0]
 0x00000001 (NEEDED)                     Shared library: [libX11.so.6]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x00000001 (NEEDED)                     Shared library: [libXft.so.2]
 0x00000005 (STRTAB)                     0x804d49d
 0x0000000a (STRSZ)                      1117 (bytes)
 0x00000006 (SYMTAB)                     0x804cc81
 0x0000000b (SYMENT)                     16 (bytes)
 0x00000011 (REL)                        0x804d121
 0x00000012 (RELSZ)                      584 (bytes)
 0x00000013 (RELENT)                     8 (bytes)
 0x00000004 (HASH)                       0x804d369
 0x00000000 (NULL)                       0x0

Here from the not working program (sys_clone based, but I refer to some libpthread.so function in order to force the imports):

Dynamic section at offset 0x3c4c contains 13 entries:
  Tag        Type                         Name/Value
 0x00000001 (NEEDED)                     Shared library: [libpthread.so.0]
 0x00000001 (NEEDED)                     Shared library: [libX11.so.6]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x00000001 (NEEDED)                     Shared library: [libXft.so.2]
 0x00000005 (STRTAB)                     0x804d3b8
 0x0000000a (STRSZ)                      909 (bytes)
 0x00000006 (SYMTAB)                     0x804ccb4
 0x0000000b (SYMENT)                     16 (bytes)
 0x00000011 (REL)                        0x804d0b4
 0x00000012 (RELSZ)                      504 (bytes)
 0x00000013 (RELENT)                     8 (bytes)
 0x00000004 (HASH)                       0x804d2ac
 0x00000000 (NULL)                       0x0


-- 
John Found 
http://asm32.hopto.org


More information about the Xcb mailing list