[From nobody Sun May 24 17:19:09 2026
Received: (at submit) by bugs.debian.org; 12 Apr 2026 20:09:36 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-18.9 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_PACKAGE,FOURLA,HAS_PACKAGE,
 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED,
 RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_PASS,SPF_PASS,XMAILER_REPORTBUG
 autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 74; hammy, 150; neutral, 123; spammy,
 0. spammytokens: hammytokens:0.000-+--trixie, 0.000-+--python3, 
 0.000-+--sk:taint_o, 0.000-+--sk:TAINT_O, 0.000-+--HTo:N*Debian
Return-path: &lt;jd+debianbugs@onix.de&gt;
Received: from galaxy.onix.de ([87.245.5.33]:57044)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;jd+debianbugs@onix.de&gt;)
 id 1wC17f-000kYz-2u for submit@bugs.debian.org;
 Sun, 12 Apr 2026 20:09:36 +0000
Received: from ds9.onix.de
 (leasedline-static-080-228-057-030.ewe-ip-backbone.de [80.228.57.30])
 by galaxy.onix.de (Postfix) with ESMTP id 59ABFC039D
 for &lt;submit@bugs.debian.org&gt;; Sun, 12 Apr 2026 22:01:36 +0200 (CEST)
Authentication-Results: galaxy.onix.de; dkim=none;
 spf=pass (galaxy.onix.de: domain of jd+debianbugs@onix.de designates
 80.228.57.30 as permitted sender) smtp.mailfrom=jd+debianbugs@onix.de; 
 dmarc=pass (policy=none) header.from=onix.de
Received: by ds9.onix.de (Postfix, from userid 0)
 id 3EEF2600C3; Sun, 12 Apr 2026 22:01:36 +0200 (CEST)
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: root &lt;jd+debianbugs@onix.de&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: resource-agents: Fatal syntax error in
 /usr/lib/ocf/lib/heartbeat/ocf-shellfuncs
Message-ID: &lt;177602409623.350786.3826537677584576173.reportbug@ds9.onix.de&gt;
X-Mailer: reportbug 13.2.0
Date: Sun, 12 Apr 2026 22:01:36 +0200
X-Spamd-Bar: +++++
X-Rspamd-Action: no action
X-Spamd-Result: default: False [5.77 / 18.00];
 ONCE_RECEIVED_STRICT(4.00)[static];
 IP_REPUTATION_SPAM(3.06)[asn: 9145(0.22), country: DE(0.00), ip:
 80.228.57.30(0.54)]; 
 SPF_REPUTATION_HAM(-0.67)[-0.67385718521253];
 DMARC_POLICY_ALLOW(-0.50)[onix.de,none];
 R_SPF_ALLOW(-0.20)[+mx:c]; RCVD_NO_TLS_LAST(0.10)[];
 MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[];
 MX_GOOD(-0.01)[];
 ASN(0.00)[asn:9145, ipnet:80.228.0.0/16, country:DE];
 RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_ONE(0.00)[1];
 MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; TO_DN_ALL(0.00)[];
 FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[];
 TAGGED_FROM(0.00)[debianbugs]; ALIAS_RESOLVED(0.00)[];
 FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[];
 MID_RHS_MATCH_FROMTLD(0.00)[]
X-Rspamd-Server: galaxy
X-Rspamd-Queue-Id: 59ABFC039D
X-Greylist: delayed 471 seconds by postgrey-1.37 at buxtehude;
 Sun, 12 Apr 2026 20:09:35 UTC
Delivered-To: submit@bugs.debian.org

Package: resource-agents
Version: 1:4.16.0-3+deb13u1
Severity: important

Dear Maintainer,

after upgrading to trixie, one of my OCF cluster resources (mariadb with OCF /usr/lib/ocf/lib/heartbeat/ocf-shellfuncs) behaved irrational.
Tracing revealed a weird error:
```
+ /bin/bash -c 'CIB_file=&lt;(/usr/sbin/cibadmin -Q                        /usr/sbin/crm_mon $*' -- -1 --output-as=xml
--: -c: line 2: unexpected EOF while looking for matching `)'
```

Following the breadcrumbs, I revealed the cause in the &quot;crm_mon_no_validation&quot; function from /usr/lib/ocf/lib/heartbeat/ocf-shellfuncs:

```
crm_mon_no_validation()
{
        # The subshell prevents parsing error with incompatible shells
        ocf_version_cmp &quot;$OCF_RESKEY_crm_feature_set&quot; &quot;3.19.7&quot;
        if [ $res -eq 2 ] || [ $res -eq 1 ]; then
                &quot;$SHELL&quot; -c &quot;CIB_file=&lt;(${HA_SBIN_DIR}/cibadmin -Q \
                        ${HA_SBIN_DIR}/crm_mon \$*&quot; -- $*
        else
                &quot;$SHELL&quot; -c &quot;CIB_file=&lt;(${HA_SBIN_DIR}/cibadmin -Q | sed 's/validate-with=\&quot;[^\&quot;]*\&quot;/validate-with=\&quot;none\&quot;/') \
                        ${HA_SBIN_DIR}/crm_mon \$*&quot; -- $*
        fi
}
```

The first $SHELL line is obviously missing a &quot;)&quot;, which causes the function to return erronously with 1.


-- System Information:
Debian Release: 13.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'proposed-updates'), (500, 'oldstable-updates'), (500, 'oldstable-security'), (500, 'oldstable-proposed-updates'), (500, 'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.74+deb13+1-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages resource-agents depends on:
ii  bc            1.07.1-4
ii  cluster-glue  1.0.12-24+b1
ii  gawk          1:5.2.1-2+b1
ii  libc6         2.41-12+deb13u2
ii  libnet1       1.3+dfsg-2
ii  libplumb2t64  1.0.12-24+b1
ii  libqb100      2.0.8-2+b1
ii  psmisc        23.7-2
ii  python3       3.13.5-1

Versions of packages resource-agents recommends:
pn  libxml2-utils      &lt;none&gt;
ii  net-tools          2.10-1.3
ii  python3-googleapi  2.166.0-1

resource-agents suggests no packages.

-- no debconf information
]