Skip to main content
deleted 6 characters in body
Source Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 264

I'm running a wheezy:armhf chroot using qemu user emulation on my jessie:x86_64 system. Somehow, a git clone on a particular private repository will hang inside the chroot, while succeed natively. This might be a bug, who knows? To improve my karma, I wannawant to find out whatswhat's going on!

As far as I read the gcc-documentation, setting DEB_CFLAGS_APPEND and DEB_CXXFLAGS_APPEND additionally with -fno-stack-protector is not needed, but anyhow, wannawant to be sure ,-)

Debugging inside the qemu throws an unsupported syscal 26 error...

Thanks for any suggestions, pointers, hints, tips, comments and what-not...

My best guess in the moment is based on the fact that git does a clone (I can see two processes/threads), but the QEMU_GDB environment variable is unset by qemu after using... Hence only the initial process is going to gdb. See here for example.

But still: I should be able to properly debug the parent process? I can easily cross-debug a hello-world MWE...

I'm running a wheezy:armhf chroot using qemu user emulation on my jessie:x86_64 system. Somehow, a git clone on a particular private repository will hang inside the chroot, while succeed natively. This might be a bug, who knows? To improve my karma, I wanna find out whats going on!

As far as I read the gcc-documentation, setting DEB_CFLAGS_APPEND and DEB_CXXFLAGS_APPEND additionally with -fno-stack-protector is not needed, but anyhow, wanna be sure ,-)

Debugging inside the qemu throws an unsupported syscal 26 error...

Thanks for any suggestions, pointers, hints, tips, comments and what-not...

My best guess in the moment is based on the fact that git does a clone (I can see two processes/threads), but the QEMU_GDB environment variable is unset by qemu after using... Hence only the initial process is going to gdb. See here for example.

But still: I should be able to properly debug the parent process? I can easily cross-debug a hello-world MWE...

I'm running a wheezy:armhf chroot using qemu user emulation on my jessie:x86_64 system. Somehow, a git clone on a particular private repository will hang inside the chroot, while succeed natively. This might be a bug, who knows? To improve my karma, I want to find out what's going on!

As far as I read the gcc-documentation, setting DEB_CFLAGS_APPEND and DEB_CXXFLAGS_APPEND additionally with -fno-stack-protector is not needed, but anyhow, want to be sure)

Debugging inside the qemu throws an unsupported syscal 26 error.

Thanks for any suggestions, pointers, hints, tips, comments and what-not.

My best guess in the moment is based on the fact that git does a clone (I can see two processes/threads), but the QEMU_GDB environment variable is unset by qemu after using. Hence only the initial process is going to gdb. See here for example.

But still: I should be able to properly debug the parent process? I can easily cross-debug a hello-world MWE.

added 63 characters in body
Source Link

As a side-note: the hang I'm experiencing is occurring with git-2.0 inside jessie:armel chroot as well... The hang does not occur inside a full-system-emulation. So I went on digging in the wheezy:armhf rabbithole, just because I had to choose one... I cannot test on a native machine...

As a side-note: the hang I'm experiencing is occurring with git-2.0 inside jessie:armel as well... So I went on digging in the wheezy:armhf rabbithole, just because I had to choose one... I cannot test on a native machine...

As a side-note: the hang I'm experiencing is occurring with git-2.0 inside jessie:armel chroot as well... The hang does not occur inside a full-system-emulation. So I went on digging in the wheezy:armhf rabbithole, just because I had to choose one... I cannot test on a native machine...

edited title
Link

Backtrace of program"git clone" running inside qemu-user-emulation based chrootarm-chroot

added 123 characters in body
Source Link
Loading
added 497 characters in body
Source Link
Loading
edited title
Link
Loading
edited title
Link
Braiam
  • 36.9k
  • 29
  • 114
  • 176
Loading
Source Link
Loading