Anyone else ever get stuck in build_image generating an SSH key?

33 views
Skip to first unread message

Doug Anderson

unread,
May 4, 2012, 11:48:35 AM5/4/12
to chromium-os-dev
For quite a while now I get periodic freezes in build_image when building ARM images.  I haven't had a chance to look at it much myself, but am curious if anyone else has seen it.  Ctrl-C twice (once to get out of wherever it's stuck and once to finish killing build_image) and then retrying seems to work.

Sometimes, it just hangs.  Sometimes I actually get crashes...  Here's some samples.  If anyone else is seeing this, I can file a bug.  Otherwise I'll look at it eventually, or maybe just give up and rebuild a new chroot:


Unsupported syscall crash:
Generating SSH key

Merge complete
Done
Recording production image size.
Modifying Release Description for Test.
Modifying Release Track for Test (testimage-channel).
Configuring for backchannel network device
Configuring for virtual WiFi devices
Copying public keys and changing PATH for ssh clients
Modifying upstart scripts for test accessibility.
Enabling autologin using autox.
Adding mock Google Accounts server certs.
Generating a 1024 bit RSA private key
..............++++++
.......++++++
writing new private key to '/tmp/mock_server.key.NtFO4'
-----
qemu: Unsupported ARM syscall: 0x40adf494

Stack smashing crash:
Merge complete
Done
Recording production image size.
Modifying Release Description for Test.
Modifying Release Track for Test (testimage-channel).
Configuring for backchannel network device
Configuring for virtual WiFi devices
Copying public keys and changing PATH for ssh clients
Modifying upstart scripts for test accessibility.
Enabling autologin using autox.
Adding mock Google Accounts server certs.
Generating a 1024 bit RSA private key
...++++++
...++++++
writing new private key to '/tmp/mock_server.key.yHTyP'
-----
*** stack smashing detected ***: /tmp/qemu-arm terminated
======= Backtrace: =========
[0x600bc345]
[0x600bc30e]
======= Memory map: ========
40000000-4001d000 r-xp 00000000 07:01 13471                              /usr/local/bin/nsscertutil
4001d000-40024000 ---p 00000000 00:00 0 
40024000-40027000 rw-p 0001c000 07:01 13471                              /usr/local/bin/nsscertutil
40027000-40028000 rw-p 00000000 00:00 0 
40028000-40029000 ---p 00000000 00:00 0 
40029000-40829000 rw-p 00000000 00:00 0 
40829000-4083f000 r-xp 00000000 07:00 7802                               /lib/ld-2.11.1.so
4083f000-40846000 ---p 00000000 00:00 0 
40846000-40847000 r--p 00015000 07:00 7802                               /lib/ld-2.11.1.so
40847000-40848000 rw-p 00016000 07:00 7802                               /lib/ld-2.11.1.so
40848000-40849000 rw-p 00000000 00:00 0 
40853000-40871000 r-xp 00000000 07:00 24026                              /usr/lib/libssl3.so.12
40871000-40879000 ---p 0001e000 07:00 24026                              /usr/lib/libssl3.so.12
40879000-4087b000 rw-p 0001e000 07:00 24026                              /usr/lib/libssl3.so.12
4087b000-40891000 r-xp 00000000 07:00 24034                              /usr/lib/libsmime3.so.12
40891000-40899000 ---p 00016000 07:00 24034                              /usr/lib/libsmime3.so.12
40899000-4089b000 rw-p 00016000 07:00 24034                              /usr/lib/libsmime3.so.12
4089b000-40946000 r-xp 00000000 07:00 24037                              /usr/lib/libnss3.so.12
40946000-4094e000 ---p 000ab000 07:00 24037                              /usr/lib/libnss3.so.12
4094e000-40952000 rw-p 000ab000 07:00 24037                              /usr/lib/libnss3.so.12
40952000-40961000 r-xp 00000000 07:00 24030                              /usr/lib/libnssutil3.so.12
40961000-40969000 ---p 0000f000 07:00 24030                              /usr/lib/libnssutil3.so.12
40969000-4096c000 rw-p 0000f000 07:00 24030                              /usr/lib/libnssutil3.so.12
4096c000-4096e000 r-xp 00000000 07:00 23687                              /usr/lib/libplc4.so.8
4096e000-40976000 ---p 00002000 07:00 23687                              /usr/lib/libplc4.so.8
40976000-40977000 rw-p 00002000 07:00 23687                              /usr/lib/libplc4.so.8
40977000-40978000 rw-p 00000000 00:00 0 
40978000-4097a000 r-xp 00000000 07:00 23686                              /usr/lib/libplds4.so.8
4097a000-40981000 ---p 00002000 07:00 23686                              /usr/lib/libplds4.so.8
40981000-40982000 rw-p 00001000 07:00 23686                              /usr/lib/libplds4.so.8
40982000-409a5000 r-xp 00000000 07:00 23685                              /usr/lib/libnspr4.so.8
409a5000-409ad000 ---p 00023000 07:00 23685                              /usr/lib/libnspr4.so.8
409ad000-409ae000 rw-p 00023000 07:00 23685                              /usr/lib/libnspr4.so.8
409ae000-409b0000 rw-p 00000000 00:00 0 
409b0000-409bf000 r-xp 00000000 07:00 7781                               /lib/libpthread-2.11.1.so
409bf000-409c7000 ---p 0000f000 07:00 7781                               /lib/libpthread-2.11.1.so
409c7000-409c8000 r--p 0000f000 07:00 7781                               /lib/libpthread-2.11.1.so
409c8000-409c9000 rw-p 00010000 07:00 7781                               /lib/libpthread-2.11.1.so
409c9000-409cb000 rw-p 00000000 00:00 0 
409cb000-409cd000 r-xp 00000000 07:00 7793                               /lib/libdl-2.11.1.so
409cd000-409d4000 ---p 00002000 07:00 7793                               /lib/libdl-2.11.1.so
409d4000-409d5000 r--p 00001000 07:00 7793                               /lib/libdl-2.11.1.so
409d5000-409d6000 rw-p 00002000 07:00 7793                               /lib/libdl-2.11.1.so
409d6000-40aa8000 r-xp 00000000 07:00 7799                               /lib/libc-2.11.1.so
40aa8000-40ab0000 ---p 000d2000 07:00 7799                               /lib/libc-2.11.1.so
40ab0000-40ab2000 r--p 000d2000 07:00 7799                               /lib/libc-2.11.1.so
40ab2000-40ab3000 rw-p 000d4000 07:00 7799                               /lib/libc-2.11.1.so
40ab3000-40ab6000 rw-p 00000000 00:00 0 
40ab6000-40ac5000 r-xp 00000000 07:00 7821                               /lib/libz.so.1.2.5
40ac5000-40acc000 ---p 0000f000 07:00 7821                               /lib/libz.so.1.2.5
40acc000-40acd000 rw-p 0000e000 07:00 7821                               /lib/libz.so.1.2.5
40acd000-40ace000 rw-p 00000000 00:00 0 
40ace000-40ad7000 r-xp 00000000 07:00 23607                              /usr/lib/gcc/armv7a-cros-linux-gnueabi/4.6.x-google/libgcc_s.so.1
40ad7000-40ade000 ---p 00009000 07:00 23607                              /usr/lib/gcc/armv7a-cros-linux-gnueabi/4.6.x-google/libgcc_s.so.1
40ade000-40adf000 rw-p 00008000 07:00 23607                              /usr/lib/gcc/armv7a-cros-linux-gnueabi/4.6.x-google/libgcc_s.so.1
40adf000-40be1000 rw-p 00000000 00:00 0 
40be1000-40c03000 r-xp 00000000 07:00 24032                              /usr/lib/libsoftokn3.so.12
40c03000-40c0b000 ---p 00022000 07:00 24032                              /usr/lib/libsoftokn3.so.12
40c0b000-40c0c000 rw-p 00022000 07:00 24032                              /usr/lib/libsoftokn3.so.12
40c16000-40c6a000 r-xp 00000000 07:00 23837                              /usr/lib/libsqlite3.so.0.8.6
40c6a000-40c71000 ---p 00054000 07:00 23837                              /usr/lib/libsqlite3.so.0.8.6
40c71000-40c73000 rw-p 00053000 07:00 23837                              /usr/lib/libsqlite3.so.0.8.6
40c74000-40cb9000 r-xp 00000000 07:00 24027                              /usr/lib/libfreebl3.so.12
40cb9000-40cc1000 ---p 00045000 07:00 24027                              /usr/lib/libfreebl3.so.12
40cc1000-40cc2000 rw-p 00045000 07:00 24027                              /usr/lib/libfreebl3.so.12
40cc2000-40cc6000 rw-p 00000000 00:00 0 
40ccb000-40ccc000 ---p 00000000 00:00 0 
40ccc000-414cb000 rw-p 00000000 00:00 0 
60000000-60166000 r-xp 00000000 07:00 34504                              /tmp/qemu-arm

Here's one from a while ago (Mar 5) where I actually tried to suspend / resume the build image.  ...then you can see what happens when it tries to continue after the Ctrl-C:
Modifying upstart scripts for test accessibility.
Enabling autologin using autox.
Adding mock Google Accounts server certs.
Generating a 1024 bit RSA private key
.++++++
...........................++++++
writing
 new private key to '/tmp/mock_server.key.ikCaV'
-----
^Z
[1]+  Stopped                 ./build_image --board=${BOARD} --noenable_rootfs_verification test --statefulfs_size=2048
(cr) ((f107641...)) dianders@peppermint ~/trunk/src/scripts $ fg
./build_image --board=${BOARD} --noenable_rootfs_verification test --statefulfs_size=2048
^CCreating external_extensions.json symlink
Configuring to enable root access to dbus-monitor
Setting /home to be mounted exec

-Doug

Ami Fischman

unread,
May 4, 2012, 12:01:08 PM5/4/12
to Doug Anderson, chromium-os-dev
I have no idea about the crashes.  The hangs might be due to looking for more entropy for /dev/random (random(4)).  Playing with the mouse or typing into another terminal should unstick key generation if that's the issue.

-a


-Doug

--
Chromium OS Developers mailing list: chromiu...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-os-dev?hl=en

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages