sianla / memcached

Automatically exported from code.google.com/p/memcached
0 stars 0 forks source link

--disable-coverage drops "-pthread" option #286

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. configure --disable-coverage && make
2. run ./memcached -v &
3. try to set some value via telnet

What is the expected output? What do you see instead?
Connection closed with message:
Failed to read, and not due to blocking:
errno: 0 Error 0 
rcurr=57ebe1 ritem=5b1054 rbuf=57ebd0 rlbytes=13 rsize=2048

What version of the product are you using? On what operating system?
memcached 1.4.14 on illumos

Please provide any additional information below.
The error is due to read(2) returns -1, but errno=0, because variable "errno" 
is not thread-local.

"-pthread" option should be always added to compiler, not only when 
--enable-coverage

Original issue reported on code.google.com by pashev.i...@gmail.com on 30 Aug 2012 at 9:04

GoogleCodeExporter commented 8 years ago
commit ad27588391e4f5f85f07f9d734334ade4cc5dbb0
Author: Trond Norbye <trond.norbye@gmail.com>
Date:   Sat Sep 1 14:31:17 2012 +0200

Original comment by trond.no...@gmail.com on 1 Sep 2012 at 12:33