Re: strace -f -c segfaults if I pthread_create and fcntl(F_GETFL)

2014-07-21 Thread D Wang
On Sat, Jul 19, 2014 at 5:02 AM, yangmin zhu wrote: > Hi wang, > > On Fri, Jul 18, 2014 at 7:11 AM, D Wang wrote: >> (Please copy dw...@janestreet.com on reply, as I am not subscribed to the >> list.) >> >> >> What's going wrong? Is there any workaround? If not, is this >> something you would

Re: strace -f -c segfaults if I pthread_create and fcntl(F_GETFL)

2014-07-19 Thread yangmin zhu
Hi wang, On Fri, Jul 18, 2014 at 7:11 AM, D Wang wrote: > (Please copy dw...@janestreet.com on reply, as I am not subscribed to the > list.) > > > What's going wrong? Is there any workaround? If not, is this > something you would fix? (No urgency on my end, but I think this is a > reasonable

strace -f -c segfaults if I pthread_create and fcntl(F_GETFL)

2014-07-17 Thread D Wang
(Please copy dw...@janestreet.com on reply, as I am not subscribed to the list.) I'd like to strace a multi-threaded program which calls fcntl sometimes, but the combination of threads and fcntl causes strace to segfault. Here's a small reproduction: cd /tmp cat > foo.c <<'EOF' #incl