无法在Ubuntu中正确安装gradle

时间:2019-05-09 02:15:54

标签: java ubuntu gradle

已安装Gradle。此后引发分段错误

分段错误(核心已转储)

我安装了gradle,但是当我运行gradle时,它抛出了分段错误

    $:/opt/gradle/bin$ ldd /usr/bin/java
linux-vdso.so.1 =>  (0x00007fffe13a2000)
libjli.so => not found
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f37e76e0000)
/lib64/ld-linux-x86-64.so.2 (0x00007f37e7aaa000)

/opt/gradle/bin$ java -version
openjdk version "9-internal"
OpenJDK Runtime Environment (build 9-internal+0-2016-04-14-195246.buildd.src)
OpenJDK 64-Bit Server VM (build 9-internal+0-2016-04-14-195246.buildd.src, mixed mode)

当我运行valgrund -g gradle时,出现此错误 Valgrind是用于构建动态分析工具的仪器框架。有Valgrind工具可以自动检测许多内存管理和线程错误,并详细描述程序。您也可以使用Valgrind来构建新工具。

Valgrind发行版当前包括六个生产质量工具:一个内存错误检测器,两个线程错误检测器,一个缓存和分支预测探查器,一个生成调用图的缓存和分支预测探查器以及一个堆探查器。它还包括三个实验工具:堆栈/全局数组溢出检测器,第二个堆分析器(用于检查堆块的使用方式)以及SimPoint基本块向量生成器。它运行在以下平台上:X86 / Linux,AMD64 / Linux,ARM / Linux,ARM64 / Linux,PPC32 / Linux,PPC64 / Linux,PPC64LE / Linux,S390X / Linux,MIPS32 / Linux,MIPS64 / Linux,X86 / Solaris ,AMD64 / Solaris,ARM / Android(2.3.x和更高版本),ARM64 / Android,X86 / Android(4.0和更高版本),MIPS32 / Android,X86 / Darwin和AMD64 / Darwin(Mac OS X 10.12)。

