Uploaded image for project: 'CUBRID APIs'
  1. CUBRID APIs
  2. APIS-448

Make test crashes at t/40lobs_file.t line 46

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Component/s: Perl Driver
    • Labels:
      None
    • Environment:

      Ubuntu 12.04.2 Desktop x86
      CUBRID 9.0.0.0478 with Perl driver 9.0.0.0001
      CUBRID 8.4.3.1005 with Perl driver 8.4.3.0001
      Perl 5.14.2

      Description

      1. Download DBD::cubrid source for 9.0.0.0001 version from http://www.cubrid.org/?mid=downloads&item=perl_driver&os=detect&cubrid=9.0.0
      2. Extract.
      3. cd RB-9.0.0
      4. perl Makefile.PL
      5. make
      6. make test

      The last make test command will crash with the following error.

      {code}
      The crashed program seems to use third-party or local libraries:

      /usr/local/lib/perl/5.14.2/auto/DBI/DBI.so
      /home/user/Downloads/RB-9.0.0/blib/arch/auto/DBD/cubrid/cubrid.so
      /opt/cubrid/lib/libcascci.so.9.0.0

      It is highly recommended to check if the problem persists without those first.

      Do you want to continue the report process anyway?{code}

      See the attached screenshot.

      {code}
      user@ubuntu:~/Downloads/RB-9.0.0$ make test
      PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
      t/01base.t .................. ok
      t/10connect.t ............... ok
      t/20createdrop.t ............ ok
      t/25simplefetch.t ........... ok
      t/30insertfetch.t ........... ok
      t/31insertid.t .............. ok
      t/32insert_error.t .......... ok
      t/32ping.t .................. ok
      t/35limit.t ................. ok
      t/35prepare.t ............... ok
      t/40bindparam.t ............. ok
      t/40columninfo.t ............ ok
      t/40keyinfo.t ............... ok
      t/40listfields.t ............ ok
      t/40lobs.t .................. ok
      t/40lobs_file.t ............. 1/14
      # Failed test at t/40lobs_file.t line 36.

      # Failed test 'export lob object'
      # at t/40lobs_file.t line 46.
      *** glibc detected *** /usr/bin/perl: double free or corruption (out): 0x09da8300 ***
      ======= Backtrace: =========
      /lib/i386-linux-gnu/libc.so.6(+0x75ee2)[0x400f7ee2]
      /opt/cubrid/lib/libcascci.so.9(cci_blob_free+0x38)[0x4049a178]
      /home/user/Downloads/RB-9.0.0/blib/arch/auto/DBD/cubrid/cubrid.so(+0x89fd)[0x404879fd]
      ======= Memory map: ========
      08048000-081ab000 r-xp 00000000 08:02 229500 /usr/bin/perl
      081ab000-081ac000 r--p 00162000 08:02 229500 /usr/bin/perl
      081ac000-081ae000 rw-p 00163000 08:02 229500 /usr/bin/perl
      09b5c000-09dd0000 rw-p 00000000 00:00 0 [heap]
      40000000-40020000 r-xp 00000000 08:02 65698 /lib/i386-linux-gnu/ld-2.15.so
      40020000-40021000 r--p 0001f000 08:02 65698 /lib/i386-linux-gnu/ld-2.15.so
      40021000-40022000 rw-p 00020000 08:02 65698 /lib/i386-linux-gnu/ld-2.15.so
      40022000-40023000 r-xp 00000000 00:00 0 [vdso]
      40023000-40025000 rw-p 00000000 00:00 0
      40025000-4002a000 r-xp 00000000 08:02 238522 /usr/lib/perl/5.14.2/auto/List/Util/Util.so
      4002a000-4002b000 r--p 00004000 08:02 238522 /usr/lib/perl/5.14.2/auto/List/Util/Util.so
      4002b000-4002c000 rw-p 00005000 08:02 238522 /usr/lib/perl/5.14.2/auto/List/Util/Util.so
      4002c000-4002d000 rw-p 00000000 00:00 0
      40035000-40038000 r-xp 00000000 08:02 65715 /lib/i386-linux-gnu/libdl-2.15.so
      40038000-40039000 r--p 00002000 08:02 65715 /lib/i386-linux-gnu/libdl-2.15.so
      40039000-4003a000 rw-p 00003000 08:02 65715 /lib/i386-linux-gnu/libdl-2.15.so
      4003a000-40064000 r-xp 00000000 08:02 65696 /lib/i386-linux-gnu/libm-2.15.so
      40064000-40065000 r--p 00029000 08:02 65696 /lib/i386-linux-gnu/libm-2.15.so
      40065000-40066000 rw-p 0002a000 08:02 65696 /lib/i386-linux-gnu/libm-2.15.so
      40066000-40067000 rw-p 00000000 00:00 0
      40067000-4007e000 r-xp 00000000 08:02 65694 /lib/i386-linux-gnu/libpthread-2.15.so
      4007e000-4007f000 r--p 00016000 08:02 65694 /lib/i386-linux-gnu/libpthread-2.15.so
      4007f000-40080000 rw-p 00017000 08:02 65694 /lib/i386-linux-gnu/libpthread-2.15.so
      40080000-40082000 rw-p 00000000 00:00 0
      40082000-40225000 r-xp 00000000 08:02 65511 /lib/i386-linux-gnu/libc-2.15.so
      40225000-40226000 ---p 001a3000 08:02 65511 /lib/i386-linux-gnu/libc-2.15.so
      40226000-40228000 r--p 001a3000 08:02 65511 /lib/i386-linux-gnu/libc-2.15.so
      40228000-40229000 rw-p 001a5000 08:02 65511 /lib/i386-linux-gnu/libc-2.15.so
      40229000-4022c000 rw-p 00000000 00:00 0
      4022c000-40234000 r-xp 00000000 08:02 65684 /lib/i386-linux-gnu/libcrypt-2.15.so
      40234000-40235000 r--p 00007000 08:02 65684 /lib/i386-linux-gnu/libcrypt-2.15.so
      40235000-40236000 rw-p 00008000 08:02 65684 /lib/i386-linux-gnu/libcrypt-2.15.so
      40236000-4025e000 rw-p 00000000 00:00 0
      4025e000-4045e000 r--p 00000000 08:02 232674 /usr/lib/locale/locale-archive
      4045e000-4047d000 r-xp 00000000 08:02 777999 /usr/local/lib/perl/5.14.2/auto/DBI/DBI.so
      4047d000-4047e000 r--p 0001e000 08:02 777999 /usr/local/lib/perl/5.14.2/auto/DBI/DBI.so
      4047e000-4047f000 rw-p 0001f000 08:02 777999 /usr/local/lib/perl/5.14.2/auto/DBI/DBI.so
      4047f000-4048d000 r-xp 00000000 08:02 1301650 /home/user/Downloads/RB-9.0.0/blib/arch/auto/DBD/cubrid/cubrid.so
      4048d000-4048e000 r--p 0000d000 08:02 1301650 /home/user/Downloads/RB-9.0.0/blib/arch/auto/DBD/cubrid/cubrid.so
      4048e000-4048f000 rw-p 0000e000 08:02 1301650 /home/user/Downloads/RB-9.0.0/blib/arch/auto/DBD/cubrid/cubrid.so
      4048f000-404ba000 r-xp 00000000 08:02 2469470 /opt/cubrid/lib/libcascci.so.9.0.0
      404ba000-404bb000 rw-p 0002b000 08:02 2469470 /opt/cubrid/lib/libcascci.so.9.0.0
      404bb000-404c0000 rw-p 00000000 00:00 0
      404d0000-404f0000 r-xp 00000000 08:02 65473 /lib/i386-linux-gnu/libncurses.so.5.9
      404f0000-404f1000 r--p 0001f000 08:02 65473 /lib/i386-linux-gnu/libncurses.so.5.9
      404f1000-404f2000 rw-p 00020000 08:02 65473 /lib/i386-linux-gnu/libncurses.so.5.9
      404f2000-405ca000 r-xp 00000000 08:02 232097 /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
      405ca000-405cb000 ---p 000d8000 08:02 232097 /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
      405cb000-405cf000 r--p 000d8000 08:02 232097 /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
      405cf000-405d0000 rw-p 000dc000 08:02 232097 /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
      405d0000-405d7000 rw-p 00000000 00:00 0
      405d7000-405f3000 r-xp 00000000 08:02 65452 /lib/i386-linux-gnu/libgcc_s.so.1
      405f3000-405f4000 r--p 0001b000 08:02 65452 /lib/i386-linux-gnu/libgcc_s.so.1
      405f4000-405f5000 rw-p 0001c000 08:02 65452 /lib/i386-linux-gnu/libgcc_s.so.1
      405f5000-40611000 r-xp 00000000 08:02 65477 /lib/i386-linux-gnu/libtinfo.so.5.9
      40611000-40613000 r--p 0001b000 08:02 65477 /lib/i386-linux-gnu/libtinfo.so.5.9
      40613000-40614000 rw-p 0001d000 08:02 65477 /lib/i386-linux-gnu/libtinfo.so.5.9
      40614000-4061f000 r-xp 00000000 08:02 65688 /lib/i386-linux-gnu/libnss_files-2.15.so
      4061f000-40620000 r--p 0000a000 08:02 65688 /lib/i386-linux-gnu/libnss_files-2.15.so
      40620000-40621000 rw-p 0000b000 08:02 65688 /lib/i386-linux-gnu/libnss_files-2.15.so
      bfbd8000-bfbf9000 rw-p 00000000 00:00 0 [stack]
      t/40lobs_file.t ............. Failed 6/14 subtests
      t/40nulls.t ................. ok
      t/40nulls_prepare.t ......... ok
      t/40numrows.t ............... ok
      t/40server_prepare_error.t .. ok
      t/40serverprepare.t ......... ok
      t/40tableinfo.t ............. ok
      t/50commit.t ................ ok

      Test Summary Report
      -------------------
      t/40lobs_file.t (Wstat: 134 Tests: 10 Failed: 2)
      Failed tests: 4, 10
      Non-zero wait status: 134
      Parse errors: Bad plan. You planned 14 tests but ran 10.
      Files=23, Tests=474, 3 wallclock secs ( 0.11 usr 0.04 sys + 0.90 cusr 0.14 csys = 1.19 CPU)
      Result: FAIL
      Failed 1/23 test programs. 2/474 subtests failed.
      make: *** [test_dynamic] Error 255{code}

        Activity

        Hide
        jinhu 李金虎 added a comment -

        This issue has been fixed in http://jira.cubrid.org/browse/APIS-442
        Fixed in 8.4.1, 8.4.3, 8.4.4, 9.1.0.

        Because the 9.0.0 is a tempary banch which will not release any more, so don't fix it in 9.0.0.

        Show
        jinhu 李金虎 added a comment - This issue has been fixed in http://jira.cubrid.org/browse/APIS-442 Fixed in 8.4.1, 8.4.3, 8.4.4, 9.1.0. Because the 9.0.0 is a tempary banch which will not release any more, so don't fix it in 9.0.0.
        Hide
        jinhu 李金虎 added a comment -

        Resolved

        Show
        jinhu 李金虎 added a comment - Resolved
        Hide
        cn14130 欧明宝[Bom Owen] added a comment -

        Test Build: 9.1.0.0206
        Test OS: Linux 64
        perl driver: 9.1.0.001
        Test Result: pass
        RB-8.4.1, RB-8.4.3 will be validated by daily qa test

        Show
        cn14130 欧明宝[Bom Owen] added a comment - Test Build: 9.1.0.0206 Test OS: Linux 64 perl driver: 9.1.0.001 Test Result: pass RB-8.4.1, RB-8.4.3 will be validated by daily qa test

          People

          • Assignee:
            jinhu 李金虎
            Reporter:
            kadishmal Esen Sagynov
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: