NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD emulation : application stack trace




On 2023/04/08 11:53, Mayuresh wrote:
On Sat, Apr 08, 2023 at 10:00:49AM +0900, Rin Okuyama wrote:
SUSE binaries provided by pkgsrc are REALLY old.

It's SuSE 15.5 I suppose, not that old. Which binaries are you referring
to?

Oops, I missed it. Thanks wiz@ for updating!

On 2023/04/08 11:52, Mayuresh wrote:> On Sat, Apr 08, 2023 at 10:00:49AM +0900, Rin Okuyama wrote:
What happens if
(1) install a recent version of Linux to Ext2 or Ext3 partition,
(2) mount_ext2fs(8) that partition onto /emul/linux,
(3) install your application there.

Originally I was attempting that. I installed Void Linux on a qemu disk
and null mounted that disk under /emul/linux. But things weren't working.
I turned back to SuSE then.

Are there specific steps involved with say /dev/, /proc (and what else?).

mount_proc(8) to /emul/Linux/proc is enough for my purposes.
ktrace(1) is useful to diagnose which files are required.

If userland binaries are up-to-date, there may be problems for
kernel side. For this case, ktrace(1) is also useful as Robert
said; you can find which syscall returns error codes, or process
is stuck at, and so on.

Note that GDB (both for NetBSD and Linux) does not work for
Linux binaries at the moment.

Thanks,
rin


Home | Main Index | Thread Index | Old Index