Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 939658 - app-misc/supercat-0.5.8: crashes with segmentation fault while processing pipe input
Summary: app-misc/supercat-0.5.8: crashes with segmentation fault while processing pip...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal
Assignee: Gentoo Shell Tools project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-14 10:53 UTC by ser
Modified: 2024-09-27 20:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
test_file with string which cause segfault (test_file,9.01 KB, text/plain)
2024-09-14 10:53 UTC, ser
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ser 2024-09-14 10:53:06 UTC
Created attachment 902967 [details]
test_file with string which cause segfault

hello, 

Supercat crashes with seg fault (or with stack smashing detected if built with -fstack-protector-strong)

Reproducing:
`cat test_file | spc`


test_file in attach, .spcrc following:
Green                grn b 0 c []()=
Number               yel b 0 r ([0-9.]+)
divider              cya b 0 c %!;&?:.,
Time                 whi b 1 r (([0-9]{4}-[0-9]{2}-[0-9]{2}) ([0-9][0-9]):([0-9][0-9]):([0-9][0-9])(.[0-9]{3}))
Time                 whi b 1 r (([0-9]{4}-[0-9]{2}-[0-9]{2}) ([0-9][0-9]):([0-9][0-9]):([0-9][0-9])(.[0-9]{3}) ([A-Z]{3}))
Time                 whi b 1 r (([0-9]{4}-[0-9]{2}-[0-9]{2})T([0-9][0-9]):([0-9][0-9]):([0-9][0-9])\+([0-9]{4})\,([0-9]{3}))
Severity             mag b 0 r (ERROR|WARNING|CRITICAL)
Severity             red - 1 r (INFO|DEBUG)
Hash                 yel - 0 r ([a-fA-F0-9]{32})
UUID                 yel - 0 r ([a-fA-F0-9-]{36})
URL                  grn - 1 r (https?:\/\/[^?]+)
Method               grn b 1 r (GET|POST|OPTION|PUT|DELETE)
Parameter_name       grn - 0 r ([a-z0-9_\-]+)=
Parameter_val        yel b 0 r =([^ &]+)
Comment 1 Mike Gilbert gentoo-dev 2024-09-15 18:08:12 UTC
Please fill in the summary.
Comment 2 ser 2024-09-16 09:43:33 UTC
(In reply to Mike Gilbert from comment #1)
> Please fill in the summary.

done
Comment 3 Greg Kubaryk 2024-09-26 20:29:54 UTC
what version? got emerge --info?
Comment 4 ser 2024-09-27 12:16:26 UTC
(In reply to Greg Kubaryk from comment #3)
> what version? got emerge --info?

My excuses, its by first bugreport.


# emerge --info app-misc/supercat
Portage 3.0.65 (python 3.12.3-final-0, default/linux/amd64/23.0/no-multilib, gcc-14, glibc-2.40, 6.6.46-gentoo-dist x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.6.46-gentoo-dist-x86_64-AMD_Ryzen_5_5600X_6-Core_Processor-with-glibc2.40
KiB Mem:    32785928 total,   8758200 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Sun, 22 Sep 2024 00:45:00 +0000
Head commit of repository gentoo: 5b41d4f645d0b27d8bb250bbf2dd06c7390eba6d
Timestamp of repository guru: Fri, 06 Sep 2024 09:04:07 +0000
Head commit of repository guru: fa154fddc2f32e212c4330eb5992f2e5155ac361

Timestamp of repository vowstar: Tue, 03 Sep 2024 05:34:02 +0000
Head commit of repository vowstar: a80ab148fcce0daa8ed603ec8485f1610c674951

sh bash 5.2_p26-r6
ld GNU ld (Gentoo 2.43 p1) 2.43.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26-r6::gentoo
dev-build/autoconf:        2.71-r7::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo, 1.17-r1::gentoo
dev-build/cmake:           3.30.2::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.5.1::gentoo
dev-lang/perl:             5.40.0::gentoo
dev-lang/python:           3.12.3-r1::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/openrc:           0.54.2::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.42-r1::gentoo, 2.43::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             13.3.1_p20240614::gentoo, 14.2.0::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 3

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

vowstar
    location: /var/db/repos/vowstar
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/vowstar.git
    masters: gentoo
    volatile: False

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=znver3 -march=znver3 -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=512 -O2 -pipe -fomit-frame-pointer -fstack-protector-strong -fno-plt"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-mtune=znver3 -march=znver3 -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=512 -O2 -pipe -fomit-frame-pointer -fstack-protector-strong -fno-plt"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=11 --load-average=12"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-mtune=znver3 -march=znver3 -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=512 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-mtune=znver3 -march=znver3 -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=512 -O2 -pipe"
GENTOO_MIRRORS="https://mirror.yandex.ru/gentoo-distfiles/"
LANG="C.UTF-8"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
LEX="flex"
MAKEOPTS="--jobs=11 --load-average=12"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="acl amd64 bzip2 cet crypt dist-kernel gdbm iconv ipv6 libtirpc ncurses nls openmp pam pcre readline seccomp ssl test-rust unicode xattr zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 vpclmulqdq" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

app-misc/supercat-0.5.8::gentoo was built with the following:
USE=""
CFLAGS="-march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fstack-protector-strong -fno-plt"
CXXFLAGS="-march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fstack-protector-strong -fno-plt"