Date: Thu, 30 Nov 2023 14:14:29 +0100 From: Alexander Leidinger <Alexander@Leidinger.net> To: freebsd-hackers@freebsd.org Subject: Re: analysing a coredump Message-ID: <98243a0f9e3a7b9c455cbb021b362fb3@Leidinger.net> In-Reply-To: <ZWfbA_oZySs0ZlVL@int21h> References: <ZWchjl9RYH0fc6AF@int21h> <slrnumf9ep.mn0.pmc@disp.intra.daemon.contact> <ZWfbA_oZySs0ZlVL@int21h>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?98243a0f9e3a7b9c455cbb021b362fb3>