valgrind -v gradle
==10569== Memcheck, a memory error detector
==10569== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==10569== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==10569== Command: /opt/gradle/bin/gradle
==10569== 
--10569-- Valgrind options:
--10569--    -v
--10569-- Contents of /proc/version:
--10569--   Linux version 4.13.0-36-generic (buildd@lgw01-amd64-033) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9)) #40~16.04.1-Ubuntu SMP Fri Feb 16 23:25:58 UTC 2018
--10569-- 
--10569-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-lzcnt-rdtscp-sse3
--10569-- Page sizes: currently 4096, max supported 4096
--10569-- Valgrind library directory: /usr/lib/valgrind
--10569-- Reading syms from /usr/bin/env
--10569--    object doesn't have a symbol table
--10569-- Reading syms from /lib/x86_64-linux-gnu/ld-2.23.so
--10569--   Considering /lib/x86_64-linux-gnu/ld-2.23.so ..
--10569--   .. CRC mismatch (computed 10d8ea02 wanted 4fdda1aa)
--10569--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.23.so ..
--10569--   .. CRC is valid
--10569-- Reading syms from /usr/lib/valgrind/memcheck-amd64-linux
--10569--   Considering /usr/lib/valgrind/memcheck-amd64-linux ..
--10569--   .. CRC mismatch (computed eea41ea9 wanted 2009db78)
--10569--    object doesn't have a symbol table
--10569--    object doesn't have a dynamic symbol table
--10569-- Scheduler: using generic scheduler lock implementation.
--10569-- Reading suppressions file: /usr/lib/valgrind/default.supp
==10569== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-10569-by-temporary-on-???
==10569== embedded gdbserver: writing to   /tmp/vgdb-pipe-to-vgdb-from-10569-by-temporary-on-???
==10569== embedded gdbserver: shared mem   /tmp/vgdb-pipe-shared-mem-vgdb-10569-by-temporary-on-???
==10569== 
==10569== TO CONTROL THIS PROCESS USING vgdb (which you probably
==10569== don't want to do, unless you know exactly what you're doing,
==10569== or are doing some strange experiment):
==10569==   /usr/lib/valgrind/../../bin/vgdb --pid=10569 ...command...
==10569== 
==10569== TO DEBUG THIS PROCESS USING GDB: start GDB like this
==10569==   /path/to/gdb /opt/gradle/bin/gradle
==10569== and then give GDB the following command
==10569==   target remote | /usr/lib/valgrind/../../bin/vgdb --pid=10569
==10569== --pid is optional if only one valgrind process is running
==10569== 
--10569-- REDIR: 0x401cf10 (ld-linux-x86-64.so.2:strlen) redirected to 0x3809e181 (???)
--10569-- Reading syms from /usr/lib/valgrind/vgpreload_core-amd64-linux.so
--10569--   Considering /usr/lib/valgrind/vgpreload_core-amd64-linux.so ..
--10569--   .. CRC mismatch (computed 2567ccf6 wanted 49420590)
--10569--    object doesn't have a symbol table
--10569-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so
--10569--   Considering /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so ..
--10569--   .. CRC mismatch (computed 0e27c9a8 wanted ac585421)
--10569--    object doesn't have a symbol table
==10569== WARNING: new redirection conflicts with existing -- ignoring it
--10569--     old: 0x0401cf10 (strlen              ) R-> (0000.0) 0x3809e181 ???
--10569--     new: 0x0401cf10 (strlen              ) R-> (2007.0) 0x04c31020 strlen
--10569-- REDIR: 0x401b860 (ld-linux-x86-64.so.2:index) redirected to 0x4c30bc0 (index)
--10569-- REDIR: 0x401ba80 (ld-linux-x86-64.so.2:strcmp) redirected to 0x4c320d0 (strcmp)
--10569-- REDIR: 0x401dc70 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4c35270 (mempcpy)
--10569-- Reading syms from /lib/x86_64-linux-gnu/libc-2.23.so
--10569--   Considering /lib/x86_64-linux-gnu/libc-2.23.so ..
--10569--   .. CRC mismatch (computed 10016417 wanted 1f868c97)
--10569--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.23.so ..
--10569--   .. CRC is valid
--10569-- REDIR: 0x4ec9a00 (libc.so.6:strcasecmp) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--10569-- REDIR: 0x4ec5280 (libc.so.6:strcspn) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--10569-- REDIR: 0x4ecbcf0 (libc.so.6:strncasecmp) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--10569-- REDIR: 0x4ec76f0 (libc.so.6:strpbrk) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--10569-- REDIR: 0x4ec7a80 (libc.so.6:strspn) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--10569-- REDIR: 0x4ec914b (libc.so.6:memcpy@GLIBC_2.2.5) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--10569-- REDIR: 0x4ec7400 (libc.so.6:rindex) redirected to 0x4c308a0 (rindex)
--10569-- REDIR: 0x4ec3d10 (libc.so.6:__GI_strcmp) redirected to 0x4c31fe0 (__GI_strcmp)
--10569-- REDIR: 0x4ec5720 (libc.so.6:strlen) redirected to 0x4c30f60 (strlen)
--10569-- REDIR: 0x4ec5b70 (libc.so.6:__GI_strncmp) redirected to 0x4c31710 (__GI_strncmp)
--10569-- REDIR: 0x4ec3ab0 (libc.so.6:__GI_strchr) redirected to 0x4c30a00 (__GI_strchr)
--10569-- REDIR: 0x4ec8860 (libc.so.6:memchr) redirected to 0x4c32170 (memchr)
--10569-- REDIR: 0x4ebe130 (libc.so.6:malloc) redirected to 0x4c2db20 (malloc)
--10569-- REDIR: 0x4ece470 (libc.so.6:__GI_memcpy) redirected to 0x4c32b00 (__GI_memcpy)
--10569-- REDIR: 0x4ebe4f0 (libc.so.6:free) redirected to 0x4c2ed80 (free)
--10569-- REDIR: 0x4ec3a80 (libc.so.6:index) redirected to 0x4a286f0 (_vgnU_ifunc_wrapper)
--10569-- REDIR: 0x4ed0760 (libc.so.6:strchrnul) redirected to 0x4c34da0 (strchrnul)
Segmentation fault (core dumped)

0 个答案:

没有答案