Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning: ‘void* __builtin_memcpy(void*, const void*, long unsigned int)’ reading 32 bytes from a region of size 16 #60

Open
scottstensland opened this issue Feb 5, 2020 · 1 comment

Comments

@scottstensland
Copy link

pie@peach /cryptdata6/var/log/tmp/shared/gopath/src/github.com/mjibson/moggio $ go get -v -t ./...
go: downloading golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6
...

github.com/mjibson/gme

In file included from /usr/include/string.h:494,
from Gb_Apu.cpp:5:
In function ‘void* memcpy(void*, const void*, size_t)’,
inlined from ‘void Gb_Apu::reset()’ at Gb_Apu.cpp:126:8:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:34:33: warning: ‘void* __builtin_memcpy(void*, const void*, long unsigned int)’ reading 32 bytes from a region of size 16 [-Wstringop-overflow=]
34 | return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
github.com/mjibson/moggio/codec/gme

pie@peach /cryptdata6/var/log/tmp/shared/gopath/src/github.com/mjibson/moggio $ go get -v -t ./...
go: downloading golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6
go: downloading github.com/jfreymuth/go-vorbis v0.0.0-20161124120736-41342c908855
go: downloading github.com/facebookgo/httpcontrol v0.0.0-20150708234001-ccde4420e1fe
go: downloading github.com/mjibson/go-dsp v0.0.0-20180508042940-11479a337f12
go: downloading github.com/mesilliac/pulse-simple v0.0.0-20170506101341-75ac54e19fdf
go: downloading github.com/mewkiz/flac v1.0.5
go: downloading github.com/julienschmidt/httprouter v1.3.0
go: downloading github.com/mjibson/gme v0.0.0-20191207231606-aac85c97dedc
go: extracting golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6
go: extracting github.com/julienschmidt/httprouter v1.3.0
go: finding github.com/helinwang/portaudio latest
go: extracting github.com/jfreymuth/go-vorbis v0.0.0-20161124120736-41342c908855
go: downloading google.golang.org/api v0.14.0
go: extracting github.com/mesilliac/pulse-simple v0.0.0-20170506101341-75ac54e19fdf
go: extracting github.com/facebookgo/httpcontrol v0.0.0-20150708234001-ccde4420e1fe
go: downloading golang.org/x/net v0.0.0-20191207000613-e7e4b65ae663
go: downloading github.com/dhowden/tag v0.0.0-20191122115059-7e5c04feccd8
go: extracting github.com/mjibson/go-dsp v0.0.0-20180508042940-11479a337f12
go: downloading github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4
go: extracting github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4
go: extracting github.com/mjibson/gme v0.0.0-20191207231606-aac85c97dedc
go: downloading github.com/korandiz/mpa v0.0.0-20151122134043-0947560b56fb
go: extracting github.com/korandiz/mpa v0.0.0-20151122134043-0947560b56fb
go: extracting golang.org/x/net v0.0.0-20191207000613-e7e4b65ae663
go: downloading github.com/bradfitz/slice v0.0.0-20180809154707-2b758aa73013
go: extracting github.com/dhowden/tag v0.0.0-20191122115059-7e5c04feccd8
go: finding github.com/oov/directsound-go latest
go: downloading github.com/korandiz/mpseek v0.0.0-20150623151514-7fdfba007a2f
go: finding github.com/mjibson/nsf latest
go: downloading github.com/oov/directsound-go v0.0.0-20141101201356-e53e59c700bf
go: extracting github.com/bradfitz/slice v0.0.0-20180809154707-2b758aa73013
go: downloading github.com/nwaples/rardecode v1.0.0
go: extracting github.com/korandiz/mpseek v0.0.0-20150623151514-7fdfba007a2f
go: extracting github.com/mewkiz/flac v1.0.5
go: downloading github.com/mjibson/nsf v0.0.0-20150416074249-10b2439b9af2
go: extracting github.com/nwaples/rardecode v1.0.0
go: downloading github.com/mjibson/gmusic v0.0.0-20150925045001-ad078cbf9073
go: finding go4.org latest
go: extracting github.com/mjibson/gmusic v0.0.0-20150925045001-ad078cbf9073
go: downloading github.com/mjibson/gpsoauth v0.0.0-20150621200543-be41f43784ed
go: downloading go4.org v0.0.0-20200104003542-c7e774b10ea0
go: extracting github.com/mjibson/gpsoauth v0.0.0-20150621200543-be41f43784ed
go: extracting github.com/mjibson/nsf v0.0.0-20150416074249-10b2439b9af2
go: extracting github.com/oov/directsound-go v0.0.0-20141101201356-e53e59c700bf
go: extracting go4.org v0.0.0-20200104003542-c7e774b10ea0
go: downloading github.com/helinwang/portaudio v0.0.0-20160225001950-035e99fec7e0
go: extracting github.com/helinwang/portaudio v0.0.0-20160225001950-035e99fec7e0
go: extracting google.golang.org/api v0.14.0
go: finding github.com/jfreymuth/go-vorbis v0.0.0-20161124120736-41342c908855
go: finding github.com/dhowden/tag v0.0.0-20191122115059-7e5c04feccd8
go: finding github.com/facebookgo/httpcontrol v0.0.0-20150708234001-ccde4420e1fe
go: finding github.com/korandiz/mpa v0.0.0-20151122134043-0947560b56fb
go: finding github.com/mjibson/gme v0.0.0-20191207231606-aac85c97dedc
go: finding github.com/mjibson/go-dsp v0.0.0-20180508042940-11479a337f12
go: finding github.com/korandiz/mpseek v0.0.0-20150623151514-7fdfba007a2f
go: finding github.com/mewkiz/flac v1.0.5
go: finding github.com/mesilliac/pulse-simple v0.0.0-20170506101341-75ac54e19fdf
go: finding github.com/nwaples/rardecode v1.0.0
go: finding golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6
go: finding google.golang.org/api v0.14.0
go: finding github.com/mjibson/gmusic v0.0.0-20150925045001-ad078cbf9073
go: finding github.com/bradfitz/slice v0.0.0-20180809154707-2b758aa73013
go: finding golang.org/x/net v0.0.0-20191207000613-e7e4b65ae663
go: finding github.com/julienschmidt/httprouter v1.3.0
go: finding github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4
go: finding github.com/mjibson/gpsoauth v0.0.0-20150621200543-be41f43784ed
github.com/mjibson/moggio/codec/nsf
google.golang.org/grpc/resolver
github.com/mjibson/moggio/models
go.opencensus.io
go.opencensus.io/trace/internal
go.opencensus.io/internal/tagencoding
google.golang.org/grpc/resolver/passthrough
google.golang.org/grpc/internal/grpcsync
github.com/hashicorp/golang-lru/simplelru
github.com/mewkiz/flac/internal/hashutil
github.com/korandiz/mpseek
github.com/korandiz/mpa
github.com/mewkiz/flac/internal/bits
github.com/mewkiz/flac/internal/hashutil/crc16
github.com/mewkiz/flac/internal/hashutil/crc8
github.com/dhowden/tag
github.com/mjibson/gme
github.com/nwaples/rardecode
github.com/facebookgo/httpcontrol
github.com/mewkiz/flac/meta
github.com/jfreymuth/go-vorbis/ogg
github.com/mewkiz/flac/frame
github.com/jfreymuth/go-vorbis/ogg/vorbis
github.com/mjibson/go-dsp/wav
golang.org/x/net/context/ctxhttp
github.com/mjibson/gpsoauth
github.com/mewkiz/flac
net/http/cookiejar
golang.org/x/oauth2/internal
google.golang.org/api/internal/third_party/uritemplates
github.com/boltdb/bolt
github.com/bradfitz/slice
github.com/mjibson/moggio/codec
github.com/mjibson/gmusic
github.com/julienschmidt/httprouter
google.golang.org/api/googleapi
golang.org/x/oauth2
github.com/mjibson/moggio/codec/flac
github.com/mjibson/moggio/codec/mpa
github.com/mjibson/moggio/codec/vorbis
github.com/mjibson/moggio/codec/wav
github.com/mjibson/moggio/codec/rar
github.com/mesilliac/pulse-simple
github.com/pkg/browser
github.com/mjibson/moggio/protocol
github.com/mjibson/moggio/protocol/soundcloud/soundcloud
golang.org/x/net/websocket
cloud.google.com/go/compute/metadata
golang.org/x/oauth2/jws
github.com/mjibson/moggio/protocol/file
github.com/mjibson/moggio/protocol/gmusic
github.com/mjibson/moggio/protocol/soundcloud
github.com/mjibson/moggio/protocol/stream
golang.org/x/oauth2/jwt
golang.org/x/net/internal/timeseries
github.com/mjibson/moggio/protocol/bandcamp
os/user
google.golang.org/grpc/grpclog
google.golang.org/grpc/credentials/internal
github.com/golang/protobuf/proto
google.golang.org/grpc/internal
golang.org/x/net/trace
google.golang.org/grpc/connectivity
google.golang.org/grpc/metadata
google.golang.org/grpc/internal/grpcrand
google.golang.org/grpc/codes
google.golang.org/grpc/encoding
google.golang.org/grpc/internal/backoff
google.golang.org/grpc/internal/balancerload
golang.org/x/sys/unix
google.golang.org/grpc/internal/envconfig
golang.org/x/net/http2/hpack
golang.org/x/text/transform
golang.org/x/text/unicode/bidi
golang.org/x/text/unicode/norm
google.golang.org/grpc/keepalive
google.golang.org/grpc/stats
golang.org/x/text/secure/bidirule
google.golang.org/grpc/tap
google.golang.org/grpc/naming
google.golang.org/grpc/resolver/dns
go.opencensus.io/internal
go.opencensus.io/trace/tracestate
google.golang.org/grpc/internal/syscall
go.opencensus.io/resource
go.opencensus.io/trace
golang.org/x/net/idna
go.opencensus.io/metric/metricdata
go.opencensus.io/tag
go.opencensus.io/metric/metricproducer
google.golang.org/grpc/credentials
google.golang.org/grpc/encoding/proto
github.com/golang/protobuf/ptypes/any
github.com/golang/protobuf/ptypes/duration
github.com/golang/protobuf/ptypes/timestamp
google.golang.org/grpc/balancer
google.golang.org/genproto/googleapis/rpc/status
google.golang.org/grpc/internal/channelz
golang.org/x/net/http/httpguts
google.golang.org/grpc/balancer/base
github.com/golang/protobuf/ptypes
google.golang.org/grpc/binarylog/grpc_binarylog_v1
golang.org/x/net/http2
google.golang.org/grpc/balancer/roundrobin
google.golang.org/grpc/status
google.golang.org/grpc/peer
go.opencensus.io/trace/propagation
go.opencensus.io/stats/internal
google.golang.org/api/googleapi/transport
go.opencensus.io/stats
go.opencensus.io/plugin/ochttp/propagation/b3
google.golang.org/grpc/internal/binarylog
google.golang.org/api/transport/http/internal/propagation
go.opencensus.io/stats/view
github.com/mjibson/moggio/protocol/dropbox/dropbox
github.com/mjibson/moggio/protocol/dropbox
go.opencensus.io/plugin/ochttp
golang.org/x/oauth2/google
google.golang.org/grpc/internal/transport
google.golang.org/grpc
github.com/googleapis/gax-go/v2
google.golang.org/api/internal
google.golang.org/api/internal/gensupport
google.golang.org/api/option
google.golang.org/api/transport/http
google.golang.org/api/drive/v3
github.com/mjibson/moggio/output
github.com/mjibson/moggio/server
github.com/mjibson/moggio/protocol/drive
# github.com/mjibson/gme
In file included from /usr/include/string.h:494,
                 from Gb_Apu.cpp:5:
In function ‘void* memcpy(void*, const void*, size_t)’,
    inlined from ‘void Gb_Apu::reset()’ at Gb_Apu.cpp:126:8:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:34:33: warning: ‘void* __builtin_memcpy(void*, const void*, long unsigned int)’ reading 32 bytes from a region of size 16 [-Wstringop-overflow=]
   34 |   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
      |          ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
github.com/mjibson/moggio/codec/gme
github.com/mjibson/moggio

I am on Ubuntu 20.04

x86_64
5.4.0-13-generic
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu Focal Fossa (development branch)"
NAME="Ubuntu"
VERSION="20.04 LTS (Focal Fossa)"

g++ --version
g++ (Ubuntu 9.2.1-28ubuntu1) 9.2.1 20200203

go version
go version go1.13.6 linux/amd64

@maddyblue
Copy link
Owner

Hmm yeah I dunno. Maybe gcc changed some stuff? Can you try just using the linux binary at https://github.com/mjibson/moggio/releases/latest?. Also I had no idea anyone else was even using moggio. Hello!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants