Source: lxc
Severity: minor
Tags: upstream

I'm using lxc 0.9.0~alpha3 on wheezy on 3.10-0.bpo.3-amd64
because unfortunately with stable packages/kernel
is almost unusable.
I've some containers, some even adapted from old distribution,
I have one with ubuntu precise and lxc-attach (without command)
is unable to detect user shell inside the container

it says:

lxc-attach: Bad file descriptor - failed to get passwd entry for uid '0'

(I've attached the strace log)

if I pass the command (i.e. /bin/bash) the command works correctly

I've also tried ltrace but it does not give me useful infos

gdb session:

warning: .dynamic section for "/lib/x86_64-linux-gnu/libnss_compat.so.2" is not 
at the expected address (wrong lib
rary or version mismatch?)
warning: .dynamic section for "/lib/x86_64-linux-gnu/libnsl.so.1" is not at the 
expected address (wrong library or
 version mismatch?)


looks like the host binary calls libc helpers of the container

there is a way to preload host's libc stuff?

Regards


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Attachment: trace.log.gz
Description: application/gzip

Reply via email to