Comments (5)
Many thanks for the fixes and your time. I've incorporated the changes and uploaded to CRAN. It's currently under CRAN review.
I tried to reproduce the valgrind issue myself but it depends clearly on valgrind 3.21.0 and I don't have an instrumented build of R-devel compiled with valgrind level 2 instrumentation alongside valgrind 3.21.0 to be able to reproduce it.
What I did already got as feedback from CRAN is that I had to replace std::interator as it is deprecated in C++17 and future compilers will not support C++11. I'll make a new issue for this if you don't mind.
I'll keep you updated here if I have more feedback from CRAN.
Found the following significant warnings:
./nametag/src/unilib/utf8.h:148:52: warning: 'template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' is deprecated [-Wdeprecated-declarations]
./nametag/src/unilib/utf8.h:180:52: warning: 'template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' is deprecated [-Wdeprecated-declarations]
nametag/src/unilib/utf16.h:116:53: warning: 'template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' is deprecated [-Wdeprecated-declarations]
nametag/src/unilib/utf16.h:148:53: warning: 'template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' is deprecated [-Wdeprecated-declarations]
nametag/src/unilib/utf8.h:148:52: warning: 'template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' is deprecated [-Wdeprecated-declarations]
nametag/src/unilib/utf8.h:180:52: warning: 'template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' is deprecated [-Wdeprecated-declarations]
from nametag.
The R package was accepted on CRAN yesterday including the fix for this issue which incorporated your changes of 294466f.
Yesterday CRAN tested as well with valgrind and the fix solved the problem.
Many thanks again!
from nametag.
Hi,
the issue is in the public-domain code performing LZMA (de)compression (we use it to compress the parts of the models where it make sense). The same code is also in UDPipe 1, MorphoDiTa, ... .
As you say, I am not sure how difficult will be to find the cause (given that it is someone else's code), but I will try to do it next week (and do minor releases with the fix).
from nametag.
That would be great! Thanks for the effort.
from nametag.
Hi,
after investigation, I believe it is just a false positive report by valgrind (the code actually does read an uninitialized value, but the conditional jump is guarded by other conditions, so the program behavior cannot be influenced by the unitialized value). I tried to fix the problem by ufal/cpp_utils@fc215c8 (on g++-10 and clang-11 the valgrind report disappeared) and then updated cpp_utils
in nametag in the lastest commit 294466f.
Could you please try building the nametag R wrapper to verify the problem is really solved? Thanks!
from nametag.
Related Issues (18)
- Nametag REST server fails when compiled in debug mode HOT 1
- Memory Leak in Java Binding HOT 2
- Why can't two words have same brown cluster representation? HOT 2
- Server returns invalid json when output is set to "vertical" and no entities were found. HOT 2
- Server returns invalid json when there is no data. HOT 1
- Enhancement: Accept data from request body HOT 1
- r wrapper / morphodita HOT 4
- Wrong token ranges when sentences are in vertical input HOT 3
- Python bindings doesn't work with Python 3.8+ HOT 5
- Unexpected category in czech-cnec2.0-200831 model HOT 4
- Duplicity rows in nametag output HOT 7
- Missing category HOT 1
- Integrate with CLARIN LR Switchboard HOT 7
- Invalid and incorrect JSON responses for some Python runs for Py 3.5 and lower [nametag2] HOT 4
- NameTag2 returns code 400 + internal error for specific sentences [nametag2] HOT 3
- Support Tensorflow 2.x and Python 3.8+ in NameTag 2 HOT 2
- std::iterator deprecated in C++17 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nametag.