# Libbeat test failures on 32-bit systems

**URL:** <https://discuss.elastic.co/t/libbeat-test-failures-on-32-bit-systems/72418>\
**Category:** Beats\
**Tags:** beats-development\
**Created:** [January 23, 2017, 12:17am UTC](https://discuss.elastic.co/t/libbeat-test-failures-on-32-bit-systems/72418 "2017-01-23T00:17:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![spacewrangler](https://avatars.discourse-cdn.com/v4/letter/s/e47c2d/32.png) [@spacewrangler](https://discuss.elastic.co/u/spacewrangler)\
**Post date:** [January 23, 2017, 12:17am UTC](https://discuss.elastic.co/t/libbeat-test-failures-on-32-bit-systems/72418/1 "2017-01-23T00:17:16Z")

</div>

I'm working on getting beats to build/run on my Raspberry Pi 3, running Raspbian, which is 32-bit. I'm running into a test build failure in libbeat/processors/processor\_test.go, and consequently, `make unit-tests` fails.

```
command [go test -cover -coverprofile /tmp/gotestcover-757345234 github.com/elastic/beats/libbeat/processors]: exit status 2
# github.com/elastic/beats/libbeat/processors_test
processors/processor_test.go:120: constant 2555572224 overflows int
processors/processor_test.go:138: constant 2555572224 overflows int
processors/processor_test.go:188: constant 2555572224 overflows int
processors/processor_test.go:242: constant 2555572224 overflows int
processors/processor_test.go:312: constant 2555572224 overflows int
processors/processor_test.go:404: constant 2555572224 overflows int
processors/processor_test.go:449: constant 2555572224 overflows int
processors/processor_test.go:607: constant 2555572224 overflows int
FAIL	github.com/elastic/beats/libbeat/processors [build failed]

```

There are a number of maps created with numeric field values that overflow int (which is 32-bits on a 32-bit OS). See the "size" field in the example below:

```
    event := common.MapStr{
    		"@timestamp": "2016-01-24T18:35:19.308Z",
    		"beat": common.MapStr{
    			"hostname": "mar",
    			"name": "my-shipper-1",
    		},
    		"proc": common.MapStr{
    			"cpu": common.MapStr{
    				"start_time": "Jan14",
    				"system": 26027,
    				"total": 79390,
    				"total_p": 0,
    				"user": 53363,
    			},
    			"name": "test-1",
    			"cmdline": "/sbin/launchd",
    			"mem": common.MapStr{
    				"rss": 11194368,
    				"rss_p": 0,
    				"share": 0,
    				"size": 2555572224,
    			},
    		},
    		"type": "process",
    	}

```

Should I open an issue for this on Github and submit a fix?

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [January 23, 2017, 12:31pm UTC](https://discuss.elastic.co/t/libbeat-test-failures-on-32-bit-systems/72418/2 "2017-01-23T12:31:54Z")

</div>

Thanks for reporting. Feel free to open a PR fixing the test.

---

<div class="post-metadata">

**Author:** ![spacewrangler](https://avatars.discourse-cdn.com/v4/letter/s/e47c2d/32.png) [@spacewrangler](https://discuss.elastic.co/u/spacewrangler)\
**Post date:** [January 23, 2017, 9:02pm UTC](https://discuss.elastic.co/t/libbeat-test-failures-on-32-bit-systems/72418/3 "2017-01-23T21:02:03Z")

</div>

PR here: [https://github.com/elastic/beats/pull/3441](https://github.com/elastic/beats/pull/3441)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 20, 2017, 9:02pm UTC](https://discuss.elastic.co/t/libbeat-test-failures-on-32-bit-systems/72418/4 "2017-02-20T21:02:16Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
