Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 867931 - net-nds/openldap-2.6.3: fails test001-slapadd with SIGBUS on sparc
Summary: net-nds/openldap-2.6.3: fails test001-slapadd with SIGBUS on sparc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Sparc64 Linux
: Normal normal (vote)
Assignee: Gentoo LDAP project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: unaligned-access
  Show dependency tree
 
Reported: 2022-09-01 23:41 UTC by Sam James
Modified: 2023-02-12 05:52 UTC (History)
2 users (show)

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


Attachments
build.log (file_867931.txt,348.30 KB, text/plain)
2022-09-01 23:41 UTC, Sam James
Details
testout.0 (file_867931.txt,2.99 KB, text/plain)
2022-09-01 23:42 UTC, Sam James
Details
SLAPD_COMMON_WRAPPER=gdb ./run test001-slapadd &> /tmp/log (file_867931.txt,4.68 KB, text/plain)
2022-09-01 23:45 UTC, Sam James
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-01 23:41:49 UTC
Created attachment 802624 [details]
build.log

>>> Test phase: net-nds/openldap-2.6.3
 * .sparc64: running multilib-minimal_abi_src_test
/var/tmp/portage/net-nds/openldap-2.6.3/work/openldap-OPENLDAP_REL_ENG_2_6_3-.sparc64/tests
make -j256 plloadd pmdb
>>>>> 00:00:00 Starting test000-rootdse for mdb...
>>>>> 00:00:01 Finished test000-rootdse for mdb after 1 seconds.
>>>>> 00:00:01 Starting test001-slapadd for mdb...
>>>>> 00:00:02 Failed   test001-slapadd for mdb after 1 seconds
make[1]: *** [Makefile:321: mdb-yes] Error 138
make: *** [Makefile:301: pmdb] Error 2
 * ERROR: net-nds/openldap-2.6.3::gentoo failed (test phase):
 *   emake failed

----

Portage 3.0.34 (python 3.10.5-final-0, default/linux/sparc/17.0/64ul/desktop, gcc-12.1.1, glibc-2.35-r8, 5.15.32-gentoo-r1 sparc64)
=================================================================
System uname: Linux-5.15.32-gentoo-r1-sparc64-sun4v-with-glibc2.35
KiB Mem:   531346544 total, 488273136 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 01 Sep 2022 22:46:56 +0000
sh dash 0.5.11.5
ld GNU ld (Gentoo 2.38 p4) 2.38
ccache version 4.6.1 [disabled]
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r1::gentoo
dev-lang/perl:             5.36.0::gentoo
dev-lang/python:           3.8.13_p2::gentoo, 3.9.13::gentoo, 3.10.5::gentoo, 3.11.0_beta5::gentoo
dev-lang/rust:             1.62.1::gentoo
dev-util/ccache:           4.6.1::gentoo
dev-util/cmake:            3.23.3::gentoo
dev-util/meson:            0.63.0::gentoo
sys-apps/baselayout:       2.8-r2::gentoo
sys-apps/openrc:           0.45.2::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.6-r1::gentoo
sys-devel/gcc:             10.4.1_p20220728::gentoo, 11.3.1_p20220729::gentoo, 12.1.1_p20220730::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/llvm:            14.0.6-r2::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.18-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r8::gentoo
Repositories:

gentoo
    location: /bound/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes

