[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#799805: marked as done (kytea: Problem with upcoming new version of liblinear)



Your message dated Tue, 20 Dec 2022 16:04:52 +0000
with message-id <[🔎] E1p7f6q-004Zzq-6D@fasolo.debian.org>
and subject line Bug#1026458: Removed package(s) from unstable
has caused the Debian Bug report #799805,
regarding kytea: Problem with upcoming new version of liblinear
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
799805: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=799805
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: kytea
Version: 0.4.6+dfsg-2
Severity: important

Hi,

I recently uploaded a new version of liblinear to experimental. This new
version bumps the SONAME. Among other things, the declaration of "struct
problem" in linear.h changed:

> struct problem
>  {
>         int l, n;
> -       int *y;
> +       double *y;
>         struct feature_node **x;
>         double bias;            /* < 0 if no bias term */
>  };

Test-rebuilding the reverse dependency kytea resulted in a FTBFS because
of the above change:
> kytea-model.cpp: In member function 'void kytea::KyteaModel::trainModel(const std::vector<std::vector<unsigned int> >&, std::vector<int>&, double, int, double, double)':
> kytea-model.cpp:180:12: error: cannot convert 'int*' to 'double*' in assignment
>      prob.y = &ys.front();
         ^^^^^^

After applying the following simple workaround to
src/lib/kytea-model.cpp, the package builds successfully again:
>      //     }
>      //     cerr << endl;
>      // }
> -    prob.y = &ys.front();
> +    vector<double> ys_d(ys.begin(), ys.end());
> +    prob.y = &ys_d.front();
>  
>      // allocate the feature space
>      feature_node** myXs = (feature_node**)malloc(sizeof(feature_node*)*xs.size());

However, unfortunately the one test no longer passes. It just hangs in
what appears to be an infinite loop. Specifically, it hangs at the test
for logistic regression: that's the second test (with "-solver 0") in
src/test/test-analysis.h.

The hang occurs in the trainAll() step. That calls trainWS() (commented
as "word segmenter"), which prepares some data, and then eventually calls

> wsModel_->trainModel(xs,ys,config_->getBias(),config_->getSolverType(),config_->getEpsilon(),config_->getCost());

That's as far as I got.

I'm not familiar with kytea, so I'm not sure what data is being prepared
here and how, which makes debugging difficult.

I'd appreciate it if you, or your upstream, could take a look!

Regards,
Christian

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
Version: 0.4.6+dfsg-3+rm

Dear submitter,

as the package kytea has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1026458

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

--- End Message ---

Reply to: