All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 14581] New: qemu-system-ppc -M mac99 does not boot for glibc system
@ 2022-02-10 13:46 bugzilla
  2022-02-14 20:35 ` [Buildroot] [Bug 14581] " bugzilla
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla @ 2022-02-10 13:46 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=14581

            Bug ID: 14581
           Summary: qemu-system-ppc -M mac99 does not boot for glibc
                    system
           Product: buildroot
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned@buildroot.uclibc.org
          Reporter: wbx@openadk.org
                CC: buildroot@uclibc.org
  Target Milestone: ---

Hi,

you get following error when trying to boot a glibc system in qemu-system-ppc:
Run /sbin/init as init process
init[1]: segfault (11) at 7369693e nip 7eb024 lr 7ead8c code 1 in
libc.so.6[772000+1fa000]
init[1]: code: 7d5d5378 815efd38 39200000 913f0000 814a0000 813f000c 75291fbf
2c0a0000 
init[1]: code: 913f000c 41e2fe94 893d0000 5529103a <7d2a482e> 2c090000 41c2fe80
7fe4fb78 
Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
CPU: 0 PID: 1 Comm: init Not tainted 5.15.0 #1
Call Trace:
[f1019d80] [c004c054] panic+0x124/0x308 (unreliable)
[f1019de0] [c004eadc] do_exit+0x910/0x918
[f1019e30] [c004fb38] do_group_exit+0x34/0xa8
[f1019e50] [c005e550] get_signal+0x1ec/0x86c
[f1019eb0] [c000cdcc] do_notify_resume+0x78/0x304
[f1019f10] [c00128a0] interrupt_exit_user_prepare_main+0xf8/0x130
[f1019f30] [c0019224] interrupt_return+0x14/0x144
--- interrupt: 300 at 0x7eb024
NIP:  007eb024 LR: 007ead8c CTR: 007ff680
REGS: f1019f40 TRAP: 0300   Not tainted  (5.15.0)
MSR:  0000d032 <EE,PR,ME,IR,DR,RI>  CR: 48002424  XER: 20000000
DAR: 7369693e DSISR: 40000000 
GPR00: 007e16a0 af9058c0 a7b8a430 00ab1879 00000000 af905d20 af906138 af906630 
GPR08: 00000030 000001cc 73696772 00000000 48002424 00acfa54 00000000 af905d20 
GPR16: 00000000 00ab1879 af905d20 00000000 00000000 4ec40000 af906630 00000000 
GPR24: af906138 af9066f8 af906138 00000000 00000000 00ab187a 00981fb8 af905d20 
NIP [007eb024] 0x7eb024
LR [007ead8c] 0x7ead8c
--- interrupt: 300
Rebooting in 180 seconds..

best regards
 Waldemar

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Buildroot] [Bug 14581] qemu-system-ppc -M mac99 does not boot for glibc system
  2022-02-10 13:46 [Buildroot] [Bug 14581] New: qemu-system-ppc -M mac99 does not boot for glibc system bugzilla
@ 2022-02-14 20:35 ` bugzilla
  0 siblings, 0 replies; 2+ messages in thread
From: bugzilla @ 2022-02-14 20:35 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=14581

--- Comment #1 from romain.naour@gmail.com ---
Hi Waldemar,

Thanks for the report!

I can reproduce it easily with gcc-10 and gcc-11 but not with gcc-9.

The powerpc 7400 support has been broken since the beginning of gcc-10
development.
After the commit [1] removing -many from the options passed by default to the
assembler, the build of this defconfig fail with assembler errors:

arch/powerpc/perf/bhrb.S: Assembler messages:
arch/powerpc/perf/bhrb.S:22: Error: unrecognized opcode: `cmpldi'
arch/powerpc/perf/bhrb.S:24: Error: unrecognized opcode: `ld'
arch/powerpc/perf/bhrb.S:25: Error: unrecognized opcode: `sldi'

It was fixed later by the commit [2] before the gcc-10 release but glibc
segfault at runtime since then.

The Buildroot gitlab-ci testing only test with uClibc-ng libc but I try
sometime with Glibc... but I missed this issue.

This issue should be reported to gcc.

[1]
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=e154242724b084380e3221df7c08fcdbd8460674
[2]
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=66711279083121b07d909ac0fc2f3a744ac7c937

Best regards,
Romain

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-14 20:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-10 13:46 [Buildroot] [Bug 14581] New: qemu-system-ppc -M mac99 does not boot for glibc system bugzilla
2022-02-14 20:35 ` [Buildroot] [Bug 14581] " bugzilla

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.