ACCEPT_KEYWORDS="sparc ~sparc"
ACCEPT_LICENSE="@FREE"
CBUILD="sparc64-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=native"
CHOST="sparc64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -mcpu=native"
DISTDIR="/bound/distfiles"
EMERGE_DEFAULT_OPTS="--complete-graph --with-bdeps=y --keep-going --deep"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-O2 -pipe -mcpu=native"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live cgroup config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -mcpu=native"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
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="X a52 aac acl alsa big-endian branding bzip2 cairo caps cdda cdr cli crypt cups dbus dri dts dvd dvdr encode exif filecaps flac fortran gdbm gif gmp gpm gtk gui iconv icu introspection ipv6 jit jpeg lcms libglvnd libnotify libtirpc llvm-libunwind mad mng mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds readline sdl sparc spell split-usr ssl startup-notification svg tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache 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" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10 python3_8 python3_9" RUBY_TARGETS="ruby27 ruby26" USERLAND="GNU" VIDEO_CARDS="dummy fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat 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, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-01 23:42:43 UTC
Created attachment 802627 [details]
testout.0
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-01 23:42:53 UTC
>>>>> 00:00:01 Starting test001-slapadd for mdb...
running defines.sh
Running slapadd to build slapd database...
Bus error (core dumped)
slapadd failed (138)!
>>>>> 00:00:02 Failed   test001-slapadd for mdb after 1 seconds
(exit 138)
make[1]: Leaving directory '/var/tmp/portage/net-nds/openldap-2.6.3/work/openldap-OPENLDAP_REL_ENG_2_6_3-.sparc64/tests'
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-01 23:43:14 UTC
/var/tmp/portage/net-nds/openldap-2.6.3/work/openldap-OPENLDAP_REL_ENG_2_6_3-.sparc64/tests # ./run test001-slapadd
Cleaning up test run directory leftover from previous run.
Running /var/tmp/portage/net-nds/openldap-2.6.3/work/openldap-OPENLDAP_REL_ENG_2_6_3/tests/scripts/test001-slapadd for mdb...
running defines.sh
Running slapadd to build slapd database...
Bus error (core dumped)
slapadd failed (138)!
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-01 23:45:37 UTC
Created attachment 802630 [details]
SLAPD_COMMON_WRAPPER=gdb ./run test001-slapadd &> /tmp/log
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-14 05:12:15 UTC
Huh, I'm not sure why I never posted a backtrace here? Anyway, I think it's likely the same as the See Also'd bug.
Comment 6 Larry the Git Cow gentoo-dev 2023-02-10 00:29:35 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8ba54d25287641b64419afb1a51f2182ae7490f

commit d8ba54d25287641b64419afb1a51f2182ae7490f
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-02-10 00:24:43 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-02-10 00:29:02 +0000

    net-nds/openldap: add 2.6.4
    
    Bug: https://bugs.gentoo.org/867931
    Closes: https://bugs.gentoo.org/848894
    Closes: https://bugs.gentoo.org/892009
    Signed-off-by: Sam James <sam@gentoo.org>

 net-nds/openldap/Manifest                          |   1 +
 .../openldap/files/openldap-2.6.4-clang16.patch    | 234 ++++++
 net-nds/openldap/openldap-2.6.4.ebuild             | 834 +++++++++++++++++++++
 3 files changed, 1069 insertions(+)
Comment 7 Larry the Git Cow gentoo-dev 2023-02-10 01:05:35 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00977135351c9986bb2685939ce9f8e04d56bb20

commit 00977135351c9986bb2685939ce9f8e04d56bb20
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-02-10 01:03:03 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-02-10 01:03:56 +0000

    dev-db/lmdb: add 0.9.30
    
    Bug: https://bugs.gentoo.org/867931
    Closes: https://bugs.gentoo.org/893774
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-db/lmdb/Manifest           |  1 +
 dev-db/lmdb/lmdb-0.9.30.ebuild | 75 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+)
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-12 04:49:08 UTC
test033-glue-syncrepl now fails for me on sparc.

From testout*:
```

>>>>> 00:03:15 Starting test033-glue-syncrepl for mdb...
running defines.sh
Running slapadd to build glued slapd databases...
Starting slapd 1 on TCP/IP port 9011...
Using ldapsearch to check that slapd 1 is running...
Starting slapd 2 on TCP/IP port 9012...
Using ldapsearch to check that slapd 2 is running...
Using ldapadd to populate subtree="ou=Information Technology Division,ou=People,dc=example,dc=com" on port 9011...
Using ldapadd to populate subtree="ou=Groups,dc=example,dc=com" on port 9012...
Waiting 7 seconds for shadow subtrees to sync...
Filtering original ldif used to create database...
Using ldapsearch to read all the entries from server 1...
/var/tmp/portage/net-nds/openldap-2.6.4-r1/work/openldap-OPENLDAP_REL_ENG_2_6_4/tests/scripts/test033-glue-syncrepl: line 137:  8377 Segmentation fault      (core dumped) $SLAPD -f $CONF1 -h $URI1 -d $LVL > $LOG1 2>&1
ldapsearch failed (254)!
/var/tmp/portage/net-nds/openldap-2.6.4-r1/work/openldap-OPENLDAP_REL_ENG_2_6_4/tests/scripts/test033-glue-syncrepl: line 146: kill: (8377) - No such process
>>>>> 00:03:24 Failed   test033-glue-syncrepl for mdb after 9 seconds
(exit 254)
```

But hey, it's an improvement!