Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4813282

java 1.4.1 dumps core in _smalloc when trying to access nfsv2 mounted directory

    Details

    • Subcomponent:
    • Resolved In Build:
      b17
    • CPU:
      generic
    • OS:
      solaris_7, solaris_9

      Backports

        Description


        Java 1.4.1 dumps core in _smalloc (SEGV) when trying to access nfsv2 mounted
        directory via -Djava.endorsed.dirs=<nfsv2_mounted_dir>.

        Problem is easily reproducible running through the following steps:

        1. Setup
        --------

        Mount a directory, that is non-empty and has some non-trivial contents:

        Mountpoint was chosen /mnt
        % ls -al /mnt
        total 4
        drwxrwxr-x 2 root sys 512 Oct 12 1999 .
        drwxr-xr-x 35 root root 1024 Nov 22 12:38 ..
        %

        Mount filesystem nfsv2
        % su
        Password:
        # mount -o vers=2,ro lab153:/export/dist /mnt
        #
        # ls -al /mnt
        total 194
        drwxr-xr-x 12 root other 512 May 29 2001 .
        drwxr-xr-x 35 root root 1024 Nov 22 12:38 ..
        -rwxr-xr-x 1 root other 9785 May 29 2001 fbinfo
        -rwxr-xr-x 1 root other 169 Jul 12 2001 getfbinfo
        drwxr-xr-x 6 softdist softdist 512 Feb 15 1999 gzip,v1.1.1
        drwxr-xr-x 5 softdist softdist 512 Aug 7 1998 iftp,v1.1
        drwxr-xr-x 9 pmaier sun 512 Dec 23 1998 netscape,v4.5
        drwxr-xr-x 8 softdist softdist 512 Jul 14 1998 perl,v5.003
        drwxr-xr-x 2 root other 512 Jul 24 1998 pkzip
        drwxr-xr-x 4 root other 512 Dec 24 1999 sunscan2.4a
        -rwxr-xr-x 1 root other 69200 Apr 19 1999 whatami
        drwxr-xr-x 5 softdist softdist 512 Apr 19 1999 whatamitool,v2.4
        #

        % du -k /mnt
        [...]
        47450 /mnt
        %



        2. Run 1.4.1_01
        ---------------

        % /j2sdk1.4.1_01/bin/java -version
        java version "1.4.1_01"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
        Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)
        % /j2sdk1.4.1_01/bin/java -Djava.endorsed.dirs=/mnt -version

        Segmentation Fault (core dumped)
        %
        % ls -al core
        -rw------- 1 tl15687 sun 644836 Feb 5 15:06 core
        %



        3. Stacktrace
        -------------

        % dbx -V /j2sdk1.4.1_01/bin/java ./core
        Sun WorkShop 6 update 2 Dbx Debugger 6.2 2001/05/16
        Reading java
        core file header read successfully
        Reading ld.so.1
        Reading libthread.so.1
        Reading libdl.so.1
        Reading libc.so.1
        Reading libc_psr.so.1
        Reading libjvm.so
        Reading libCrun.so.1
        Reading libsocket.so.1
        Reading libnsl.so.1
        Reading libm.so.1
        Reading libw.so.1
        Reading libmp.so.2
        Reading libhpi.so
        detected a multithreaded program
        t@1 (l@1) terminated by signal SEGV (no mapping at the fault address)
        0xfe33bb00: dll_address_is_in_vm+0x0038: ld [%o1 + 0x4], %g4
        (/opt/SUNWspro/bin/../WS6U2/bin/sparcv9/dbx) where
        current thread: t@1
        =>[1] os::dll_address_is_in_vm(0xff2c54c8, 0xffbed62c, 0xffbed628, 0x1c895c, 0x0, 0x0), at 0xfe33bb00
          [2] os::report_fatal_error(0xffffffff, 0x1, 0xfe3ecc36, 0xff38c524, 0xfe4394f0, 0xff3953f0), at 0xfe339978
          [3] os::handle_unexpected_exception(0x0, 0xa, 0xff2c54c8, 0xffbee4f0, 0xfe33d684, 0x0), at 0xfe33a178
          [4] JVM_handle_solaris_signal(0xff2c54c8, 0xffbee4f0, 0xffbee238, 0x4000, 0x4314, 0x0), at 0xfe33ded0
          [5] __sighndlr(0xa, 0xffbee4f0, 0xffbee238, 0xfe33c7f8, 0x28794, 0x28774), at 0xff37b920
          [6] sigacthandler(0xa, 0xffbee4f0, 0xffbee238, 0xff38c524, 0x28, 0x287a4), at 0xff37830c
          ---- called from signal handler with signal 10 (SIGBUS) ------
          [7] _smalloc(0x10, 0xff338eb0, 0x4, 0x0, 0x0, 0xff332584), at 0xff2c54c8
          [8] malloc(0x10, 0x1, 0x0, 0x0, 0xff38dee8, 0x0), at 0xff2c5504
          [9] operator new(0x10, 0x3, 0x13950, 0xff206200, 0xff219b2c, 0x29638), at 0xff206200
          [10] chunkpool_init(0x1, 0x80000, 0xffffffff, 0xfffffff8, 0x0, 0x2c7e9), at 0xfe051874
          [11] vm_init_globals(0x46c8, 0xfe401bbe, 0x0, 0x1, 0x0, 0xe), at 0xfe050b38
          [12] Threads::create_vm(0xffbee9ec, 0xfe4375e0, 0xfe438e18, 0x0, 0x4d414e, 0x0), at 0xfe04a824
          [13] JNI_CreateJavaVM(0xffbef214, 0xffbef210, 0xffbee9ec, 0xffbef208, 0x1, 0xffbee9fd), at 0xfe04a354
          [14] main(0x3, 0x0, 0x2dc, 0x27c, 0x0, 0x280), at 0x117a8
        (/opt/SUNWspro/bin/../WS6U2/bin/sparcv9/dbx)



        4. Compare w/ java 1.4.0_02
        ---------------------------

        % /j2sdk1.4.0_02/bin/java -Djava.endorsed.dirs=/mnt -version
        java version "1.4.0_02"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_02-b02)
        Java HotSpot(TM) Client VM (build 1.4.0_02-b02, mixed mode)
        %


          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  sbohne Steve Bohne (Inactive)
                  Reporter:
                  thlenz Thomas Lenz (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: