Giter Site home page Giter Site logo

Comments (11)

unhammer avatar unhammer commented on August 19, 2024

Argh this has been there since 6f7962e – as far back as we can compile without getting older dependencies

from libdivvun.

unhammer avatar unhammer commented on August 19, 2024

I don't get it with tcmalloc

from libdivvun.

flammie avatar flammie commented on August 19, 2024

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.

unhammer avatar unhammer commented on August 19, 2024

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.

unhammer avatar unhammer commented on August 19, 2024

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.

flammie avatar flammie commented on August 19, 2024

Ah yeah I get it after update of hfst now.
Valground log data

from libdivvun.

flammie avatar flammie commented on August 19, 2024

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.

unhammer avatar unhammer commented on August 19, 2024

hfst/hfst@eb3da2c not 100% sure I'm testing the same thing

(evidence of my force-pushing in these comments =P)

from libdivvun.

unhammer avatar unhammer commented on August 19, 2024

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.

unhammer avatar unhammer commented on August 19, 2024

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.

TinoDidriksen avatar TinoDidriksen commented on August 19, 2024

Fixed in hfst/hfst@cea8775

from libdivvun.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.