Re: [OE-core] [PATCH v2] glibc: fix Segmentation fault in gethostid.c

2018-09-20 Thread Yu, Mingli
Will send out v3 with the update from glibc upstream. Thanks, On 2018年09月18日 17:47, mingli...@windriver.com wrote: From: Mingli Yu When run test program hostid, it encounters Segmentation fault as hp is NULL. # cat /mybuild/hostid.c #include #include int main(int argc, char

[OE-core] [PATCH v2] glibc: fix Segmentation fault in gethostid.c

2018-09-18 Thread mingli.yu
From: Mingli Yu When run test program hostid, it encounters Segmentation fault as hp is NULL. # cat /mybuild/hostid.c #include #include int main(int argc, char *argv[]) { long hostid; hostid = gethostid(); printf("the hostid is %ld\n", hostid); } # gcc -o