Skip to content

feh segfaults on jpeg rotation if jpegexiforient is not installed #100

@vesath

Description

@vesath

On an up-to-date Arch Linux system, not having jpegexiforient installed, feh segfaults if I open any jpeg and rotate it by pressing "<".

Here is the relevant GDB output:

feh WARNING: lossless rotate: Failed to exec jpegexiforient: No such file or directory
feh WARNING:
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6701da8 in vfprintf () from /usr/lib/libc.so.6
(gdb) bt
#0  0x00007ffff6701da8 in vfprintf () from /usr/lib/libc.so.6
#1  0x00007ffff67b0250 in __vsnprintf_chk () from /usr/lib/libc.so.6
#2  0x0000000000409cfc in ?? ()
#3  0x000000000040bb76 in ?? ()
#4  0x000000000040bd7a in ?? ()
#5  0x000000000040f477 in ?? ()
#6  0x000000000040f9d1 in ?? ()
#7  0x0000000000405b3a in ?? ()
#8  0x00007ffff66d8725 in __libc_start_main () from /usr/lib/libc.so.6
#9  0x0000000000405c0d in ?? ()

Indeed, commenting out line 524 of imlib.c "vsnprintf(errstr, 1024, fmt, args);" prevents feh from crashing.

This bug is tracked on Arch Linux there: https://bugs.archlinux.org/task/31699
Although I haven't had the time to go any further than the above yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions