[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] upcoming 2.1.4-alpha Libevent release



On Mon, Mar 17, 2014 at 5:27 PM, Nick Mathewson <nickm@xxxxxxxxxxxxx> wrote:
> On Mon, Mar 17, 2014 at 2:36 PM, Jeffrey Walton <noloader@xxxxxxxxx> wrote:
>> ...
>> regress: evutil.c:1930:26: runtime error: left shift of 255 by 24
>> places cannot be represented in type 'int'
>> test/regress_util.c:182:25: runtime error: left shift of 255 by 24
>> places cannot be represented in type 'int'
>> test/regress_util.c:729:5: runtime error: signed integer overflow:
>> 9223372036854775807 + 1 cannot be represented in type 'int64_t' (aka
>> 'long')
>> test/regress_util.c:739:5: runtime error: signed integer overflow:
>> 2147483647 + 1 cannot be represented in type 'int32_t' (aka 'int')
>> test/regress_util.c:766:7: runtime error: signed integer overflow:
>> 9223372036854775807 + 1 cannot be represented in type 'ssize_t' (aka
>> 'long')
>> http.c:4289:22: runtime error: signed integer overflow: 999999999 * 10
>> cannot be represented in type 'int'
>> event_tagging.c:213:28: runtime error: left shift of 95 by 28 places
>> cannot be represented in type 'int'
>> event_tagging.c:213:28: runtime error: left shift of 13 by 28 places
>> cannot be represented in type 'int'
>
> Looks like we've got some issues here.  In most cases, the solution is
> probably to use the appropriate unsigned types.  Are you using the
> clang analyzer, or some other tools?
Yes, Clang 3.4.

A document on downloading, building, installing and utilizing Clang
3.4 can be found at http://docs.python.org/devguide/clang.html. Its
recipe based, so it should be a s simple as copy/paste.

The same applies to libevent. (I tested Python and libevent when it
was being written).

Libevent's output is not printed to the screen, even with `make check
V=1`. You'll have to find it in a log file or run test/test.sh
manually.

Jeff
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.