You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example runs fine on macos but on any gcc linux system (ubuntu 18.04, debian buster, etc) the program core dumps for uninitialized value. The target is linux.
I use conan to pull in the lib:
[requires]
libavrocpp/1.10.2
[generators]
cmake
I could really use some help on this. I don't see any other c++ solutions and the client is in need.
dbh-vm :: CLionProjects/AvroLastChance/cmake-build-debug » valgrind ./bin/AvroLastChance
139 ↵
==42562== Memcheck, a memory error detector
==42562== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==42562== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==42562== Command: ./bin/AvroLastChance
==42562==
==42562== Use of uninitialised value of size 8
==42562== at 0x11B0B2: avro::codec_traits<double>::encode(avro::Encoder&, double) (Specific.hh:151)
==42562== by 0x11B214: void avro::encode<double>(avro::Encoder&, double const&) (Specific.hh:332)
==42562== by 0x11B11C: avro::codec_traits<c::cpx>::encode(avro::Encoder&, c::cpx const&) (cpx.hh:44)
==42562== by 0x11B51C: void avro::encode<c::cpx>(avro::Encoder&, c::cpx const&) (Specific.hh:332)
==42562== by 0x11B37B: avro::DataFileWriter<c::cpx>::write(c::cpx const&) (DataFile.hh:166)
==42562== by 0x11AF7E: test2() (main.cpp:52)
==42562== by 0x11AEE0: main (main.cpp:39)
Schema (generated the cpx.hh with avrogencpp tool): avrogencpp -i cpx.json -o cpx.hh -n c
Following the example for DataFile.cc (bottom of page) at: https://avro.apache.org/docs/current/api/cpp/html/index.html
The example runs fine on macos but on any gcc linux system (ubuntu 18.04, debian buster, etc) the program core dumps for uninitialized value. The target is linux.
I use conan to pull in the lib:
I could really use some help on this. I don't see any other c++ solutions and the client is in need.
Schema (generated the cpx.hh with avrogencpp tool): avrogencpp -i cpx.json -o cpx.hh -n c
Code:
The text was updated successfully, but these errors were encountered: