From nobody Thu Nov 30 13:14:29 2023 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SgxWD40ZJz53JdW for ; Thu, 30 Nov 2023 13:15:04 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from mailgate.Leidinger.net (bastille.leidinger.net [89.238.82.207]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (P-256) client-digest SHA256) (Client CN "mailgate.leidinger.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SgxWC40wdz3Zgt for ; Thu, 30 Nov 2023 13:15:03 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=leidinger.net header.s=outgoing-alex header.b=OFyHF6fJ; spf=pass (mx1.freebsd.org: domain of Alexander@Leidinger.net designates 89.238.82.207 as permitted sender) smtp.mailfrom=Alexander@Leidinger.net; dmarc=pass (policy=quarantine) header.from=leidinger.net List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leidinger.net; s=outgoing-alex; t=1701350090; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=EJo/4Kzfz/ya0VKYJ6a5cMbccXbYQkzitQnW7npxtfI=; b=OFyHF6fJ2KY143UUwb2s9RVR8rEGmuRjAwycBNZccDn1IzinZmgxK9KMa3gqZ9/CwIzLdR 8GBU+HsqjyJheICSKQHpa4WepSGqAmPNtSVbH0vEqoUPM67lCFLVV9uEJHpapXwIN8RYpy a8q/iKAEPfWI+KsQtv/jYm4rn826nQ/5ab2Ss3flX1iIYPMf1OqLx0f1HEJzTlTGHWfLy8 jmhheOWVSH8npRVfI3lhTy76g6M8b3v75MBoSOp0QDdbi1H044tsDSee83fn7042KI04ys iF+ld8yxsaTfOHp2od+joHhdpFg37K4TUB+86atYyY0UvozcMlJBcoazmFjPQg== Date: Thu, 30 Nov 2023 14:14:29 +0100 From: Alexander Leidinger To: freebsd-hackers@freebsd.org Subject: Re: analysing a coredump In-Reply-To: References: Message-ID: <98243a0f9e3a7b9c455cbb021b362fb3@Leidinger.net> X-Sender: Alexander@Leidinger.net Organization: No organization, this is a private message. Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=_66c045ce7cfc4d0bcb40fb2dae90a563"; micalg=pgp-sha256 X-Spamd-Result: default: False [-6.10 / 15.00]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[leidinger.net,quarantine]; R_SPF_ALLOW(-0.20)[+mx:c]; R_DKIM_ALLOW(-0.20)[leidinger.net:s=outgoing-alex]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_COUNT_ZERO(0.00)[0]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; HAS_ORG_HEADER(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[leidinger.net:+]; HAS_ATTACHMENT(0.00)[]; ASN(0.00)[asn:34240, ipnet:89.238.64.0/18, country:DE]; TO_DN_NONE(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4SgxWC40wdz3Zgt X-Spamd-Bar: ------ This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --=_66c045ce7cfc4d0bcb40fb2dae90a563 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Am 2023-11-30 01:44, schrieb void: > On Wed, Nov 29, 2023 at 08:58:01PM -0000, Peter 'PMc' Much wrote: >> >> Hi, there are certainly people here who are doing such regularly. >> I am only doing it when a bug hits me. I recommend recompiling with >> debug symbols, and also setting -O0 (because otherwise many >> interesting things get "optimized away"). >> >> Then a backtrace should give proper locations to be found in the >> source, and probably understood from there. >> >> Since I cannot remember the options, I coded them into my build >> engine, as such: >> https://gitr.daemon.contact/sysup/commit/?id=3e15a711236c90ac9d525b83d1388cb8e4e1141d >> Adding these options to make.conf has worked for me (but may depend on >> how >> the port is designed). > > I have poudriere-devel, and was thinking of doing it like so: > > poudriere bulk -j 132Ramd64 -O sccache -f portslist.txt -i > (finishes bulk build, go into interactive mode) > cd /usr/ports/www/apache24 > make -DBATCH -DDEBUG && make > > but not sure here how I'd modify CFLAGS for -O0 > > There's no DEBUG in the options for this port A port-build normally strips away debug info. But we have infrastructure for this: https://wiki.freebsd.org/DebuggingPorts You can even add this to the poudriere make.conf. Bye, Alexander. -- http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_66c045ce7cfc4d0bcb40fb2dae90a563 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc; size=833 Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEER9UlYXp1PSd08nWXEg2wmwP42IYFAmVoisQACgkQEg2wmwP4 2IadwQ//WlF3u/SEbiaKbBDrxrQRIJZXiPbaCwW79HX3KTK/89VlzAGI+pxdbXJT j0xsaMhCu1aVc1RAKHaNkxH28enqDzC1zDRn8PsY9hL1BGIXHiwVFkNRnFkGIzi9 K0KSNVwvgMv5GKLd7LeYe0G4jpLMfRouFVw8SPN7zKwCwkBNnKgIcx4xuL5Z08wz 1eKK2WfJg8TuqmgqTWv0S9O9le1o1o6j69K/0eieyfQaIFApDg3klkNsGtKZHnlh vzABgevQL1/blGgTb85O9E9oOfg/f+1XCerIbOyD1ZDBYuLMg61ewYQEtNJ3M9Ew igeOF72tPcwI8QIGJ8PMKsFilW1pEdOt1BkyG6YXQjcQe9mO31m3C61ZD1eit1Oy veyE3FmyA7nHmThIFrgQLFkdLk1dKRngB/dOpdn/e2e0miG3lmgXFl5wq5EzTcqB 0faPA9zkJrJ6smAn78kTHd1+c64PkZ+SY5+KPo0nX8WwK5vuIFOOv4Lx23HRNBmr oMxFzhBwBN681Z42wEA5KacESHZFOv2d6TkT/ydwhW/zTXzSjfCCrU+QEQG8TcII 3pWNo9CXEFj9dsHi/1+wSHAIIAd3h9twb2zt6Y4V9cbUDA2EEoZ+Ih2duD8XWRkG c3GnoW8O7TLo9bugXy/GHCtOL7LPHVOmjOT4+FoAV8QYy521bv4= =5mcz -----END PGP SIGNATURE----- --=_66c045ce7cfc4d0bcb40fb2dae90a563--