From nobody Sat Apr 13 15:39:49 2024 X-Original-To: bugs@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 4VGyKx3BQgz5HfQ2 for ; Sat, 13 Apr 2024 15:39:49 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VGyKx1TkPz4JrY for ; Sat, 13 Apr 2024 15:39:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713022789; a=rsa-sha256; cv=none; b=IQjeSCLTMzmu1jy3srlyCBIhgdVG/n3zTx2b1T0hmbpliFDzc4VkGZVGI6VTyuzUiaRUQ0 zg4XwRVpL65wznanX3JBzLm0M+dxHwtaBLqYKIUWoGo72pWMaa9TUC7I/1RsqRJZkg7Rjb EyIXCR1Q5Jil2ewStPEO6j487p9AFKABZKInAl3PQLLpei7zPV0XM1xYqaGIUug6QlbN5e ZeQdeOK5CrTkJ7tHB8Z/jjgRtNTeNx7WGNn1LtGTT0ZmdKXRMtKr0EwzbI5niIjsDCJ4Bs WD+F35GrkVyLYfmJEH/VYq9wKnFJ76NBla39nf2DSP14INYlmGrBUsQ2OmMJ9w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713022789; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HA6jp7snW3vHH4l4Xr4wu5Yr0PxzZm+tBM+YPyXoctI=; b=hIqb+U2kXFppv3BlwO+PshqtozGXh1ejyzlnpzg5ksVlwkhEKSqIXRmnlWB5n4DtXvd9Eh jleTIo1ulEy0TQ5rz+vDTzch2eMPzVrmf2YF8sSTvGo/T9MRX2ctx6Of118cc1E1eid6pf bGUUkpiaBoADzMlpwyj5KHPOgoNqfiyh3C9D+1p4eHKU/VnYGxM8ILwdVGpbsX2dbz6nKp OR78YLHbDjmIBMRzeJnh0OSLTXojPmXIrdTtdcn9PtJQ78Di+YcWDOfMQadSGgROqbwQS6 75vQYFNJ7V9rOJ3X9Jx5TU3Pq0DN4u1yo7yXYcTgaLhXtLZRlf3zvbfrb2hNLg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VGyKx0vK8zf61 for ; Sat, 13 Apr 2024 15:39:49 +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 43DFdmPR087029 for ; Sat, 13 Apr 2024 15:39:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 43DFdmwH087028 for bugs@FreeBSD.org; Sat, 13 Apr 2024 15:39:48 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: bugs@FreeBSD.org Subject: [Bug 278347] pmcstat: crash on image processing Date: Sat, 13 Apr 2024 15:39:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: mizhka@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter 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 List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278347 Bug ID: 278347 Summary: pmcstat: crash on image processing Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: mizhka@FreeBSD.org Just got crash on CURRENT trying to run: pmcstat -T -S instructions -w 1=20 under load of poudriere (48 cores, 256GiB RAM, 40 processes) with stack tra= ce: (lldb) bt * thread #1, name =3D 'pmcstat', stop reason =3D signal SIGSEGV frame #0: 0x000026a91d2f2e04 pmcstat`pmcstat_string_lookup_hash(s=3D0x0000000000000000) at libpmcstat_string.c:120:14 frame #1: 0x000026a91d2f13e0 pmcstat`pmcstat_image_from_path(internedpath=3D, iskernelmodule=3D, args=3D, plugins=3D0x000026a91= d2f5d60) at libpmcstat_image.c:513:9 * frame #2: 0x000026a91d2f2585 pmcstat`pmcstat_process_elf_exec(pp=3D0x000047dc37957dd0, image=3D0x000047dc35c0fdc0, baseaddr=3D51616457125888, dynaddr=3D, args=3D0x000026a91d2f6490, plugins=3D0x000026a91d2f5d60, pmcstat_stats=3D0x000026a91d2f6610) at libpmcstat_process.c:117:15 frame #3: 0x000026a91d2f26dc pmcstat`pmcstat_process_exec(pp=3D, path=3D, baseaddr=3D, dynaddr=3D, args=3D, plugins=3D, pmcstat_stats=3D) at libpmcstat_process.c:167:3 [artificial] frame #4: 0x000026a91d2f1a0c pmcstat`pmcstat_analyze_log(args=3D0x000026a91d2f6490, plugins=3D0x000026a91d2f5d60, pmcstat_stats=3D0x000026a91d2f6610, pmcstat_kernproc=3D0x000047dc35c31030, pmcstat_mergepmc=3D1, pmcstat_npmcs=3D0x000026a91d2f6644, ps_samples_period=3D0x000026a91d2f6648)= at libpmcstat_logging.c:352:4 frame #5: 0x000026a91d2eb48a pmcstat`pmcstat_process_log at pmcstat_log.c:532:11 frame #6: 0x000026a91d2eaddf pmcstat`main(argc=3D, argv=3D) at pmcstat.c:1364:16 frame #7: 0x000026b14534b87a libc.so.7`__libc_start1(argc=3D6, argv=3D0x000026b13df19800, env=3D0x000026b13df19838, cleanup=3D, mainX=3D(pmcstat`main at pmcstat.c:440)) at libc_start1.c:157:7 frame #8: 0x000026a91d2e858d pmcstat`_start at crt1_s.S:83 Interesting frame #3 contains image with NULL dynlinkerpath: (lldb) print *image (pmcstat_image) { pi_next =3D { le_next =3D NULL le_prev =3D 0x000047dc36a82ec0 } pi_execpath =3D 0x000047dc36b14ba0 pi_samplename =3D 0xa5a5a5a5a5a5a5a5 pi_fullpath =3D 0x000047dc36b14ba0 pi_name =3D 0x000047dc36b370a0 pi_type =3D PMCSTAT_IMAGE_ELF64 pi_start =3D 27360 pi_end =3D 113441 pi_entry =3D 0 pi_vaddr =3D 24576 pi_isdynamic =3D 1 pi_iskernelmodule =3D 0 pi_dynlinkerpath =3D 0x0000000000000000 pi_symbols =3D 0x000047dc35ce1180 pi_symcount =3D 23 pi_addr2line =3D NULL pi_gmlist =3D { lh_first =3D 0xa5a5a5a5a5a5a5a5 } } It seems reproducible (at least 3 consecutive tries). --=20 You are receiving this mail because: You are the assignee for the bug.=