FS#54316 - [mkinitcpio-busybox / glibc] Kernel panic : i686 Virtualbox guest, segfault of init

Attached to Project: Arch Linux
Opened by Benjamin Robin (benjarobin) - Monday, 05 June 2017, 21:28 GMT
Last edited by Doug Newgard (Scimmia) - Monday, 05 June 2017, 22:40 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture i686
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
initramfs segfault on i686 (tested only inside Virtualbox)

Additional info:
* package version(s)
- mkinitcpio-busybox 1.25.1-1
- glibc 2.25-2

Ash (busybox) crash with the following backtrace:

(gdb) bt
#0 0xb7f2411d in __strcspn_sse42 () from /usr/lib/libc.so.6
#1 0x0805fa3d in argstr (p=0x808dd7c "\\\201w \201\\\201$ ", flags=flags@entry=256, var_str_list=0x0) at shell/ash.c:6066
#2 0x0805fdfb in expandarg (arg=arg@entry=0xbffff798, arglist=arglist@entry=0x0, flag=flag@entry=256) at shell/ash.c:7223
#3 0x080607b1 in expandstr (ps=ps@entry=0x808781d "\\w \\$ ") at shell/ash.c:12071
#4 0x08060839 in setprompt_if (do_set=<optimized out>, whichprompt=<optimized out>) at shell/ash.c:2475
#5 0x0806183b in parsecmd (interact=<optimized out>) at shell/ash.c:12019
#6 0x080627dd in cmdloop (top=top@entry=1) at shell/ash.c:12160
#7 0x0806456e in ash_main (argc=1, argv=0xbffffc18) at shell/ash.c:13255
#8 0x0804c0be in run_applet_no_and_exit (applet_no=2, argv=argv@entry=0xbffffc18) at libbb/appletlib.c:879
#9 0x0804c341 in run_applet_and_exit (name=0xbffffd74 "ash", argv=argv@entry=0xbffffc18) at libbb/appletlib.c:893
#10 0x0804c32b in busybox_main (argv=0xbffffc18) at libbb/appletlib.c:840
#11 run_applet_and_exit (name=<optimized out>, argv=argv@entry=0xbffffc14) at libbb/appletlib.c:888
#12 0x0804c3bd in main (argc=2, argv=0xbffffc14) at libbb/appletlib.c:971

In a trying to pinpoint the source of the problem: glibc (highly probable), busybox, or Virtualbox

Steps to reproduce:

Install a new Arch Linux i686 (or update an exiting one) running inside Virtualbox.
/init inside initramfs segfault

Was initially reported here : https://forums.archlinux.fr/viewtopic.php?p=160810#p160810
This task depends upon

Closed by  Doug Newgard (Scimmia)
Monday, 05 June 2017, 22:40 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#54240 
Comment by Benjamin Robin (benjarobin) - Monday, 05 June 2017, 21:44 GMT
Here the beginning of the backtrace with glibc symbol:

#0 __strcspn_sse42 (s=0x808dd6c "\\\201w \201\\\201$ ", a=0x80872d9 <spclchars+2> "\210\203\201\202\204\207") at ../sysdeps/x86_64/multiarch/strcspn-c.c:96

And the resulting dmesg output:

[ 7727.779866] traps: busybox_unstrip[11972] general protection ip:b76f311d sp:bf81b894 error:0
[ 7727.779868] in libc.so[b75aa000+1b9000]

And I did forget to say that with glibc 2.25-1 i do not reproduce this issue

Loading...