From owner-freebsd-ports-bugs@freebsd.org Mon Dec 23 10:42:12 2019 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 027001EC186 for ; Mon, 23 Dec 2019 10:42:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 47hGBW6LVcz4V8s for ; Mon, 23 Dec 2019 10:42:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id D9C5F1EC185; Mon, 23 Dec 2019 10:42:11 +0000 (UTC) Delivered-To: ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D98851EC184 for ; Mon, 23 Dec 2019 10:42:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47hGBW5VCzz4V8r for ; Mon, 23 Dec 2019 10:42:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B7F2DEA5C for ; Mon, 23 Dec 2019 10:42:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xBNAgBgl073512 for ; Mon, 23 Dec 2019 10:42:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xBNAgBEb073511 for ports-bugs@FreeBSD.org; Mon, 23 Dec 2019 10:42:11 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 242827] [Possible patch] net/samba410 with DEBUG options still builds with optimizations Date: Mon, 23 Dec 2019 10:42:10 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: ml@netfence.it X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: timur@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Dec 2019 10:42:12 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242827 Bug ID: 242827 Summary: [Possible patch] net/samba410 with DEBUG options still builds with optimizations Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: timur@FreeBSD.org Reporter: ml@netfence.it Assignee: timur@FreeBSD.org Flags: maintainer-feedback?(timur@FreeBSD.org) I'm trying to debug a problem where smbd crashes, so I built the port (in Poudriere) with DEBUG option enabled. While debugging symbols are now there, the code is still built with -O2, ma= king it difficult to analyze core dumps. Some extract of the build log (notice CFLAGS=3D"-O2..."): ZEROCONF=3Dnone PERL_USE_UNSAFE_INC=3D1 OPENSSLBASE=3D/usr OPENSSLDIR=3D/et= c/ssl OPENSSLINC=3D/usr/include OPENSSLLIB=3D/usr/lib NOCOLOR=3Dyes WAF_LOG_FORMAT=3D'%(c1)s%(zone)s%(c2)s %(message)s' RPCGEN_CPP=3D"cpp" XDG_DATA_HOME=3D/wrkdirs/usr/ports/net/samba410/work=20 XDG_CONFIG_HOME=3D/wrkdirs/usr/ports/net/samba410/work=20 HOME=3D/wrkdirs/usr/ports/net/samba410/work TMPDIR=3D"/tmp" PATH=3D/wrkdirs/usr/ports/net/samba410/work/.bin:/sbin:/bin:/usr/sbin:/usr/= bin:/usr/local/sbin:/usr/local/bin:/root/bin NO_PIE=3Dyes MK_DEBUG_FILES=3Dno MK_KERNEL_SYMBOLS=3Dno SHELL=3D/bin/sh NO_= LINT=3DYES PREFIX=3D/usr/local LOCALBASE=3D/usr/local CC=3D"cc" CFLAGS=3D"-O2 -pipe= =20 -DLIBICONV_PLUG -fno-color-diagnostics -fstack-protector-strong -DLDAP_DEPRECATED -isystem /usr/local/include -fno-strict-aliasing -fno-omit-frame-pointer" CPP=3D"cpp" CPPFLAGS=3D"-DLIBICONV_PLUG -isystem /usr/local/include" LDFLAGS=3D" -fstack-protector-strong -L/usr/local/lib= " LIBS=3D"" CXX=3D"c++" CXXFLAGS=3D"-O2 -pipe -DLIBICONV_PLUG -fno-color-dia= gnostics -fstack-protector-strong -DLDAP_DEPRECATED -isystem /usr/local/include -fno-strict-aliasing -fno-omit-frame-pointer -DLIBICONV_PLUG -isystem /usr/local/include " MANPREFIX=3D"/usr/local" BSD_INSTALL_PROGRAM=3D"insta= ll -m 555" BSD_INSTALL_LIB=3D"install -m 0644" BSD_INSTALL_SCRIPT=3D"install = -m 555" BSD_INSTALL_DATA=3D"install -m 0644" BSD_INSTALL_MAN=3D"install -m 444"= =20=20=20 There's the following line in the Makefile: DEBUG_FLAGS=3D -g -ggdb3 -O0 I guess it should be: DEBUG_CFLAGS=3D -g -ggdb3 -O0=20=20=20 With the above change, the logs not report: ZEROCONF=3Dnone PERL_USE_UNSAFE_INC=3D1 OPENSSLBASE=3D/usr OPENSSLDIR=3D/et= c/ssl OPENSSLINC=3D/usr/include OPENSSLLIB=3D/usr/lib NOCOLOR=3Dyes WAF_LOG_FORMAT=3D'%(c1)s%(zone)s%(c2)s %(message)s' RPCGEN_CPP=3D"cpp" XDG_DATA_HOME=3D/wrkdirs/usr/ports/net/samba410/work=20 XDG_CONFIG_HOME=3D/wrkdirs/usr/ports/net/samba410/work=20 HOME=3D/wrkdirs/usr/ports/net/samba410/work TMPDIR=3D"/tmp" PATH=3D/wrkdirs/usr/ports/net/samba410/work/.bin:/sbin:/bin:/usr/sbin:/usr/= bin:/usr/local/sbin:/usr/local/bin:/root/bin NO_PIE=3Dyes MK_DEBUG_FILES=3Dno MK_KERNEL_SYMBOLS=3Dno SHELL=3D/bin/sh NO_= LINT=3DYES PREFIX=3D/usr/local LOCALBASE=3D/usr/local CC=3D"cc" CFLAGS=3D"-O2 -pipe = -g -ggdb3 -O0 -DLIBICONV_PLUG -fno-color-diagnostics -fstack-protector-strong -DLDAP_DEPRECATED -isystem /usr/local/include -fno-strict-aliasing -fno-omit-frame-pointer" CPP=3D"cpp" CPPFLAGS=3D"-DLIBICONV_PLUG -isystem /usr/local/include" LDFLAGS=3D" -fstack-protector-strong -L/usr/local/lib= " LIBS=3D"" CXX=3D"c++" CXXFLAGS=3D"-O2 -pipe -g -ggdb3 -O0 -DLIBICONV_PLUG -fno-color-diagnostics -fstack-protector-strong -DLDAP_DEPRECATED -isystem /usr/local/include -fno-strict-aliasing -fno-omit-frame-pointer=20 -DLIBICONV_PLUG -isystem /usr/local/include " MANPREFIX=3D"/usr/local" BSD_INSTALL_PROGRAM=3D"install -s -m 555" BSD_INSTALL_LIB=3D"install -s = -m 0644" BSD_INSTALL_SCRIPT=3D"install -m 555" BSD_INSTALL_DATA=3D"install -m 06= 44"=20 BSD_INSTALL_MAN=3D"install -m 444"=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20 Notice: "-O2 ... -O0" I still have to verify if -O0 takes precedence over -O2. --=20 You are receiving this mail because: You are the assignee for the bug.=