file-5.46 segfault on Cygwin (only)
raf
cygwin@raf.org
Wed May 27 05:17:58 GMT 2026
On Sun, May 24, 2026 at 11:46:38AM +0300, Andrey Repin <anrdaemon@yandex.ru> wrote:
> Greetings, raf!
Hi Andrey,
> > The current version of file/libmagic on Cygwin is 5.46.
>
> > It crashes when trying to analyse the zipfile
> > CookieAutoDelete@kennydo.com.xpi (a Firefox addon).
> > This is without decompressing the zipfile to allow
> > further analsis.
>
> $ file --version; file CookieAutoDelete@kennydo.com.xpi
> file-5.46
> magic file from /usr/share/misc/magic
> CookieAutoDelete@kennydo.com.xpi: Zip archive data, at least v2.0 to extract, compression method=deflate
It's good that it doesn't affect everyone, but 5.47 has
been out for a few months, and 5.46 is a few years old.
So an updated package would help others regardless.
> > It's here for reference (raf.org/tmp/CookieAutoDelete@kennydo.com.xpi).
>
> > Strangely, 5.46 on macOS and Debian don't crash with this file.
> > It's just the 5.46 on Cygwin.
>
> Try the usual:
>
> 1. Shut down every cygwin process.
> 2. ps ax to verify.
> 3. Re-run cygwin setup.
> 4. Try rebase-trigger full if that didn't help.
Thanks but that didn't fix it.
But it's OK. I've installed 5.47 from source and it's fine.
I'll remove it when the Cygwin package is updated to 5.47.
> > I compiled 5.46 on Cygwin myself to see if it's something
> > wrong just with the Cygwin package of file-devel but that
> > crashed too.
>
> > 5.47 on all three systems doesn't crash, so that's good.
>
> > So, if anyone here has anything to do with packaging file-devel
> > for Cygwin, please update the package to 5.47. Thanks.
>
> --
> With best regards,
> Andrey Repin
> Sunday, May 24, 2026 11:45:06
>
> Sorry for my terrible english...
cheers,
raf
More information about the Cygwin
mailing list