From nobody Wed Nov 29 20:58:01 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 4SgWtv4jSkz52FXN for ; Wed, 29 Nov 2023 21:00:39 +0000 (UTC) (envelope-from li-fbsd@citylink.dinoex.sub.org) Received: from uucp.dinoex.org (uucp.dinoex.org [IPv6:2a0b:f840::12]) (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 RSA-PSS (2048 bits) client-digest SHA256) (Client CN "uucp.dinoex.sub.de", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SgWts5L93z4gkM for ; Wed, 29 Nov 2023 21:00:37 +0000 (UTC) (envelope-from li-fbsd@citylink.dinoex.sub.org) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of li-fbsd@citylink.dinoex.sub.org designates 2a0b:f840::12 as permitted sender) smtp.mailfrom=li-fbsd@citylink.dinoex.sub.org; dmarc=none Received: from uucp.dinoex.org (uucp.dinoex.org [IPv6:2a0b:f840:0:0:0:0:0:12]) by uucp.dinoex.org (8.17.2/8.17.2) with ESMTPS id 3ATL06f3063846 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Wed, 29 Nov 2023 22:00:06 +0100 (CET) (envelope-from li-fbsd@citylink.dinoex.sub.org) X-MDaemon-Deliver-To: Received: (from uucp@localhost) by uucp.dinoex.org (8.17.2/8.17.2/Submit) with UUCP id 3ATL06RB063845 for freebsd-hackers@freebsd.org; Wed, 29 Nov 2023 22:00:06 +0100 (CET) (envelope-from li-fbsd@citylink.dinoex.sub.org) Received: from admn.intra.daemon.contact (localhost [127.0.0.1]) by admn.intra.daemon.contact (8.17.1/8.17.1) with ESMTPS id 3ATKw4dI076107 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Wed, 29 Nov 2023 21:58:04 +0100 (CET) (envelope-from li-fbsd@citylink.dinoex.sub.org) Received: from intra.daemon.contact (news@localhost) by admn.intra.daemon.contact (8.17.1/8.17.1/Submit) with NNTP id 3ATKw13l076075 for freebsd-hackers@freebsd.org; Wed, 29 Nov 2023 21:58:01 +0100 (CET) (envelope-from li-fbsd@citylink.dinoex.sub.org) X-Authentication-Warning: admn.intra.daemon.contact: news set sender to li-fbsd@citylink.dinoex.sub.org using -f From: "Peter 'PMc' Much" X-Newsgroups: m2n.fbsd.hackers Subject: Re: analysing a coredump Date: Wed, 29 Nov 2023 20:58:01 -0000 (UTC) Message-ID: References: Injection-Date: Wed, 29 Nov 2023 20:58:01 -0000 (UTC) Injection-Info: admn.intra.daemon.contact; logging-data="68901"; mail-complaints-to="usenet@citylink.dinoex.sub.org" User-Agent: slrn/1.0.3 (FreeBSD) To: freebsd-hackers@freebsd.org X-Milter: Spamilter (Reciever: uucp.dinoex.org; Sender-ip: 0:0:2a0b:f840::; Sender-helo: uucp.dinoex.org;) X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (uucp.dinoex.org [IPv6:2a0b:f840:0:0:0:0:0:12]); Wed, 29 Nov 2023 22:00:08 +0100 (CET) X-Spamd-Result: default: False [-1.57 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_SPAM_LONG(0.43)[0.431]; FORGED_SENDER(0.30)[pmc@citylink.dinoex.sub.org,li-fbsd@citylink.dinoex.sub.org]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[sub.org]; R_DKIM_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; RCPT_COUNT_ONE(0.00)[1]; HAS_XAW(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; ASN(0.00)[asn:205376, ipnet:2a0b:f840::/32, country:DE]; TO_MATCH_ENVRCPT_ALL(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_NEQ_ENVFROM(0.00)[pmc@citylink.dinoex.sub.org,li-fbsd@citylink.dinoex.sub.org] X-Rspamd-Queue-Id: 4SgWts5L93z4gkM X-Spamd-Bar: - 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 On 2023-11-29, void wrote: > Hi, > > httpd had an unexpected coredump. I installed gbd and with > what little i know of it, ran gdb against the dump: > > (gdb) core /httpd.core > [New LWP 101030] > Core was generated by `/usr/local/sbin/httpd -DNOHTTPACCEPT'. > Program terminated with signal SIGSEGV, Segmentation fault. > Address not mapped to object. > #0 0x000000083f237930 in ?? () > (gdb) bt full > #0 0x000000083f237930 in ?? () > No symbol table info available. > > (goes on like this for another 10 lines) > > I *guess* [1] I'll need to recompile apache24 with debug symbols then > wait for another crash. Is there anything else i can do regarding this problem? > > [1] gdb etc aren't my wheelhouse *at all* but i'm willing to learn, and any > tips/pointers would be much appreciated, thanks 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). Also there is a "lldb" command on the system, which may or may not give better results, anyway that has elaborate features. cheerio & good luck!