Subject: kern/33733: can't run ORBit in linux emulation mode, so firefox doesn't starts
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <jani@xeebioneurope.de>
List: netbsd-bugs
Date: 06/14/2006 18:40:01
>Number:         33733
>Category:       kern
>Synopsis:       can't run ORBit in linux emulation mode, so firefox doesn't starts
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 14 18:40:00 +0000 2006
>Originator:     Mátyás János
>Release:        3.0.0_STABLE
>Organization:
>Environment:
>Description:
A have a partition with Debian Linux on ext2fs mounted at /mnt/linux, and /emul/linux is a symlink to it.

If I try to run
/emul/linux/usr/bin/orbit-name-server
the CPU load goes up to 100% and nothing happens.

I ran it with ktrace (stopped with CTRL-C) and found this in kdump's output:

   830 orbit-name-serve GIO   fd 4 read 358 bytes
       "# /etc/orbitrc
        #
        # By default, programs using ORBit only use Unix sockets for security \
        reasons.
        # This means that these programs are not reachable from remote hosts v\
        ia CORBA.
        # If you uncomment the following lines, ORBit will also listen on IPv4\
         and/or
        # IPv6 sockets. This enabled CORBA network transparency.
        #
        ORBIIOPUSock=1
        #ORBIIOPIPv4=1
        #ORBIIOPIPv6=1
       "

...


   830 orbit-name-serve CALL  mkdir(0x804e860,0x1c0)
   830 orbit-name-serve NAMI  "/emul/linux/tmp"
   830 orbit-name-serve NAMI  "/emul/linux/tmp/orbit-root"
   830 orbit-name-serve RET   mkdir -1 errno -17 File exists
   830 orbit-name-serve CALL  stat64(0x804e860,0xbfbfe49c)
   830 orbit-name-serve NAMI  "/emul/linux/tmp/orbit-root"
   830 orbit-name-serve NAMI  "/emul/linux"
   830 orbit-name-serve NAMI  "/emul/linux/tmp/orbit-root"
   830 orbit-name-serve RET   stat64 0
   830 orbit-name-serve CALL  getuid
   830 orbit-name-serve RET   getuid 0
   830 orbit-name-serve CALL  utime(0x804e860,0xbfbfe568)
   830 orbit-name-serve NAMI  "/emul/linux/tmp/orbit-root"
   830 orbit-name-serve NAMI  "/emul/linux"
   830 orbit-name-serve NAMI  "/emul/linux/tmp/orbit-root"
   830 orbit-name-serve RET   utime 0
   830 orbit-name-serve CALL  time(0)
   830 orbit-name-serve RET   time 1150309093/0x449052e5
   830 orbit-name-serve CALL  socketcall(1,0xbfbfe590)
   830 orbit-name-serve RET   socketcall 4
   830 orbit-name-serve CALL  socketcall(2,0xbfbfe590)
   830 orbit-name-serve NAMI  "/tmp/orbit-root/orb-797889977928570451"
   830 orbit-name-serve RET   socketcall -1 errno -2 No such file or directory
   830 orbit-name-serve CALL  close(4)
   830 orbit-name-serve RET   close 0
   830 orbit-name-serve CALL  close(0xffffffff)
   830 orbit-name-serve RET   close -1 errno -9 Bad file descriptor
   830 orbit-name-serve CALL  socketcall(1,0xbfbfe590)
   830 orbit-name-serve RET   socketcall 4
   830 orbit-name-serve CALL  socketcall(2,0xbfbfe590)
   830 orbit-name-serve NAMI  "/tmp/orbit-root/orb-13789220241424142256"
   830 orbit-name-serve RET   socketcall -1 errno -2 No such file or directory
   830 orbit-name-serve CALL  close(4)
   830 orbit-name-serve RET   close 0
   830 orbit-name-serve CALL  close(0xffffffff)
   830 orbit-name-serve RET   close -1 errno -9 Bad file descriptor
   830 orbit-name-serve CALL  socketcall(1,0xbfbfe590)
   830 orbit-name-serve RET   socketcall 4
   830 orbit-name-serve CALL  socketcall(2,0xbfbfe590)
   830 orbit-name-serve NAMI  "/tmp/orbit-root/orb-168231481873091772"
   830 orbit-name-serve RET   socketcall -1 errno -2 No such file or directory
   830 orbit-name-serve CALL  close(4)
   830 orbit-name-serve RET   close 0
   830 orbit-name-serve CALL  close(0xffffffff)
   830 orbit-name-serve RET   close -1 errno -9 Bad file descriptor

These messages repeats forever, only the file name is different in each message.

   830 orbit-name-serve NAMI  "/tmp/orbit-root/orb-797889977928570451"

Maybe the problem related to emulated UDP socket handling.

Originally I wanted to run the linux firefox (I need the flash and java plugins, and these doesn't work in native NetBSD firefox). Firefox depends on ORBit library, and seems that it doesn't work ORBit can't start. I also tried to install the firefox-bin package, but that also not works.
>How-To-Repeat:
See my full description.
>Fix: