From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E5F473858D35; Mon, 25 May 2020 09:33:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E5F473858D35 From: "liaichun at huawei dot com" To: glibc-bugs@sourceware.org Subject: [Bug nss/26038] [core_dump] call getpwnam_r() appears core_dump Date: Mon, 25 May 2020 09:33:54 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: nss X-Bugzilla-Version: 2.31 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: liaichun at huawei dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 May 2020 09:33:55 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26038 --- Comment #1 from liaichun --- here is my debug code, i increased the judgment of fct, and triggered it else { fct.l =3D start_fct;=20=20=20 nip =3D startp; if (fct.l =3D=3D 0x0)=20=20=20=20=20=20=20=20=20=20=20=20 *(int=C2=A0*)0=C2=A0=3D=C2=A00=C2=A0=20=20=20 } #0 __getpwnam_r (name=3D0xffffbd62f940 "snasuser", resbuf=3D0xffffbd0257a8, buffer=3D0xffffbd0257d8 "", buflen=3D96, result=3D= 0x0) at ../nss/getXXbyYY_r.c:306 306 *(int *)0 =3D 0; [Current thread is 1 (Thread 0xffffbd0261d0 (LWP 83654))] Missing separate debuginfos, use: dnf debuginfo-install snas-cm-3.6.1.126270-1.aarch64 (gdb) bt #0 __getpwnam_r (name=3D0xffffbd62f940 "snasuser", resbuf=3D0xffffbd0257a8, buffer=3D0xffffbd0257d8 "", buflen=3D96, result=3D= 0x0) at ../nss/getXXbyYY_r.c:306 #1 0x0000ffffbd46c7d4 in __LOG_LogSetOwner (fd=3D7) at base_log.c:1778 #2 0x0000ffffbd46b988 in Base_Log_FileNeedExport (iFd=3D3, pcPath=3D0xffff= bd025938 "/var/log/snas_CM.log", moduleId=3DMODULE_CM) at base_log.c:942 #3 0x0000ffffbd46ca1c in __LOG_LogSelfTask (pArgv=3D0xffffbd638198 ) at base_log.c:1874 #4 0x0000ffffbe4538bc in start_thread (arg=3D0xffffc2be497f) at pthread_create.c:486 #5 0x0000ffffbd1fda1c in thread_start () at ../sysdeps/unix/sysv/linux/aarch64/clone.S:78 (gdb) --=20 You are receiving this mail because: You are on the CC list for the bug.=