Comments (11)
Argh this has been there since 6f7962e – as far back as we can compile without getting older dependencies
from libdivvun.
I don't get it with tcmalloc
from libdivvun.
I don't get this with GCC 10 on gentoo:
cc --version
gcc (Gentoo 10.3.0-r2 p3) 10.3.0
Copyright (C) 2020 Free Software Foundation, Inc.
Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es
gibt KEINE Garantie; auch nicht für MARKTGÄNGIGKEIT oder FÜR SPEZIELLE ZWECKE.
... but I'm not sure of tcmalloc, it doesn't show up in configure?
from libdivvun.
I often run with LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4
which makes some things faster, makes other things break, and makes yet other things confusingly not break.
from libdivvun.
Seems like it's in hfst-pmatch, simply doing
hfst_ol::PmatchContainer * t = new hfst_ol::PmatchContainer(instream);
with an std::ifstream instream
triggers it
from libdivvun.
Ah yeah I get it after update of hfst now.
Valground log data
from libdivvun.
So it's a regression between 3.15.5 and now, this includes: the c++ modernisation stuff, decoupling of foma and openfst and few bug fixes plus lastly some new things in tokenise and pmatch... it doesn't show up in the basic pmatch-functionality-test even with valgrind so there must be some other condition to it too (hfst-pmatch does hfst_ol::PmatchContainer container(instream);
in beginning of main
)..
from libdivvun.
hfst/hfst@eb3da2c not 100% sure I'm testing the same thing
(evidence of my force-pushing in these comments =P)
from libdivvun.
the test in hfst works fine if I include config.h, specifically this line:
#define USE_ICU_UNICODE 1
$ g++-10 test_pmatch.cc -DHAVE_CONFIG_H -I../.. -I../../libhfst/src -lhfst -o test_pmatch && ./test_pmatch ; echo $?
loading
loaded
0
$ g++-10 test_pmatch.cc -I../.. -I../../libhfst/src -lhfst -o test_pmatch && ./test_pmatch ; echo $?
loading
loaded
free(): invalid pointer
Aborted (core dumped)
134
from libdivvun.
So if I configure libdivvun with
./configure CFLAGS="-DUSE_ICU_UNICODE=1" CXXFLAGS="-DUSE_ICU_UNICODE=1"
it works fine in gcc-10 with regular malloc. But shouldn't that flag only be checked at hfst's compile time? (My hfst is compiled with icu.)
from libdivvun.
Fixed in hfst/hfst@cea8775
from libdivvun.
Related Issues (20)
- Status for pmatch-based analysis/tokenisation
- Add language recognition?
- API for preferences
- clang-format HOT 3
- divvun-checker concatenates potential compound words HOT 6
- divvun-checker crashes on specific input HOT 6
- Normalize each CG sub-reading separately, like phonemisation HOT 13
- macOS rpath quirk HOT 1
- Rename &LINK to something more intuitive
- support for altering forms of two COERROR'd cohorts HOT 1
- Show multiword-suggestions and underlines in divvun-suggest (non-json) HOT 6
- Include all possibilities if several possible &SUGGEST's (on either side of the relation) HOT 3
- apply input casing to suggestions when RIGHT/LEFT and &COERR
- \r needs to be treated like \n after :
- Crashes on sma input 'beapmoeh (' HOT 3
- Error detected by smegram-dev.mode is not detected by divvun-checker HOT 16
- regression in divvun-suggest: removes removed readings
- Check if we can remove need for `COERROR` where relations are used
- doesn't generate suggestion for linked coerror, only main error, when &SUGGEST HOT 1
- generates bad suggestion with coerror HOT 1
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 libdivvun.