NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/53465: ld.elf_so crashes when memcpy obj->tlsinit data



The following reply was made to PR bin/53465; it has been noted by GNATS.

From: ? ?? <zh_jq%outlook.com@localhost>
To: "gnats-bugs%netbsd.org@localhost" <gnats-bugs%netbsd.org@localhost>
Cc: "netbsd-bugs%netbsd.org@localhost" <netbsd-bugs%netbsd.org@localhost>
Subject: Re: bin/53465: ld.elf_so crashes when memcpy obj->tlsinit data
Date: Mon, 23 Jul 2018 16:19:05 +0000

 Now I have a simple c file to reproduce the problem:
 ----
 #include <stdio.h>
 
 _Thread_local int a =3D 1;
 
 int main(int argc, char *argv[])
 {
         printf("run ok\n");
         return 0;
 }
 ----
 Use the following to compile:
 gcc -o ld-test -fPIE -pie ../src/_pstatd/ld_test.c
 The run ld-test, you will get the crash.
 
 



Home | Main Index | Thread Index | Old Index