Bug#667904: RFS: mitlm/0.4-1 [ITP] -- MIT Language Modeling
- To: 667904@bugs.debian.org
- Subject: Bug#667904: RFS: mitlm/0.4-1 [ITP] -- MIT Language Modeling
- From: Giulio Paci <giuliopaci@gmail.com>
- Date: Sun, 05 May 2013 15:15:59 +0200
- Message-id: <[🔎] 51865B8F.2050806@gmail.com>
- Reply-to: Giulio Paci <giuliopaci@gmail.com>, 667904@bugs.debian.org
- In-reply-to: <20130409105904.GA3515@jwilk.net>
- References: <511AEBDE.40303@gmail.com> <20130220194125.GA9606@jwilk.net> <512577AD.1080703@gmail.com> <512600D9.7020304@gmail.com> <20130222192627.GB1035@jwilk.net> <5152D584.9090604@gmail.com> <20130406214701.GA2578@jwilk.net> <516154AD.4030707@gmail.com> <20130408194311.GA8607@jwilk.net> <5163579D.4030304@gmail.com> <20130409105904.GA3515@jwilk.net>
Il 09/04/2013 12:59, Jakub Wilk ha scritto:
> Lintian emits:
> X: libmitlm0: shlib-calls-exit usr/lib/libmitlm.so.0.0.0
>
> I believe this is true-positive. exit() is indeed called in some methods that are part of public API:
>
> NgramLM::Initialize
> NgramModel::LoadComputedFeatures
>
> They should probably throw an exception instead.
Added a patch to throw exceptions instead of calling exit.
> Also, printing errors/warnings to stderr (here via the Logger class) is not something you normally do in a shared library. At the very least there should be a way to turn
> these messages off, or redirect them somehwere else.
Added patch that adds Logger methods to turn messages off or redirect them.
Bests,
Giulio.
Reply to: