From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 13D013858423; Tue, 8 Aug 2023 09:51:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 13D013858423 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1691488308; bh=AUTliKcP1Ty1erB0+yRsNkDTVhC3+p9XtFKMP83pAtw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=eAgszQCvs49vZ+YnyW8VlPRG74dC0W8y5ZmRQa/5rC2h2gYM3fRxlCSnvexqAKA+C F1xmuRQti+F8jIjXVLWxR4GWt9eZRKee8aReZnuP9PJpISwXx6TRwTtGXtUMyqZq/W mjIFzGV3oc1yM0B0VGgTXTSalPrZsB0LI33A7VdQ= From: "wbx at openadk dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/98784] [11/12/13/14 Regression] problematic build of uClibc with -fPIC Date: Tue, 08 Aug 2023 09:51:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 10.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wbx at openadk dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98784 Waldemar Brodkorb changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wbx at openadk dot org --- Comment #18 from Waldemar Brodkorb --- Hi, still happens with gcc 13.2.0. You can boot a shell and then in strace you see a segfault error: [pid 28] fstat64(3, {st_mode=3DS_IFDIR|S_ISVTX|0777, st_size=3D400, ...}= ) =3D 0 [pid 28] brk(0x154000) =3D 0x154000 [pid 28] getdents64(3, 0xefb11b80 /* 20 entries */, 4096) =3D 496 [pid 28] brk(0x155000) =3D 0x155000 [pid 28] lstat64("./init", {st_mode=3DS_IFLNK|0777, st_size=3D10, ...}) = =3D 0 [pid 28] lstat64("./var", {st_mode=3DS_IFDIR|0755, st_size=3D40, ...}) = =3D 0 [pid 28] lstat64("./usr", {st_mode=3DS_IFDIR|0755, st_size=3D120, ...}) = =3D 0 [pid 28] lstat64("./tmp", {st_mode=3DS_IFDIR|S_ISVTX|0777, st_size=3D40,= ...}) =3D 0 [pid 28] lstat64("./sys", {st_mode=3DS_IFDIR|0555, st_size=3D0, ...}) = =3D 0 [pid 28] lstat64("./sbin", {st_mode=3DS_IFDIR|0755, st_size=3D1420, ...}= ) =3D 0 [pid 28] lstat64("./run", {st_mode=3DS_IFDIR|0777, st_size=3D40, ...}) = =3D 0 [pid 28] lstat64("./root", {st_mode=3DS_IFDIR|0755, st_size=3D60, ...}) = =3D 0 [pid 28] lstat64("./proc", {st_mode=3DS_IFDIR|0555, st_size=3D0, ...}) = =3D 0 [pid 28] lstat64("./mnt", {st_mode=3DS_IFDIR|0755, st_size=3D40, ...}) = =3D 0 [pid 28] lstat64("./media", {st_mode=3DS_IFDIR|S_ISVTX|0777, st_size=3D4= 0, ...}) =3D 0 [pid 28] lstat64("./linuxrc", {st_mode=3DS_IFLNK|0777, st_size=3D11, ...= }) =3D 0 [pid 28] lstat64("./lib", {st_mode=3DS_IFDIR|0755, st_size=3D260, ...}) = =3D 0 [pid 28] lstat64("./etc", {st_mode=3DS_IFDIR|0755, st_size=3D640, ...}) = =3D 0 [pid 28] lstat64("./dev", {st_mode=3DS_IFDIR|0755, st_size=3D640, ...}) = =3D 0 [pid 28] lstat64("./boot", {st_mode=3DS_IFDIR|0755, st_size=3D40, ...}) = =3D 0 [pid 28] lstat64("./bin", {st_mode=3DS_IFDIR|0755, st_size=3D1920, ...})= =3D 0 [pid 28] getdents64(3, 0xefb11b80 /* 0 entries */, 4096) =3D 0 [pid 28] close(3) =3D 0 [pid 28] write(1, "\33[1;34mbin\33[m \33[1;34metc\33[m"..., 109bin= =20=20=20=20=20 etc linuxrc proc sbin usr ) =3D 109 [pid 28] write(1, "\33[1;34mboot\33[m \33[1;36minit\33["..., 109boot= =20=20=20=20 init media root sys var ) =3D 109 [pid 28] write(1, "\33[1;34mdev\33[m \33[1;34mlib\33[m"..., 90dev= =20=20=20=20=20 lib mnt run tmp ) =3D 90 [pid 28] exit_group(0) =3D ? [pid 28] +++ exited with 0 +++ <... rt_sigsuspend resumed>) =3D ? ERESTARTNOHAND (To be restart= ed if no handler) --- SIGCHLD {si_signo=3DSIGCHLD, si_code=3DCLD_EXITED, si_pid=3D28, si_uid= =3D0, si_status=3D0, si_utime=3D0, si_stime=3D3 /* 0.03 s */} --- getrusage(RUSAGE_CHILDREN, {ru_utime=3D{tv_sec=3D0, tv_usec=3D0}, ru_stime= =3D{tv_sec=3D0, tv_usec=3D0}, ...}) =3D 0 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) =3D=3D 0}], WNOHANG|WSTOPPED|WCO= NTINUED, NULL) =3D 28 getrusage(RUSAGE_CHILDREN, {ru_utime=3D{tv_sec=3D0, tv_usec=3D8000}, ru_stime=3D{tv_sec=3D0, tv_usec=3D32000}, ...}) =3D 0 wait4(-1, 0xefbe678c, WNOHANG|WSTOPPED|WCONTINUED, NULL) =3D -1 ECHILD (No = child processes) sigreturn({mask=3D[INT RT_1 RT_8 RT_15 RT_21 RT_23 RT_31]}) =3D -1 (errno 6= 29) --- SIGSEGV {si_signo=3DSIGSEGV, si_code=3DSI_KERNEL, si_addr=3DNULL} --- +++ killed by SIGSEGV +++ Any tipps how to debug this? best regards Waldemar=