关于代码检测工具Fortify解析Java文件失败,("Unexpected exception while resolving file xxx.java")该如何解决? 10C

公司提交代码给第三方检测机构进行代码检测,用的Fortify检测工具,然后就报了一堆的文件解析错误,代码编译什么的是正常的(用的是idea开发,jdk1.8)。
图片说明

以前没接触过这种代码测试,不清楚为什么会报这种问题,该怎么解决.

2个回答

这个要联系Fortify技术支持

看看检测工具有没有生成日志文件

qq_28204129
qq_28204129 没有更详细的日志了,这些就是获取到的内容,据说用lombok会导致这个问题,但是我并没有找到lombok的包
大约一个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
Fortify检测sql注入问题 order by动态拼接注入漏洞
java服务,使用spring jdbc做持久化层,数据库使用oracle,在做分页sql拼接的代码被Fortify检测出来问题,甲方要求必须整改。 检测代码源如下: ``` private static String getPagerSql(String sourceSql, Pager<Map<String, Object>> pager) { StringBuffer toSql = new StringBuffer(); toSql.append("select * from ( select row_.*, rownum rownum_ from ( "); toSql.append(sourceSql); toSql.append(" order by "); for (Sort orderBy : pager.getSort()) { toSql.append(String.format("%s %s,", orderBy.getProperty(), orderBy.getDir())); } toSql.deleteCharAt(toSql.length() - 1); toSql.append(" ) row_ ) where rownum_ > ? and rownum_ <= ? "); return toSql.toString(); } ``` 主要问题是在动态拼接排序参数被检测出来问题,虽然排序参数做了排序字段和排序顺序过滤,但还是被检测出高危注入漏洞,代码如下: ``` /** * 获取排序参数 * @return */ public List<Sort> getSort() { String[] sortnames=this.getSortname().split(","); String[] sortordes=this.getSortorder().split(","); if(sortnames.length!=sortordes.length) { throw new IllegalArgumentException("分页多重排序参数中,排序字段与排序方向的个数不相等"); } String regex = "^[a-z0-9A-Z_]{1,20}"; for(String sortname:sortnames) { if(!sortname.matches(regex)) { throw new IllegalArgumentException("分页排序参数中,排序字段非法"); } } List<Sort> orders = new ArrayList<Sort>(); for (int i = 0; i < sortnames.length; i++) { if(!(Sort.ASC.equals(sortordes[i].toLowerCase())||Sort.DESC.equals(sortordes[i].toLowerCase()))) { throw new IllegalArgumentException("分页排序参数中,排序方向非法"); } orders.add(new Sort(sortnames[i], sortordes[i])); } return orders; } ``` 请问有什么办法解决这个被Fortify检测出来的漏洞 ![图片说明](https://img-ask.csdn.net/upload/202002/06/1580969810_309316.jpg)
已安装的Nginx追加自带模块始终报错
* Centos7系统下已安装的nginx需要追加http_limit_req_module模块。按照网上的方法,下载了对应版本的源码, 1. 在配置参数后追加--with-http_limit_req_module,出现以下报错 ``` ./configure: error: invalid option "--with-http_limit_req_module" ``` 2. 使用--add-module=http_limit_req_module报找不到config文件 ``` adding module in http_limit_req_module ./configure: error: no http_limit_req_module/config was found ``` 3. 将模块名改成ngx_http_limit_req_module报的也是类似的错误 # 求大神看看应该怎么添加 下面是完整配置参数,nginx版本是1.17.8,--with-http_limit_req_module前的参数是用nginx -V查出来的 ``` ./configure --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib64/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIC' --with-ld-opt='-Wl,-z,relro -Wl,-z,now -pie' --with-http_limit_req_module ```
ffmpeg解码部分视频失败
我有一些视频,能够用播放器播放,但是用ffmpeg-3.4解不出来。 准确的说是用我自己编的ffmpeg库解不出来,用公司同样ffmpeg-3.4就能解出来。 但是我的编译应该没有大问题,因为大部分视频我都能够顺利解码的 视频解码错误时报: ``` [mov,mp4,m4a,3gp,3g2,mj2 @ 0x31b7120] STSC entry 1 is invalid (first=12 count=0 id=1) [mov,mp4,m4a,3gp,3g2,mj2 @ 0x31b7120] stream 0, contradictionary STSC and STCO [mov,mp4,m4a,3gp,3g2,mj2 @ 0x31b7120] error reading header ``` 正常解码出来的信息是: ``` Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fail.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: mp42isom creation_time : 2019-08-06T16:42:23.000000Z Duration: 00:00:10.89, start: 0.000000, bitrate: N/A Stream #0:0(und): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 1280x720, 2815 kb/s, 25.66 fps, 25.64 tbr, 1k tbn, 51.31 tbc (default) Metadata: creation_time : 2019-08-06T16:42:24.000000Z handler_name : encoder : VC Coding ``` 我的编译选项: ``` ./configure --prefix=./ --bindir=bin/ffmpeg --incdir=include/ffmpeg --libdir=lib64/ffmpeg --disable-x86asm --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro' --enable-libx264 --enable-libx265 --enable-avfilter --enable-pthreads --enable-shared --enable-gpl --disable-debug --enable-cuda --enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp --extra-cflags=-I/usr/local/cuda-8.0/include --extra-ldflags=-L/usr/local/cuda-8.0/lib64 ``` 怀疑是我编译的时候有什么选项没有开,或者有人告诉我这个视频有什么特殊的地方需要我加特殊的编解码器吗?
ubuntu18.04 python3.6 pip安装mysqlclient报错
ubuntu18.04 python3.6 pip安装mysqlclient报错 求大佬解答 ``` Building wheels for collected packages: mysqlclient Running setup.py bdist_wheel for mysqlclient ... error Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-njxuuzpo/mysqlclient/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpzs54ny_2pip-wheel- --python-tag cp36: running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/__init__.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/_exceptions.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/compat.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/connections.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/converters.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/cursors.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/release.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/times.py -> build/lib.linux-x86_64-3.6/MySQLdb creating build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/__init__.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/CLIENT.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/CR.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/ER.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/FLAG.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants running build_ext building 'MySQLdb._mysql' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/MySQLdb x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Dversion_info=(1,4,5,'final',0) -D__version__=1.4.5 -I/usr/include/mysql -I/usr/include/python3.6m -c MySQLdb/_mysql.c -o build/temp.linux-x86_64-3.6/MySQLdb/_mysql.o x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.6/MySQLdb/_mysql.o -lmysqlclient -lpthread -lz -lm -lrt -latomic -lssl -lcrypto -ldl -o build/lib.linux-x86_64-3.6/MySQLdb/_mysql.cpython-36m-x86_64-linux-gnu.so /usr/bin/ld: cannot find -lssl /usr/bin/ld: cannot find -lcrypto collect2: error: ld returned 1 exit status error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- Failed building wheel for mysqlclient Running setup.py clean for mysqlclient Failed to build mysqlclient Installing collected packages: mysqlclient Running setup.py install for mysqlclient ... error Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-njxuuzpo/mysqlclient/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-ldoqhl56-record/install-record.txt --single-version-externally-managed --compile --user --prefix=: running install running build running build_py creating build creating build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/__init__.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/_exceptions.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/compat.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/connections.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/converters.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/cursors.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/release.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/times.py -> build/lib.linux-x86_64-3.6/MySQLdb creating build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/__init__.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/CLIENT.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/CR.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/ER.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/FLAG.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants running build_ext building 'MySQLdb._mysql' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/MySQLdb x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Dversion_info=(1,4,5,'final',0) -D__version__=1.4.5 -I/usr/include/mysql -I/usr/include/python3.6m -c MySQLdb/_mysql.c -o build/temp.linux-x86_64-3.6/MySQLdb/_mysql.o x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.6/MySQLdb/_mysql.o -lmysqlclient -lpthread -lz -lm -lrt -latomic -lssl -lcrypto -ldl -o build/lib.linux-x86_64-3.6/MySQLdb/_mysql.cpython-36m-x86_64-linux-gnu.so /usr/bin/ld: cannot find -lssl /usr/bin/ld: cannot find -lcrypto collect2: error: ld returned 1 exit status error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-njxuuzpo/mysqlclient/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-ldoqhl56-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-njxuuzpo/mysqlclient/ ```
求助大神,Fortify扫描问题
Denial of Service: Parse Double Access Control:SercurityManager Bypass 这两类问题有谁知道怎么解决么?
代码扫描出来的漏洞,求大神解决
![图片说明](https://img-ask.csdn.net/upload/201702/07/1486431144_164792.png) 用的 HP的Fortify静态代码安全性扫描工具 进行的代码扫描
Cross-Site Scripting: DOM 跨站脚本攻击问题,怎么解决
function Script(url){ var oScript = document.createElement('script'); oScript.type = 'text/javascript'; oScript.src = url; $("head").html(oScript); } fortify扫描到oScript.src = url;这一行提示,Open Redirect Cross-Site Scripting: DOM (Input Validation and Representation, Data flow)
安装淘宝 TFS出现一些异常能帮忙看下吗谢谢
就是最后一个步骤 进入 tfs 目录 [root@locatfs local]# cd tfs/ [root@locatfs local]# chmod +x *.sh [root@locatfs local]# ./build.sh init [root@locatfs local]# ./configure --prefix=/usr/local/tfs --without-tcmalloc 到这里都没问题 接下来 运行 make 的时候就出现问题了 Making all in src make[1]: Entering directory `/root/tfs-2.6.0/src' Making all in common make[2]: Entering directory `/root/tfs-2.6.0/src/common' Making all in mysql_cluster make[3]: Entering directory `/root/tfs-2.6.0/src/common/mysql_cluster' if g++ -DPACKAGE_NAME=\"tfs\" -DPACKAGE_TARNAME=\"tfs\" -DPACKAGE_VERSION=\"2.6.0\" -DPACKAGE_STRING=\"tfs\ 2.6.0\" -DPACKAGE_BUGREPORT=\"duolong@taobao.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"tfs\" -DVERSION=\"2.6.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBC=1 -DHAVE_LIBDL=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -DHAVE_LIBRT=1 -DHAVE_READLINE_READLINE_H=1 -DHAVE_READLINE_HISTORY_H=1 -DTFS_DS_FALLOCATE=0 -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_ARPA_INET_H=1 -DHAVE_FCNTL_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_NETDB_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_VFS_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DTIME_WITH_SYS_TIME=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_STDLIB_H=1 -DHAVE_REALLOC=1 -DRETSIGTYPE=void -DHAVE_FDATASYNC=1 -DHAVE_FTRUNCATE=1 -DHAVE_GETHOSTBYNAME=1 -DHAVE_GETPAGESIZE=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_MEMSET=1 -DHAVE_MKDIR=1 -DHAVE_MUNMAP=1 -DHAVE_RMDIR=1 -DHAVE_SOCKET=1 -DHAVE_STRCASECMP=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOUL=1 -DHAVE_STRTOULL=1 -DHAVE_TZSET=1 -DHAVE_MYSQL=1 -I. -I. -Wall -I../../../src -I/usr/local/include/tbsys -I/usr/local/include/tbnet -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -fasynchronous-unwind-tables -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1 -g -D__STDC_LIMIT_MACROS -Wall -Werror -Wextra -Wunused-parameter -Wformat -Wconversion -Wdeprecated -MT database_pool.o -MD -MP -MF ".deps/database_pool.Tpo" -c -o database_pool.o database_pool.cpp; \ then mv -f ".deps/database_pool.Tpo" ".deps/database_pool.Po"; else rm -f ".deps/database_pool.Tpo"; exit 1; fi In file included from database_pool.cpp:16: database_pool.h:18:19: error: tbsys.h: No such file or directory database_pool.h:19:19: error: Mutex.h: No such file or directory In file included from database_pool.h:20, from database_pool.cpp:16: ../../../src/common/internal.h:34:19: error: tbnet.h: No such file or directory In file included from database_pool.cpp:20: mysql_database_helper.h:18:19: error: mysql.h: No such file or directory ../../../src/common/internal.h:471: error: ‘tbnet’ has not been declared ../../../src/common/internal.h:471: error: ISO C++ forbids declaration of ‘DataBuffer’ with no type ../../../src/common/internal.h:471: error: expected ‘;’ before ‘data_’ ../../../src/common/internal.h: In member function ‘void tfs::common::TimeStat::start()’: ../../../src/common/internal.h:1211: error: ‘tbsys’ has not been declared ../../../src/common/internal.h: In member function ‘void tfs::common::TimeStat::end()’: ../../../src/common/internal.h:1212: error: ‘tbsys’ has not been declared database_pool.h: At global scope: database_pool.h:51: error: ‘tbutil’ has not been declared database_pool.h:51: error: ISO C++ forbids declaration of ‘Mutex’ with no type database_pool.h:51: error: expected ‘;’ before ‘mutex_’ mysql_database_helper.h:54: error: ISO C++ forbids declaration of ‘MYSQL_STMT’ with no type mysql_database_helper.h:54: error: expected ‘;’ before ‘*’ token mysql_database_helper.h:55: error: ‘MYSQL_BIND’ does not name a type mysql_database_helper.h:65: error: ‘MYSQL’ does not name a type mysql_database_helper.h:71: error: ‘MYSQL_STMT’ has not been declared mysql_database_helper.h:81: error: ‘tbutil’ has not been declared mysql_database_helper.h:81: error: ISO C++ forbids declaration of ‘Mutex’ with no type mysql_database_helper.h:81: error: expected ‘;’ before ‘mutex_’ database_pool.cpp: In destructor ‘tfs::common::DataBasePool::~DataBasePool()’: database_pool.cpp:36: error: ‘ERROR’ was not declared in this scope database_pool.cpp:36: error: ‘TBSYS_LOG’ was not declared in this scope database_pool.cpp: In member function ‘bool tfs::common::DataBasePool::init_pool(int32_t, const char*, const char*, const char*)’: database_pool.cpp:65: error: ‘DEBUG’ was not declared in this scope database_pool.cpp:66: error: ‘TBSYS_LOG’ was not declared in this scope database_pool.cpp: In member function ‘bool tfs::common::DataBasePool::destroy_pool()’: database_pool.cpp:90: error: ‘mysql_thread_end’ was not declared in this scope database_pool.cpp: In member function ‘tfs::common::MysqlDatabaseHelper* tfs::common::DataBasePool::get()’: database_pool.cpp:98: error: ‘ERROR’ was not declared in this scope database_pool.cpp:98: error: ‘TBSYS_LOG’ was not declared in this scope database_pool.cpp:105: error: ‘tbutil’ has not been declared database_pool.cpp:105: error: expected `;' before ‘lock’ database_pool.cpp:123: error: ‘WARN’ was not declared in this scope database_pool.cpp:123: error: ‘TBSYS_LOG’ was not declared in this scope database_pool.cpp: In member function ‘void tfs::common::DataBasePool::release(tfs::common::MysqlDatabaseHelper*)’: database_pool.cpp:132: error: ‘tbutil’ has not been declared database_pool.cpp:132: error: expected `;' before ‘lock’ database_pool.cpp:143: error: ‘ERROR’ was not declared in this scope database_pool.cpp:143: error: ‘TBSYS_LOG’ was not declared in this scope make[3]: *** [database_pool.o] Error 1 make[3]: Leaving directory `/root/tfs-2.6.0/src/common/mysql_cluster' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/root/tfs-2.6.0/src/common' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/tfs-2.6.0/src' make: *** [all-recursive] Error 1 接下来就都是报错 能帮忙看下吗谢谢
sparkR install failed
#R >library(devtools) > install_github("amplab-extras/SparkR-pkg", subdir="pkg") ########################################### following is part of the errors: ########################################## [warn] Merging 'org/apache/commons/beanutils/ConstructorUtils.class' with strategy 'first' [warn] Merging 'com/esotericsoftware/reflectasm/AccessClassLoader.class' with strategy 'first' [warn] Merging 'org/apache/commons/beanutils/converters/ClassConverter.class' with strategy 'first' [warn] Merging 'com/esotericsoftware/reflectasm/shaded/org/objectweb/asm/Opcodes.class' with strategy 'first' [warn] Merging 'org/apache/commons/beanutils/BeanAccessLanguageException.class' with strategy 'first' ........ [warn] Merging 'com/esotericsoftware/reflectasm/shaded/org/objectweb/asm/Item.class' with strategy 'first' [warn] Merging 'com/esotericsoftware/reflectasm/shaded/org/objectweb/asm/AnnotationWriter.class' with strategy 'first' [warn] Merging 'org/apache/commons/beanutils/locale/converters/DateLocaleConverter.class' with strategy 'first' [warn] Merging 'org/apache/commons/logging/impl/SimpleLog.class' with strategy 'first' [warn] Merging 'org/apache/commons/beanutils/MutableDynaClass.class' with strategy 'first' [warn] Merging 'com/esotericsoftware/reflectasm/shaded/org/objectweb/asm/Edge.class' with strategy 'first' [warn] Merging 'org/apache/commons/beanutils/converters/BigDecimalConverter.class' with strategy 'first' [warn] Merging 'org/apache/commons/beanutils/converters/StringConverter.class' with strategy 'first' [warn] Merging 'org/apache/commons/beanutils/locale/converters/ByteLocaleConverter.class' with strategy 'first' [warn] Merging 'org/apache/commons/beanutils/RowSetDynaClass.class' with strategy 'first' [warn] Merging 'org/apache/commons/beanutils/locale/converters/SqlTimestampLocaleConverter.class' with strategy 'first' [warn] Merging 'org/apache/commons/beanutils/converters/BigIntegerConverter.class' with strategy 'first' [warn] Merging 'org/apache/commons/collections/FastHashMap$KeySet.class' with strategy 'first' [warn] Merging 'org/apache/commons/beanutils/locale/LocaleBeanUtilsBean$1.class' with strategy 'first' ... [warn] Merging 'org/apache/commons/collections/FastHashMap$1.class' with strategy 'first' [warn] Strategy 'concat' was applied to a file [warn] Strategy 'discard' was applied to 2 files [warn] Strategy 'first' was applied to 170 files [info] Checking every *.class/*.jar file's SHA-1. [info] SHA-1: 9daccfa535029502574bf866e4be0e23bc9e6ecc [info] Packaging /tmp/RtmpanBGc5/devtoolsbb4b53a21bb8/amplab-extras-SparkR-pkg-e24b1ad/pkg/src/target/scala-2.10/sparkr-assembly-0.1.jar ... [info] Done packaging. [success] Total time: 1156 s, completed Mar 19, 2015 8:32:57 PM cp -f target/scala-2.10/sparkr-assembly-0.1.jar ../inst/ R CMD SHLIB -o SparkR.so string_hash_code.c make[1]: Entering directory `/tmp/RtmpanBGc5/devtoolsbb4b53a21bb8/amplab-extras-SparkR-pkg-e24b1ad/pkg/src' gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c string_hash_code.c -o string_hash_code.o gcc -std=gnu99 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o SparkR.so string_hash_code.o -L/usr/lib/R/lib -lR make[1]: Leaving directory `/tmp/RtmpanBGc5/devtoolsbb4b53a21bb8/amplab-extras-SparkR-pkg-e24b1ad/pkg/src' installing to /usr/local/lib/R/site-library/SparkR/libs ** R ** inst ** tests ** preparing package for lazy loading Creating a generic function for ‘lapply’ from package ‘base’ in package ‘SparkR’ Creating a generic function for ‘Filter’ from package ‘base’ in package ‘SparkR’ ** help *** installing help indices ** building package indices ** testing if installed package can be loaded * DONE (SparkR) Warning message: package ‘’ is not available (for R version 3.1.3) > library(SparkR) [SparkR] Initializing with classpath /usr/local/lib/R/site-library/SparkR/sparkr-assembly-0.1.jar > sc<-sparkR.init(master="spark://localhost:7077",sparkEnvir=list(spark.executor.memory="1g",spark.cores.max="10")) .......... at org.jboss.netty.channel.socket.nio.NioServerBoss.run(NioServerBoss.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Error: returnStatus == 0 is not TRUE >
在Ubuntu下装ns-3,编译时总是中途出错,具体如下:
Build failed -> task failed (exit status 1): {task 139621304904464: cxx print-introspected-doxygen.cc -> print-introspected-doxygen.cc.4.o} ['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-pthread', '-pthread', '-fno-strict-aliasing', '-fwrapv', '-fdebug-prefix-map=/build/python2.7-3hk45v/python2.7-2.7.15~rc1=.', '-fstack-protector-strong', '-fno-strict-aliasing', '-Ibuild', '-I.', '-I.', '-I/home/zhangzq/tarballs/ns-allinone-3.13', '-I/usr/include/gtk-2.0', '-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include', '-I/usr/include/gio-unix-2.0', '-I/usr/include/cairo', '-I/usr/include/pango-1.0', '-I/usr/include/atk-1.0', '-I/usr/include/pixman-1', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/libpng16', '-I/usr/include/harfbuzz', '-I/usr/include/glib-2.0', '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include', '-I/usr/include/freetype2', '-I/usr/include/libxml2', '-I/usr/include/python2.7', '-I/usr/include/x86_64-linux-gnu/python2.7', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DSQLITE3=1', '-DHAVE_IF_TUN_H=1', '-DPYTHONDIR="/usr/local/lib/python2.7/dist-packages"', '-DPYTHONARCHDIR="/usr/local/lib/python2.7/dist-packages"', '-DHAVE_PYTHON_H=1', '-DENABLE_GSL', '-DNDEBUG', '-D_FORTIFY_SOURCE=2', '../utils/print-introspected-doxygen.cc', '-c', '-o', 'utils/print-introspected-doxygen.cc.4.o'] Traceback (most recent call last): File "./build.py", line 147, in <module> sys.exit(main(sys.argv)) File "./build.py", line 138, in main build_ns3(config, build_examples, build_tests, args, build_options) File "./build.py", line 61, in build_ns3 run_command([sys.executable, "waf", "build"] + build_options) File "/home/zhangzq/tarballs/ns-allinone-3.13/util.py", line 24, in run_command raise CommandError("Command %r exited with code %i" % (argv, retval)) util.CommandError: Command ['/usr/bin/python', 'waf', 'build'] exited with code 1
C语言写Python模块扩展溢出
这几天写了一个用C语言实现的Python模块,用于生成随机数和随机字符串,然后,编译啥的都没问题,但是测试的时候从python shell中import 进去,计算到最后一步溢出来。。。 主要功能就算是从python中传入一个文件名称,然后将生成的随机字符串保存进去。 ``` #include<stdio.h> #include<stdlib.h> #include<time.h> #include "Python.h" static PyObject *xrand(PyObject *self, PyObject *args); static PyObject *xrand(PyObject *self, PyObject *args) { FILE *fp; int j = 9999, i; int number, small_i; char string, name; int choice, choice_string; if(!PyArg_ParseTuple(args, "s", &name)) { return NULL; } fp = fopen(&name, "at"); if(fp) { printf("successful\n"); } else { printf("error\n"); } srand(time(0)); for(i = 0; i < j; i ++) { for(small_i = 0; small_i < 8; small_i ++) { choice = rand() % 2; if(choice == 0) { number = rand() % 10; fprintf(fp, "%d", number); } else { choice_string = rand() % 2; if(choice_string == 0) { string = 'a' + rand() % 26; } else { string = 'A' + rand() % 26; } fprintf(fp, "%c", (char)string); printf("write successfule\n"); } } fprintf(fp, "%s", "\n"); printf("wirte successful\n"); } fclose(fp); printf("close successful\n"); return 0; } static PyMethodDef randMethods[] = { {"xrand", (PyCFunction)xrand, METH_VARARGS, "xrand.c Python module"}, {NULL, NULL, 0, NULL} }; PyMODINIT_FUNC initxrand(void) { Py_InitModule("xrand", randMethods); } ``` 下面的是报错 ``` write successfule write successfule wirte successful close successful *** stack smashing detected ***: python terminated ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x731af)[0x7fdf6ad9e1af] /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7fdf6ae23cf7] /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x0)[0x7fdf6ae23cc0] /home/jay/Documents/hash/mod/build/lib.linux-x86_64-2.7/xrand.so(+0xc2c)[0x7fdf6a324c2c] python(PyEval_EvalFrameEx+0x355)[0x4c9e05] python(PyEval_EvalCodeEx+0x411)[0x4c87a1] python[0x5030ef] python(PyRun_InteractiveOneFlags+0x198)[0x449b84] python(PyRun_InteractiveLoopFlags+0xba)[0x449937] python[0x42d96b] python(Py_Main+0x562)[0x4982f2] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7fdf6ad4cb45] python[0x497ca0] ======= Memory map: ======== 00400000-0071f000 r-xp 00000000 fe:00 139649 /usr/bin/python2.7 0091e000-0091f000 r--p 0031e000 fe:00 139649 /usr/bin/python2.7 0091f000-0099c000 rw-p 0031f000 fe:00 139649 /usr/bin/python2.7 0099c000-009ae000 rw-p 00000000 00:00 0 00b22000-00c1a000 rw-p 00000000 00:00 0 [heap] 7fdf6a10e000-7fdf6a124000 r-xp 00000000 fe:00 258574 /lib/x86_64-linux-gnu/libgcc_s.so.1 7fdf6a124000-7fdf6a323000 ---p 00016000 fe:00 258574 /lib/x86_64-linux-gnu/libgcc_s.so.1 7fdf6a323000-7fdf6a324000 rw-p 00015000 fe:00 258574 /lib/x86_64-linux-gnu/libgcc_s.so.1 7fdf6a324000-7fdf6a325000 r-xp 00000000 fe:04 34735625 /home/jay/Documents/hash/mod/build/lib.linux-x86_64-2.7/xrand.so 7fdf6a325000-7fdf6a524000 ---p 00001000 fe:04 34735625 /home/jay/Documents/hash/mod/build/lib.linux-x86_64-2.7/xrand.so 7fdf6a524000-7fdf6a525000 r--p 00000000 fe:04 34735625 /home/jay/Documents/hash/mod/build/lib.linux-x86_64-2.7/xrand.so 7fdf6a525000-7fdf6a526000 rw-p 00001000 fe:04 34735625 /home/jay/Documents/hash/mod/build/lib.linux-x86_64-2.7/xrand.so 7fdf6a526000-7fdf6a54c000 r-xp 00000000 fe:00 259445 /lib/x86_64-linux-gnu/libtinfo.so.5.9 7fdf6a54c000-7fdf6a74b000 ---p 00026000 fe:00 259445 /lib/x86_64-linux-gnu/libtinfo.so.5.9 7fdf6a74b000-7fdf6a74f000 r--p 00025000 fe:00 259445 /lib/x86_64-linux-gnu/libtinfo.so.5.9 7fdf6a74f000-7fdf6a750000 rw-p 00029000 fe:00 259445 /lib/x86_64-linux-gnu/libtinfo.so.5.9 7fdf6a750000-7fdf6a790000 r-xp 00000000 fe:00 260090 /lib/x86_64-linux-gnu/libreadline.so.6.3 7fdf6a790000-7fdf6a990000 ---p 00040000 fe:00 260090 /lib/x86_64-linux-gnu/libreadline.so.6.3 7fdf6a990000-7fdf6a992000 r--p 00040000 fe:00 260090 /lib/x86_64-linux-gnu/libreadline.so.6.3 7fdf6a992000-7fdf6a999000 rw-p 00042000 fe:00 260090 /lib/x86_64-linux-gnu/libreadline.so.6.3 7fdf6a999000-7fdf6a99a000 rw-p 00000000 00:00 0 7fdf6a99a000-7fdf6a99f000 r-xp 00000000 fe:00 139870 /usr/lib/python2.7/lib-dynload/readline.x86_64-linux-gnu.so 7fdf6a99f000-7fdf6ab9f000 ---p 00005000 fe:00 139870 /usr/lib/python2.7/lib-dynload/readline.x86_64-linux-gnu.so 7fdf6ab9f000-7fdf6aba0000 r--p 00005000 fe:00 139870 /usr/lib/python2.7/lib-dynload/readline.x86_64-linux-gnu.so 7fdf6aba0000-7fdf6aba2000 rw-p 00006000 fe:00 139870 /usr/lib/python2.7/lib-dynload/readline.x86_64-linux-gnu.so 7fdf6aba2000-7fdf6ad2b000 r--p 00000000 fe:00 145216 /usr/lib/locale/locale-archive 7fdf6ad2b000-7fdf6aecd000 r-xp 00000000 fe:00 299793 /lib/x86_64-linux-gnu/libc-2.19.so 7fdf6aecd000-7fdf6b0cc000 ---p 001a2000 fe:00 299793 /lib/x86_64-linux-gnu/libc-2.19.so 7fdf6b0cc000-7fdf6b0d0000 r--p 001a1000 fe:00 299793 /lib/x86_64-linux-gnu/libc-2.19.so 7fdf6b0d0000-7fdf6b0d2000 rw-p 001a5000 fe:00 299793 /lib/x86_64-linux-gnu/libc-2.19.so 7fdf6b0d2000-7fdf6b0d6000 rw-p 00000000 00:00 0 7fdf6b0d6000-7fdf6b1d6000 r-xp 00000000 fe:00 299797 /lib/x86_64-linux-gnu/libm-2.19.so 7fdf6b1d6000-7fdf6b3d5000 ---p 00100000 fe:00 299797 /lib/x86_64-linux-gnu/libm-2.19.so 7fdf6b3d5000-7fdf6b3d6000 r--p 000ff000 fe:00 299797 /lib/x86_64-linux-gnu/libm-2.19.so 7fdf6b3d6000-7fdf6b3d7000 rw-p 00100000 fe:00 299797 /lib/x86_64-linux-gnu/libm-2.19.so 7fdf6b3d7000-7fdf6b3f1000 r-xp 00000000 fe:00 258799 /lib/x86_64-linux-gnu/libz.so.1.2.8 7fdf6b3f1000-7fdf6b5f0000 ---p 0001a000 fe:00 258799 /lib/x86_64-linux-gnu/libz.so.1.2.8 7fdf6b5f0000-7fdf6b5f1000 r--p 00019000 fe:00 258799 /lib/x86_64-linux-gnu/libz.so.1.2.8 7fdf6b5f1000-7fdf6b5f2000 rw-p 0001a000 fe:00 258799 /lib/x86_64-linux-gnu/libz.so.1.2.8 7fdf6b5f2000-7fdf6b5f4000 r-xp 00000000 fe:00 299811 /lib/x86_64-linux-gnu/libutil-2.19.so 7fdf6b5f4000-7fdf6b7f3000 ---p 00002000 fe:00 299811 /lib/x86_64-linux-gnu/libutil-2.19.so 7fdf6b7f3000-7fdf6b7f4000 r--p 00001000 fe:00 299811 /lib/x86_64-linux-gnu/libutil-2.19.so 7fdf6b7f4000-7fdf6b7f5000 rw-p 00002000 fe:00 299811 /lib/x86_64-linux-gnu/libutil-2.19.so 7fdf6b7f5000-7fdf6b7f8000 r-xp 00000000 fe:00 299796 /lib/x86_64-linux-gnu/libdl-2.19.so 7fdf6b7f8000-7fdf6b9f7000 ---p 00003000 fe:00 299796 /lib/x86_64-linux-gnu/libdl-2.19.so 7fdf6b9f7000-7fdf6b9f8000 r--p 00002000 fe:00 299796 /lib/x86_64-linux-gnu/libdl-2.19.so 7fdf6b9f8000-7fdf6b9f9000 rw-p 00003000 fe:00 299796 /lib/x86_64-linux-gnu/libdl-2.19.so 7fdf6b9f9000-7fdf6ba11000 r-xp 00000000 fe:00 274527 /lib/x86_64-linux-gnu/libpthread-2.19.so 7fdf6ba11000-7fdf6bc10000 ---p 00018000 fe:00 274527 /lib/x86_64-linux-gnu/libpthread-2.19.so 7fdf6bc10000-7fdf6bc11000 r--p 00017000 fe:00 274527 /lib/x86_64-linux-gnu/libpthread-2.19.so 7fdf6bc11000-7fdf6bc12000 rw-p 00018000 fe:00 274527 /lib/x86_64-linux-gnu/libpthread-2.19.so 7fdf6bc12000-7fdf6bc16000 rw-p 00000000 00:00 0 7fdf6bc16000-7fdf6bc36000 r-xp 00000000 fe:00 274528 /lib/x86_64-linux-gnu/ld-2.19.so 7fdf6bca2000-7fdf6be18000 rw-p 00000000 00:00 0 7fdf6be2b000-7fdf6be2d000 rw-p 00000000 00:00 0 7fdf6be2d000-7fdf6be34000 r--s 00000000 fe:00 177736 /usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache 7fdf6be34000-7fdf6be36000 rw-p 00000000 00:00 0 7fdf6be36000-7fdf6be37000 r--p 00020000 fe:00 274528 /lib/x86_64-linux-gnu/ld-2.19.so 7fdf6be37000-7fdf6be38000 rw-p 00021000 fe:00 274528 /lib/x86_64-linux-gnu/ld-2.19.so 7fdf6be38000-7fdf6be39000 rw-p 00000000 00:00 0 7ffd62c25000-7ffd62c46000 rw-p 00000000 00:00 0 [stack] 7ffd62d00000-7ffd62d02000 r-xp 00000000 00:00 0 [vdso] 7ffd62d02000-7ffd62d04000 r--p 00000000 00:00 0 [vvar] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] Aborted ``` 可以看到,C已经将fp关闭释放来,但是还是报错。。最后生成文件内容所正确的,但是名字所乱码,是不是从python中传入参数的时候有问题,我在想,但是又没有任何思路。。。各位大神帮帮忙啦~~
18.04 编译8.1安卓源码报错
我用18.04 编译安卓源码的时候报下面的错误,有人遇到过吗? 1 warning generated. [ 18% 12030/66759] target C++: libaau...es/oboeservice/AAudioClientTracker.cpp FAILED: out/target/product/salvator/obj/SHARED_LIBRARIES/libaaudioservice_intermediates/AAudioClientTracker.o /bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++ -I frameworks/av/services/audioflinger -I system/media/audio_utils/include -I frameworks/native/include -I system/core/base/include -I ./frameworks/native/media/libaaudio/include/include -I ./frameworks/av/media/libaaudio/include -I ./frameworks/av/media/utils/include -I frameworks/native/include -I ./external/tinyalsa/include -I ./frameworks/av/media/libaaudio/src -I frameworks/av/services/oboeservice -I out/target/product/salvator/obj/SHARED_LIBRARIES/libaaudioservice_intermediates -I out/target/product/salvator/gen/SHARED_LIBRARIES/libaaudioservice_intermediates -I libnativehelper/include_deprecated \$(cat out/target/product/salvator/obj/SHARED_LIBRARIES/libaaudioservice_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/opengl/include -I frameworks/av/include -isystem out/target/product/salvator/obj/include -isystem bionic/libc/arch-arm64/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm64 -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -c -fno-exceptions -Wno-multichar -fno-strict-aliasing -fstack-protector-strong -ffunction-sections -fdata-sections -funwind-tables -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -Werror=pointer-to-int-cast -Werror=int-to-pointer-cast -Werror=implicit-function-declaration -DNDEBUG -O2 -g -Wstrict-aliasing=2 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -nostdlibinc -mcpu=cortex-a53 -target aarch64-linux-android -Bprebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -fvisibility-inlines-hidden -std=gnu++14 -fno-rtti -Wno-unused-parameter -Wall -Werror -fPIC -D_USING_LIBCXX -DANDROID_STRICT -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF out/target/product/salvator/obj/SHARED_LIBRARIES/libaaudioservice_intermediates/AAudioClientTracker.d -o out/target/product/salvator/obj/SHARED_LIBRARIES/libaaudioservice_intermediates/AAudioClientTracker.o frameworks/av/services/oboeservice/AAudioClientTracker.cpp" clang++.real: error: unable to execute command: Segmentation fault (core dumped) clang++.real: error: clang frontend command failed due to signal (use -v to see invocation) 这个错误 clang++.real: error: unable to execute command: Segmentation fault (core dumped) clang++.real: error: clang frontend command failed due to signal (use -v to see invocation)
FFmpeg 视频压缩问题 麻烦大虾们进来看下
``` 08-04 13:15:43.566 19531-20681/com.bike.main D/QCloud: 压缩中/data/data/com.bike.main/app_bin/ffmpeg -threads 4 -y -i /storage/emulated/0/DCIM/Camera/VID_20160804_102832.mp4 -strict -2 -vf crop=360:480:0:0 -preset ultrafast -tune zerolatency -s 360x480 -b:a 128k -r 30 -vcodec libx264 -acodec copy /storage/emulated/0/DCIM/Camera/VID_20160804_102832.mp4 08-04 13:15:43.612 19531-20714/com.bike.main D/QCloud: 压缩中WARNING: linker: /data/data/com.bike.main/app_bin/ffmpeg has text relocations. This is wasting memory and prevents security hardening. Please fix. 08-04 13:15:43.628 19531-20714/com.bike.main D/QCloud: 压缩中ffmpeg version n2.4.2 Copyright (c) 2000-2014 the FFmpeg developers 08-04 13:15:43.628 19531-20714/com.bike.main D/QCloud: 压缩中 built on Oct 7 2014 15:05:17 with gcc 4.8 (GCC) 08-04 13:15:43.629 19531-20714/com.bike.main D/QCloud: 压缩中 configuration: --target-os=linux --cross-prefix=/home/sb/Source-Code/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/sb/Source-Code/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/sb/Source-Code/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/sb/Source-Code/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/sb/Source-Code/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/sb/Source-Code/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags= 08-04 13:15:43.629 19531-20714/com.bike.main D/QCloud: 压缩中 libavutil 54. 7.100 / 54. 7.100 08-04 13:15:43.629 19531-20714/com.bike.main D/QCloud: 压缩中 libavcodec 56. 1.100 / 56. 1.100 08-04 13:15:43.630 19531-20714/com.bike.main D/QCloud: 压缩中 libavformat 56. 4.101 / 56. 4.101 08-04 13:15:43.630 19531-20714/com.bike.main D/QCloud: 压缩中 libavdevice 56. 0.100 / 56. 0.100 08-04 13:15:43.630 19531-20714/com.bike.main D/QCloud: 压缩中 libavfilter 5. 1.100 / 5. 1.100 08-04 13:15:43.630 19531-20714/com.bike.main D/QCloud: 压缩中 libswscale 3. 0.100 / 3. 0.100 08-04 13:15:43.631 19531-20714/com.bike.main D/QCloud: 压缩中 libswresample 1. 1.100 / 1. 1.100 08-04 13:15:43.631 19531-20714/com.bike.main D/QCloud: 压缩中 libpostproc 53. 0.100 / 53. 0.100 08-04 13:15:43.968 19531-20714/com.bike.main D/QCloud: 压缩中Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/DCIM/Camera/VID_20160804_102832.mp4': 08-04 13:15:43.969 19531-20714/com.bike.main D/QCloud: 压缩中 Metadata: 08-04 13:15:43.969 19531-20714/com.bike.main D/QCloud: 压缩中 major_brand : mp42 08-04 13:15:43.969 19531-20714/com.bike.main D/QCloud: 压缩中 minor_version : 0 08-04 13:15:43.970 19531-20714/com.bike.main D/QCloud: 压缩中 compatible_brands: isommp42 08-04 13:15:43.970 19531-20714/com.bike.main D/QCloud: 压缩中 creation_time : 2016-08-04 02:28:43 08-04 13:15:43.970 19531-20714/com.bike.main D/QCloud: 压缩中 location : +30.1914+120.1892/ 08-04 13:15:43.971 19531-20714/com.bike.main D/QCloud: 压缩中 location-eng : +30.1914+120.1892/ 08-04 13:15:43.972 19531-20714/com.bike.main D/QCloud: 压缩中 Duration: 00:00:10.18, start: 0.000000, bitrate: 41899 kb/s 08-04 13:15:43.973 19531-20714/com.bike.main D/QCloud: 压缩中 Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 3840x2160, 41699 kb/s, SAR 65536:65536 DAR 16:9, 29.24 fps, 30 tbr, 90k tbn, 180k tbc (default) 08-04 13:15:43.973 19531-20714/com.bike.main D/QCloud: 压缩中 Metadata: 08-04 13:15:43.973 19531-20714/com.bike.main D/QCloud: 压缩中 rotate : 90 08-04 13:15:43.974 19531-20714/com.bike.main D/QCloud: 压缩中 creation_time : 2016-08-04 02:28:43 08-04 13:15:43.974 19531-20714/com.bike.main D/QCloud: 压缩中 handler_name : VideoHandle 08-04 13:15:43.974 19531-20714/com.bike.main D/QCloud: 压缩中 Side data: 08-04 13:15:43.975 19531-20714/com.bike.main D/QCloud: 压缩中 displaymatrix: rotation of -90.00 degrees 08-04 13:15:43.975 19531-20714/com.bike.main D/QCloud: 压缩中 Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 96 kb/s (default) 08-04 13:15:43.975 19531-20714/com.bike.main D/QCloud: 压缩中 Metadata: 08-04 13:15:43.976 19531-20714/com.bike.main D/QCloud: 压缩中 creation_time : 2016-08-04 02:28:43 08-04 13:15:43.976 19531-20714/com.bike.main D/QCloud: 压缩中 handler_name : SoundHandle 08-04 13:15:43.990 19531-20714/com.bike.main D/QCloud: 压缩中[libx264 @ 0xb5ec4400] using SAR=1/1 08-04 13:15:44.003 19531-20714/com.bike.main D/QCloud: 压缩中[libx264 @ 0xb5ec4400] using cpu capabilities: none! 08-04 13:15:44.067 19531-20714/com.bike.main D/QCloud: 压缩中[libx264 @ 0xb5ec4400] profile Constrained Baseline, level 3.0 08-04 13:15:44.067 19531-20714/com.bike.main D/QCloud: 压缩中[libx264 @ 0xb5ec4400] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=4 lookahead_threads=4 sliced_threads=1 slices=4 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0 08-04 13:15:44.075 19531-20714/com.bike.main D/QCloud: 压缩中Output #0, mp4, to '/storage/emulated/0/DCIM/Camera/VID_20160804_102832.mp4': 08-04 13:15:44.075 19531-20714/com.bike.main D/QCloud: 压缩中 Metadata: 08-04 13:15:44.076 19531-20714/com.bike.main D/QCloud: 压缩中 major_brand : mp42 08-04 13:15:44.076 19531-20714/com.bike.main D/QCloud: 压缩中 minor_version : 0 08-04 13:15:44.076 19531-20714/com.bike.main D/QCloud: 压缩中 compatible_brands: isommp42 08-04 13:15:44.077 19531-20714/com.bike.main D/QCloud: 压缩中 location-eng : +30.1914+120.1892/ 08-04 13:15:44.077 19531-20714/com.bike.main D/QCloud: 压缩中 location : +30.1914+120.1892/ 08-04 13:15:44.077 19531-20714/com.bike.main D/QCloud: 压缩中 encoder : Lavf56.4.101 08-04 13:15:44.079 19531-20714/com.bike.main D/QCloud: 压缩中 Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 360x480 [SAR 1:1 DAR 3:4], q=-1--1, 30 fps, 15360 tbn, 30 tbc (default) 08-04 13:15:44.079 19531-20714/com.bike.main D/QCloud: 压缩中 Metadata: 08-04 13:15:44.079 19531-20714/com.bike.main D/QCloud: 压缩中 rotate : 90 08-04 13:15:44.079 19531-20714/com.bike.main D/QCloud: 压缩中 creation_time : 2016-08-04 02:28:43 08-04 13:15:44.080 19531-20714/com.bike.main D/QCloud: 压缩中 handler_name : VideoHandle 08-04 13:15:44.080 19531-20714/com.bike.main D/QCloud: 压缩中 encoder : Lavc56.1.100 libx264 08-04 13:15:44.081 19531-20714/com.bike.main D/QCloud: 压缩中 Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 128 kb/s (default) 08-04 13:15:44.081 19531-20714/com.bike.main D/QCloud: 压缩中 Metadata: 08-04 13:15:44.081 19531-20714/com.bike.main D/QCloud: 压缩中 creation_time : 2016-08-04 02:28:43 08-04 13:15:44.082 19531-20714/com.bike.main D/QCloud: 压缩中 handler_name : SoundHandle 08-04 13:15:44.082 19531-20714/com.bike.main D/QCloud: 压缩中Stream mapping: 08-04 13:15:44.082 19531-20714/com.bike.main D/QCloud: 压缩中 Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) 08-04 13:15:44.083 19531-20714/com.bike.main D/QCloud: 压缩中 Stream #0:1 -> #0:1 (copy) 08-04 13:15:44.083 19531-20714/com.bike.main D/QCloud: 压缩中Press [q] to stop, [?] for help 08-04 13:15:44.413 19531-20714/com.bike.main D/QCloud: 压缩中[mov,mp4,m4a,3gp,3g2,mj2 @ 0xb5efa000] stream 1, offset 0x66172: partial file 08-04 13:15:44.414 19531-20714/com.bike.main D/QCloud: 压缩中/storage/emulated/0/DCIM/Camera/VID_20160804_102832.mp4: Invalid data found when processing input 08-04 13:15:44.431 19531-20714/com.bike.main D/QCloud: 压缩中frame= 1 fps=0.0 q=20.0 Lsize= 25kB time=00:00:01.00 bitrate= 201.3kbits/s 08-04 13:15:44.431 19531-20714/com.bike.main D/QCloud: 压缩中video:11kB audio:12kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 6.192641% 08-04 13:15:44.447 19531-20714/com.bike.main D/QCloud: 压缩中[libx264 @ 0xb5ec4400] frame I:1 Avg QP:20.00 size: 10420 08-04 13:15:44.448 19531-20714/com.bike.main D/QCloud: 压缩中[libx264 @ 0xb5ec4400] mb I I16..4: 100.0% 0.0% 0.0% 08-04 13:15:44.448 19531-20714/com.bike.main D/QCloud: 压缩中[libx264 @ 0xb5ec4400] coded y,uvDC,uvAC intra: 55.9% 40.3% 19.7% 08-04 13:15:44.448 19531-20714/com.bike.main D/QCloud: 压缩中[libx264 @ 0xb5ec4400] i16 v,h,dc,p: 34% 22% 32% 12% 08-04 13:15:44.448 19531-20714/com.bike.main D/QCloud: 压缩中[libx264 @ 0xb5ec4400] i8c dc,h,v,p: 67% 13% 17% 4% 08-04 13:15:44.449 19531-20714/com.bike.main D/QCloud: 压缩中[libx264 @ 0xb5ec4400] kb/s:2500.80 08-04 13:15:44.453 19531-20715/com.bike.main I/123: OUTPUT::null 08-04 13:15:44.454 19531-20714/com.bike.main I/123: ERROR::null 08-04 13:15:44.458 19531-20681/com.bike.main D/QCloud: 压缩成功 ``` * 麻烦大神们帮忙看看问题出在哪里啊 压缩好的视频**不能播放**而且**大小没变化**
ffmpeg Invalid UE golomb code问题
安装版本ffmpeg-4.1.tar.gz 命令 ffmpeg -re -i http://v.videoincloud.com/gxnnynqfy/20181031/Y8JMQo/Y8JMQo.m3u8 -strict -2 Y8JMQo.m3u8 运行结果 [test@GROUPC ~]$ ffmpeg -re -i http://v.videoincloud.com/gxnnynqfy/20181031/Y8JMQo/Y8JMQo.m3u8 -strict -2 Y8JMQo.m3u8 ffmpeg version 2.8.15 Copyright (c) 2000-2018 the FFmpeg developers built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-28) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-gnutls --enable-ladspa --enable-libass --enable-libcdio --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264 --enable-libx265 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect libavutil 54. 31.100 / 54. 31.100 libavcodec 56. 60.100 / 56. 60.100 libavformat 56. 40.101 / 56. 40.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 40.101 / 5. 40.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101 libpostproc 53. 3.100 / 53. 3.100 [http @ 0xd37e40] No trailing CRLF found in HTTP header. Invalid UE golomb code Last message repeated 2 times Input #0, hls,applehttp, from 'http://v.videoincloud.com/gxnnynqfy/20181031/Y8JMQo/Y8JMQo.m3u8': Duration: 00:20:31.21, start: 1.400000, bitrate: 0 kb/s Program 0 Metadata: variant_bitrate : 0 Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080, 15 tbr, 90k tbn, 180k tbc Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 59 kb/s [libx264 @ 0xd76300] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2 [libx264 @ 0xd76300] profile High, level 4.0 Output #0, hls, to 'Y8JMQo.m3u8': Metadata: encoder : Lavf56.40.101 Stream #0:0: Video: h264 (libx264), yuv420p, 1920x1080, q=-1--1, 15 fps, 90k tbn, 15 tbc Metadata: encoder : Lavc56.60.100 libx264 Stream #0:1: Audio: aac, 44100 Hz, stereo, fltp, 128 kb/s Metadata: encoder : Lavc56.60.100 aac Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (aac (native) -> aac (native)) Press [q] to stop, [?] for help Invalid UE golomb code Invalid UE golomb code0.0 size=N/A time=00:00:02.00 bitrate=N/A dup=4 drop=0 Last message repeated 1 times Invalid UE golomb code0.0 size=N/A time=00:00:03.04 bitrate=N/A dup=4 drop=0 Last message repeated 1 times Invalid UE golomb code27.0 size=N/A time=00:00:03.74 bitrate=N/A dup=4 drop=0 Last message repeated 1 times Invalid UE golomb code27.0 size=N/A time=00:00:04.74 bitrate=N/A dup=4 drop=0 Last message repeated 1 times
Tensorflow 源码构建 error executing command 错误
Ubuntu 16.04 通过源码安装tensorflow GPU版本。执行如下命令时出错,请各位帮忙分析下。 OS:Linux aikou 4.10.0-37-generic #41~16.04.1-Ubuntu SMP Fri Oct 6 22:42:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux GCC:gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.5) CUDA:9.0 cuDNN: 5.1.10 执行命令: bazel build --copt=-march=native --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-mfpmath=both ––verbose_failures --spawn_strategy=standalone --config=cuda //tensorflow/tools/pip_package:build_pip_package 错误提示: ERROR: /home/kou/tensorflow/tensorflow/stream_executor/BUILD:52:1: C++ compilation of rule '//tensorflow/stream_executor:cuda_platform' failed (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command (cd /home/kou/.cache/bazel/_bazel_kou/3f3a4712723b62ae321569eb62995c39/execroot/org_tensorflow && \ exec env - \ LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64:/usr/local/cuda/extras/CUPTI/lib64 \ PATH=/home/kou/anaconda3/bin:/home/kou/bin:/home/kou/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/cuda-9.0/bin \ PWD=/proc/self/cwd \ external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections -g0 '-std=c++11' -g0 -MD -MF bazel-out/host/bin/tensorflow/stream_executor/_objs/cuda_platform/tensorflow/stream_executor/cuda/cuda_dnn.pic.d '-frandom-seed=bazel-out/host/bin/tensorflow/stream_executor/_objs/cuda_platform/tensorflow/stream_executor/cuda/cuda_dnn.pic.o' -fPIC -DEIGEN_MPL2_ONLY -DTENSORFLOW_USE_JEMALLOC -DTF_USE_SNAPPY -iquote . -iquote bazel-out/host/genfiles -iquote external/nsync -iquote bazel-out/host/genfiles/external/nsync -iquote external/bazel_tools -iquote bazel-out/host/genfiles/external/bazel_tools -iquote external/jemalloc -iquote bazel-out/host/genfiles/external/jemalloc -iquote external/eigen_archive -iquote bazel-out/host/genfiles/external/eigen_archive -iquote external/local_config_sycl -iquote bazel-out/host/genfiles/external/local_config_sycl -iquote external/gif_archive -iquote bazel-out/host/genfiles/external/gif_archive -iquote external/jpeg -iquote bazel-out/host/genfiles/external/jpeg -iquote external/protobuf_archive -iquote bazel-out/host/genfiles/external/protobuf_archive -iquote external/com_googlesource_code_re2 -iquote bazel-out/host/genfiles/external/com_googlesource_code_re2 -iquote external/farmhash_archive -iquote bazel-out/host/genfiles/external/farmhash_archive -iquote external/fft2d -iquote bazel-out/host/genfiles/external/fft2d -iquote external/highwayhash -iquote bazel-out/host/genfiles/external/highwayhash -iquote external/png_archive -iquote bazel-out/host/genfiles/external/png_archive -iquote external/zlib_archive -iquote bazel-out/host/genfiles/external/zlib_archive -iquote external/local_config_cuda -iquote bazel-out/host/genfiles/external/local_config_cuda -isystem external/nsync/public -isystem bazel-out/host/genfiles/external/nsync/public -isystem external/bazel_tools/tools/cpp/gcc3 -isystem external/jemalloc/include -isystem bazel-out/host/genfiles/external/jemalloc/include -isystem external/eigen_archive -isystem bazel-out/host/genfiles/external/eigen_archive -isystem external/gif_archive/lib -isystem bazel-out/host/genfiles/external/gif_archive/lib -isystem external/protobuf_archive/src -isystem bazel-out/host/genfiles/external/protobuf_archive/src -isystem external/farmhash_archive/src -isystem bazel-out/host/genfiles/external/farmhash_archive/src -isystem external/png_archive -isystem bazel-out/host/genfiles/external/png_archive -isystem external/zlib_archive -isystem bazel-out/host/genfiles/external/zlib_archive -isystem external/local_config_cuda/cuda -isystem bazel-out/host/genfiles/external/local_config_cuda/cuda -isystem external/local_config_cuda/cuda/cuda/include -isystem bazel-out/host/genfiles/external/local_config_cuda/cuda/cuda/include -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -fno-canonical-system-headers -c tensorflow/stream_executor/cuda/cuda_dnn.cc -o bazel-out/host/bin/tensorflow/stream_executor/_objs/cuda_platform/tensorflow/stream_executor/cuda/cuda_dnn.pic.o)
RK3328平台android8.1编译报错
-fPIC -no-canonical-prefixes -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -O2 -g -fno-strict-aliasing --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 --sysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot -fstack-protector-strong -m64 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -target x86_64-linux-gnu -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8 -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/backward -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/x86_64-linux -std=gnu++14 -Wall -Werror -fPIE -D_USING_LIBCXX -DANDROID_STRICT -nostdinc++ -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates/Main.d -o out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates/Main.o frameworks/base/tools/validatekeymaps/Main.cpp" Traceback (most recent call last): File "prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++", line 4, in <module> import shlex ImportError: No module named shlex [ 0% 29/76723] host C++: conscrypt_ge...nts/src/gen/cpp/generate_constants.cpp FAILED: out/host/linux-x86/obj/EXECUTABLES/conscrypt_generate_constants_intermediates/constants/src/gen/cpp/generate_constants.o /bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++ -I external/conscrypt -I out/host/linux-x86/obj/EXECUTABLES/conscrypt_generate_constants_intermediates -I out/host/linux-x86/gen/EXECUTABLES/conscrypt_generate_constants_intermediates -I libnativehelper/include_deprecated \$(cat out/host/linux-x86/obj/EXECUTABLES/conscrypt_generate_constants_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include -c -fno-exceptions -Wno-multichar -Wa,--noexecstack -fPIC -no-canonical-prefixes -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -O2 -g -fno-strict-aliasing --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 --sysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot -fstack-protector-strong -m64 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -target x86_64-linux-gnu -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8 -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/backward -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/x86_64-linux -std=gnu++14 -fPIE -D_USING_LIBCXX -nostdinc++ -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF out/host/linux-x86/obj/EXECUTABLES/conscrypt_generate_constants_intermediates/constants/src/gen/cpp/generate_constants.d -o out/host/linux-x86/obj/EXECUTABLES/conscrypt_generate_constants_intermediates/constants/src/gen/cpp/generate_constants.o external/conscrypt/constants/src/gen/cpp/generate_constants.cpp" Traceback (most recent call last): File "prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++", line 4, in <module> import shlex ImportError: No module named shlex [ 0% 30/76723] host C++: protoc-gen-j...tools/streaming_proto/string_utils.cpp FAILED: out/host/linux-x86/obj/EXECUTABLES/protoc-gen-javastream_intermediates/string_utils.o /bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++ -I frameworks/base/tools/streaming_proto -I out/host/linux-x86/obj/EXECUTABLES/protoc-gen-javastream_intermediates -I out/host/linux-x86/gen/EXECUTABLES/protoc-gen-javastream_intermediates -I libnativehelper/include_deprecated \$(cat out/host/linux-x86/obj/EXECUTABLES/protoc-gen-javastream_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include -c -fno-exceptions -Wno-multichar -Wa,--noexecstack -fPIC -no-canonical-prefixes -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -O2 -g -fno-strict-aliasing --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 --sysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot -fstack-protector-strong -m64 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -target x86_64-linux-gnu -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8 -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/backward -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/x86_64-linux -std=gnu++14 -fPIE -D_USING_LIBCXX -DANDROID_STRICT -nostdinc++ -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF out/host/linux-x86/obj/EXECUTABLES/protoc-gen-javastream_intermediates/string_utils.d -o out/host/linux-x86/obj/EXECUTABLES/protoc-gen-javastream_intermediates/string_utils.o frameworks/base/tools/streaming_proto/string_utils.cpp" Traceback (most recent call last): File "prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++", line 4, in <module> import shlex ImportError: No module named shlex [ 0% 49/76723] build out/target/common/obj/all-event-log-tags.txt ninja: build stopped: subcommand failed. 17:38:37 ninja failed with: exit status 1 make: *** [run_soong_ui] Error 1 jda@jda-ubut12-ser:rk3328_8.1_box_190306$
关于只支持IE项目如何迁移实现支持Firefox
就是想把不符合规范的Javascript .css等增加对Firefox的支持。 如果一点一点改的话,很耗时还有测试的问题。 有什么可操作的方法来提高迁移的效率,请教各位大侠? 如果能有个工具,通过扫描代码找出不兼容的地方,然后再修改,操作性就强点。 就是类似FORTIFY的工具,不知能有没有这方面的工具 :arrow:
buffer overflow detected arm-linux-ar terminated
系统是ubuntu14.04 LTS gcc版本是4.4 步骤是这样: 先安装了binutils-2.15 ../configure --target=arm-linux --prefix=定义的安装目录 make make install 这个折腾了好久,成功安装好了 之后进行arm-linx-gcc制作 ../configure --target=arm-linux --prefix=定义的安装目录 --enable-language=c --disable-threads --disable-shared make 在make部分就出现了 *** buffer overflow detected ***: arm-linux-ar terminated ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x741cf)[0x2b19ddccf1cf] /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x2b19ddd66b2c] /lib/x86_64-linux-gnu/libc.so.6(+0x10a9f0)[0x2b19ddd659f0] /lib/x86_64-linux-gnu/libc.so.6(+0x109ef9)[0x2b19ddd64ef9] /lib/x86_64-linux-gnu/libc.so.6(_IO_default_xsputn+0xbc)[0x2b19ddcd754c] /lib/x86_64-linux-gnu/libc.so.6(_IO_padn+0xa0)[0x2b19ddccb510] /lib/x86_64-linux-gnu/libc.so.6(_IO_vfprintf+0x3c5d)[0x2b19ddca8bfd] /lib/x86_64-linux-gnu/libc.so.6(__vsprintf_chk+0x84)[0x2b19ddd64f84] /lib/x86_64-linux-gnu/libc.so.6(__sprintf_chk+0x7d)[0x2b19ddd64edd] arm-linux-ar[0x409524] arm-linux-ar[0x407781] arm-linux-ar[0x409dcd] arm-linux-ar[0x40d597] arm-linux-ar[0x40405f] arm-linux-ar[0x40453f] arm-linux-ar[0x405017] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x2b19ddc7cec5] arm-linux-ar[0x401cf9] ======= Memory map: ======== 00400000-00459000 r-xp 00000000 08:0b 61558 /home/kanata/armlinux/tools/bin/arm-linux-ar 00658000-00659000 r--p 00058000 08:0b 61558 /home/kanata/armlinux/tools/bin/arm-linux-ar 00659000-0065a000 rw-p 00059000 08:0b 61558 /home/kanata/armlinux/tools/bin/arm-linux-ar 0065a000-0065e000 rw-p 00000000 00:00 0 020f6000-0236a000 rw-p 00000000 00:00 0 [heap] 2b19dda36000-2b19dda59000 r-xp 00000000 08:0c 786434 /lib/x86_64-linux-gnu/ld-2.19.so 2b19dda59000-2b19dda5b000 rw-p 00000000 00:00 0 2b19dda5b000-2b19dda62000 r--s 00000000 08:0c 392357 /usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache 2b19dda62000-2b19dda6d000 rw-p 00000000 00:00 0 2b19dda6f000-2b19dda72000 rw-p 00000000 00:00 0 2b19ddc58000-2b19ddc59000 r--p 00022000 08:0c 786434 /lib/x86_64-linux-gnu/ld-2.19.so 2b19ddc59000-2b19ddc5a000 rw-p 00023000 08:0c 786434 /lib/x86_64-linux-gnu/ld-2.19.so 2b19ddc5a000-2b19ddc5b000 rw-p 00000000 00:00 0 2b19ddc5b000-2b19dde17000 r-xp 00000000 08:0c 786458 /lib/x86_64-linux-gnu/libc-2.19.so 2b19dde17000-2b19de016000 ---p 001bc000 08:0c 786458 /lib/x86_64-linux-gnu/libc-2.19.so 2b19de016000-2b19de01a000 r--p 001bb000 08:0c 786458 /lib/x86_64-linux-gnu/libc-2.19.so 2b19de01a000-2b19de01c000 rw-p 001bf000 08:0c 786458 /lib/x86_64-linux-gnu/libc-2.19.so 2b19de01c000-2b19de021000 rw-p 00000000 00:00 0 2b19de021000-2b19de703000 r--p 00000000 08:0c 138526 /usr/lib/locale/locale-archive 2b19de703000-2b19de719000 r-xp 00000000 08:0c 807277 /lib/x86_64-linux-gnu/libgcc_s.so.1 2b19de719000-2b19de918000 ---p 00016000 08:0c 807277 /lib/x86_64-linux-gnu/libgcc_s.so.1 2b19de918000-2b19de919000 rw-p 00015000 08:0c 807277 /lib/x86_64-linux-gnu/libgcc_s.so.1 7fffd333d000-7fffd3360000 rw-p 00000000 00:00 0 [stack] 7fffd33fe000-7fffd3400000 r-xp 00000000 00:00 0 [vdso] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] make[2]: *** [libgcc.a] 已放弃 (core dumped) make[2]: *** 正在删除文件“libgcc.a” make[2]:正在离开目录 `/home/kanata/armlinux/build-tools/build-gcc/gcc' make[1]: *** [libgcc.a] 错误 2 make[1]:正在离开目录 `/home/kanata/armlinux/build-tools/build-gcc/gcc' make: *** [all-gcc] 错误 2 请问有高手解决过这种问题吗,说下我知道的可能性: 1.gcc版本过高,好友有尝试低版本的gcc编译通过的 2.我尝试过安装了4.1,但是configure的时候出现的问题是找不到crt1.o,之后export了crt1.o的路径的时候又出现 -lgcc_s.o找不到的问题==` 想放弃的时候尝试过的替代方案是直接下载别人做好的arm-linux-gcc工具包,但是按照配置弄的时候,却出现: kanata@blue:~$ arm arm2hpdl arm-linux-gcc arm-linux-objdump arm-linux-addr2line arm-linux-gcc-3.4.5 arm-linux-ranlib arm-linux-ar arm-linux-gccbug arm-linux-readelf arm-linux-as arm-linux-gcov arm-linux-size arm-linux-c++ arm-linux-gprof arm-linux-strings arm-linux-c++filt arm-linux-ld arm-linux-strip arm-linux-cpp arm-linux-nm arm-linux-g++ arm-linux-objcopy kanata@blue:~$ arm-linux-gcc -v bash: /home/kanata/gcc-3.4.5-glibc-2.3.6/bin/arm-linux-gcc: 没有那个文件或目录 能有什么解决办法吗?
动态规划入门到熟悉,看不懂来打我啊
持续更新。。。。。。 2.1斐波那契系列问题 2.2矩阵系列问题 2.3跳跃系列问题 3.1 01背包 3.2 完全背包 3.3多重背包 3.4 一些变形选讲 2.1斐波那契系列问题 在数学上,斐波纳契数列以如下被以递归的方法定义:F(0)=0,F(1)=1, F(n)=F(n-1)+F(n-2)(n&gt;=2,n∈N*)根据定义,前十项为1, 1, 2, 3...
终于明白阿里百度这样的大公司,为什么面试经常拿ThreadLocal考验求职者了
点击上面↑「爱开发」关注我们每晚10点,捕获技术思考和创业资源洞察什么是ThreadLocalThreadLocal是一个本地线程副本变量工具类,各个线程都拥有一份线程私...
对计算机专业来说学历真的重要吗?
我本科学校是渣渣二本,研究生学校是985,现在毕业五年,校招笔试、面试,社招面试参加了两年了,就我个人的经历来说下这个问题。 这篇文章很长,但绝对是精华,相信我,读完以后,你会知道学历不好的解决方案,记得帮我点赞哦。 先说结论,无论赞不赞同,它本质就是这样:对于技术类工作而言,学历五年以内非常重要,但有办法弥补。五年以后,不重要。 目录: 张雪峰讲述的事实 我看到的事实 为什么会这样 ...
Java学习的正确打开方式
在博主认为,对于入门级学习java的最佳学习方法莫过于视频+博客+书籍+总结,前三者博主将淋漓尽致地挥毫于这篇博客文章中,至于总结在于个人,实际上越到后面你会发现学习的最好方式就是阅读参考官方文档其次就是国内的书籍,博客次之,这又是一个层次了,这里暂时不提后面再谈。博主将为各位入门java保驾护航,各位只管冲鸭!!!上天是公平的,只要不辜负时间,时间自然不会辜负你。 何谓学习?博主所理解的学习,它是一个过程,是一个不断累积、不断沉淀、不断总结、善于传达自己的个人见解以及乐于分享的过程。
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...
Python 植物大战僵尸代码实现(2):植物卡片选择和种植
这篇文章要介绍的是: - 上方植物卡片栏的实现。 - 点击植物卡片,鼠标切换为植物图片。 - 鼠标移动时,判断当前在哪个方格中,并显示半透明的植物作为提示。
防劝退!数据结构和算法难理解?可视化动画带你轻松透彻理解!
大家好,我是 Rocky0429,一个连数据结构和算法都不会的蒟蒻… 学过数据结构和算法的都知道这玩意儿不好学,没学过的经常听到这样的说法还没学就觉得难,其实难吗?真难! 难在哪呢?当年我还是个小蒟蒻,初学数据结构和算法的时候,在忍着枯燥看完定义原理,之后想实现的时候,觉得它们的过程真的是七拐八绕,及其难受。 在简单的链表、栈和队列这些我还能靠着在草稿上写写画画理解过程,但是到了数论、图...
【搞定 Java 并发面试】面试最常问的 Java 并发基础常见面试题总结!
本文为 SnailClimb 的原创,目前已经收录自我开源的 JavaGuide 中(61.5 k Star!【Java学习 面试指南】 一份涵盖大部分Java程序员所需要掌握的核心知识。欢迎 Star!)。 另外推荐一篇原创:终极推荐!可能是最适合你的Java学习路线 方法 网站 书籍推荐! Java 并发基础常见面试题总结 1. 什么是线程和进程? 1.1. 何为进程? 进程是程...
西游记团队中如果需要裁掉一个人,会先裁掉谁?
2019年互联网寒冬,大批企业开始裁员,下图是网上流传的一张截图: 裁员不可避免,那如何才能做到不管大环境如何变化,自身不受影响呢? 我们先来看一个有意思的故事,如果西游记取经团队需要裁员一名,会裁掉谁呢,为什么? 西游记团队组成: 1.唐僧 作为团队teamleader,有很坚韧的品性和极高的原则性,不达目的不罢休,遇到任何问题,都没有退缩过,又很得上司支持和赏识(直接得到唐太宗的任命,既给
shell脚本:备份数据库、代码上线
备份MySQL数据库 场景: 一台MySQL服务器,跑着5个数据库,在没有做主从的情况下,需要对这5个库进行备份 需求: 1)每天备份一次,需要备份所有的库 2)把备份数据存放到/data/backup/下 3)备份文件名称格式示例:dbname-2019-11-23.sql 4)需要对1天以前的所有sql文件压缩,格式为gzip 5)本地数据保留1周 6)需要把备份的数据同步到远程备份中心,假如...
iOS Bug 太多,苹果终于坐不住了!
开源的 Android 和闭源的 iOS,作为用户的你,更偏向哪一个呢? 整理 | 屠敏 出品 | CSDN(ID:CSDNnews) 毋庸置疑,当前移动设备操作系统市场中,Android 和 iOS 作为两大阵营,在相互竞争的同时不断演进。不过一直以来,开源的 Android 吸引了无数的手机厂商涌入其中,为其生态带来了百花齐放的盛景,但和神秘且闭源的 iOS 系统相比,不少网友...
神经⽹络可以计算任何函数的可视化证明
《Neural Networks and Deep Learning》读书笔记第四篇本章其实和前面章节的关联性不大,所以大可将本章作为小短文来阅读,当然基本的深度学习基础还是要有的。主要介绍了神经⽹络拥有的⼀种普遍性,比如说不管目标函数是怎样的,神经网络总是能够对任何可能的输入,其值(或者说近似值)是网络的输出,哪怕是多输入和多输出也是如此,我们大可直接得出一个结论:不论我们想要计算什么样的函数,...
聊聊C语言和指针的本质
坐着绿皮车上海到杭州,24块钱,很宽敞,在火车上非正式地聊几句。 很多编程语言都以 “没有指针” 作为自己的优势来宣传,然而,对于C语言,指针却是与生俱来的。 那么,什么是指针,为什么大家都想避开指针。 很简单, 指针就是地址,当一个地址作为一个变量存在时,它就被叫做指针,该变量的类型,自然就是指针类型。 指针的作用就是,给出一个指针,取出该指针指向地址处的值。为了理解本质,我们从计算机模型说起...
为什么你学不过动态规划?告别动态规划,谈谈我的经验
动态规划难吗?说实话,我觉得很难,特别是对于初学者来说,我当时入门动态规划的时候,是看 0-1 背包问题,当时真的是一脸懵逼。后来,我遇到动态规划的题,看的懂答案,但就是自己不会做,不知道怎么下手。就像做递归的题,看的懂答案,但下不了手,关于递归的,我之前也写过一篇套路的文章,如果对递归不大懂的,强烈建议看一看:为什么你学不会递归,告别递归,谈谈我的经验 对于动态规划,春招秋招时好多题都会用到动态...
程序员一般通过什么途径接私活?
二哥,你好,我想知道一般程序猿都如何接私活,我也想接,能告诉我一些方法吗? 上面是一个读者“烦不烦”问我的一个问题。其实不止是“烦不烦”,还有很多读者问过我类似这样的问题。 我接的私活不算多,挣到的钱也没有多少,加起来不到 20W。说实话,这个数目说出来我是有点心虚的,毕竟太少了,大家轻喷。但我想,恰好配得上“一般程序员”这个称号啊。毕竟苍蝇再小也是肉,我也算是有经验的人了。 唾弃接私活、做外...
字节跳动面试官这样问消息队列:分布式事务、重复消费、顺序消费,我整理了一下
你知道的越多,你不知道的越多 点赞再看,养成习惯 GitHub上已经开源 https://github.com/JavaFamily 有一线大厂面试点脑图、个人联系方式和人才交流群,欢迎Star和完善 前言 消息队列在互联网技术存储方面使用如此广泛,几乎所有的后端技术面试官都要在消息队列的使用和原理方面对小伙伴们进行360°的刁难。 作为一个在互联网公司面一次拿一次Offer的面霸...
如何安装 IntelliJ IDEA 最新版本——详细教程
IntelliJ IDEA 简称 IDEA,被业界公认为最好的 Java 集成开发工具,尤其在智能代码助手、代码自动提示、代码重构、代码版本管理(Git、SVN、Maven)、单元测试、代码分析等方面有着亮眼的发挥。IDEA 产于捷克,开发人员以严谨著称的东欧程序员为主。IDEA 分为社区版和付费版两个版本。 我呢,一直是 Eclipse 的忠实粉丝,差不多十年的老用户了。很早就接触到了 IDEA...
面试还搞不懂redis,快看看这40道面试题(含答案和思维导图)
Redis 面试题 1、什么是 Redis?. 2、Redis 的数据类型? 3、使用 Redis 有哪些好处? 4、Redis 相比 Memcached 有哪些优势? 5、Memcache 与 Redis 的区别都有哪些? 6、Redis 是单进程单线程的? 7、一个字符串类型的值能存储最大容量是多少? 8、Redis 的持久化机制是什么?各自的优缺点? 9、Redis 常见性...
大学四年自学走来,这些珍藏的「实用工具/学习网站」我全贡献出来了
知乎高赞:文中列举了互联网一线大厂程序员都在用的工具集合,涉及面非常广,小白和老手都可以进来看看,或许有新收获。
为什么要推荐大家学习字节码?
配套视频: 为什么推荐大家学习Java字节码 https://www.bilibili.com/video/av77600176/ 一、背景 本文主要探讨:为什么要学习 JVM 字节码? 可能很多人会觉得没必要,因为平时开发用不到,而且不学这个也没耽误学习。 但是这里分享一点感悟,即人总是根据自己已经掌握的知识和技能来解决问题的。 这里有个悖论,有时候你觉得有些技术没用恰恰是...
互联网公司的裁员,能玩出多少种花样?
裁员,也是一门学问,可谓博大精深!以下,是互联网公司的裁员的多种方法:-正文开始-135岁+不予续签的理由:千禧一代网感更强。95后不予通过试用期的理由:已婚已育员工更有责任心。2通知接下来要过苦日子,让一部分不肯同甘共苦的员工自己走人,以“兄弟”和“非兄弟”来区别员工。3强制996。员工如果平衡不了工作和家庭,可在离婚或离职里二选一。4不布置任何工作,但下班前必须提交千字工作日报。5不给活干+...
【超详细分析】关于三次握手与四次挥手面试官想考我们什么?
在面试中,三次握手和四次挥手可以说是问的最频繁的一个知识点了,我相信大家也都看过很多关于三次握手与四次挥手的文章,今天的这篇文章,重点是围绕着面试,我们应该掌握哪些比较重要的点,哪些是比较被面试官给问到的,我觉得如果你能把我下面列举的一些点都记住、理解,我想就差不多了。 三次握手 当面试官问你为什么需要有三次握手、三次握手的作用、讲讲三次三次握手的时候,我想很多人会这样回答: 首先很多人会先讲下握...
新程序员七宗罪
当我发表这篇文章《为什么每个工程师都应该开始考虑开发中的分析和编程技能呢?》时,我从未想到它会对读者产生如此积极的影响。那些想要开始探索编程和数据科学领域的人向我寻求建议;还有一些人问我下一篇文章的发布日期;还有许多人询问如何顺利过渡到这个职业。我非常鼓励大家继续分享我在这个旅程的经验,学习,成功和失败,以帮助尽可能多的人过渡到一个充满无数好处和机会的职业生涯。亲爱的读者,谢谢你。 -罗伯特。 ...
活到老,学到老,程序员也该如此
全文共2763字,预计学习时长8分钟 图片来源:Pixabay 此前,“网传阿里巴巴要求尽快实现P8全员35周岁以内”的消息闹得沸沸扬扬。虽然很快被阿里辟谣,但苍蝇不叮无缝的蛋,无蜜不招彩蝶蜂。消息从何而来?真相究竟怎样?我们无从而知。我们只知道一个事实:不知从何时开始,程序猿也被划在了“吃青春饭”行业之列。 饱受“996ICU”摧残后,好不容易“头秃了变强了”,即将步入为“高...
Vue快速实现通用表单验证
本文开篇第一句话,想引用鲁迅先生《祝福》里的一句话,那便是:“我真傻,真的,我单单知道后端整天都是CRUD,我没想到前端整天都是Form表单”。这句话要从哪里说起呢?大概要从最近半个月的“全栈工程师”说起。项目上需要做一个城市配载的功能,顾名思义,就是通过框选和拖拽的方式在地图上完成配载。博主选择了前后端分离的方式,在这个过程中发现:首先,只要有依赖jQuery的组件,譬如Kendoui,即使使用...
2019年Spring Boot面试都问了什么?快看看这22道面试题!
Spring Boot 面试题 1、什么是 Spring Boot? 2、Spring Boot 有哪些优点? 3、什么是 JavaConfig? 4、如何重新加载 Spring Boot 上的更改,而无需重新启动服务器? 5、Spring Boot 中的监视器是什么? 6、如何在 Spring Boot 中禁用 Actuator 端点安全性? 7、如何在自定义端口上运行 Sprin...
【图解】记一次手撕算法面试:字节跳动的面试官把我四连击了
字节跳动这家公司,应该是所有秋招的公司中,对算法最重视的一个了,每次面试基本都会让你手撕算法,今天这篇文章就记录下当时被问到的几个算法题,并且每个算法题我都详细着给出了最优解,下面再现当时的面试场景。看完一定让你有所收获 一、小牛试刀:有效括号 大部分情况下,面试官都会问一个不怎么难的问题,不过你千万别太开心,因为这道题往往可以拓展出更多有难度的问题,或者一道题看起来很简单,但是给出最优解,确实很...
关于裁员几点看法及建议
最近网易裁员事件引起广泛关注,昨天网易针对此事,也发了声明,到底谁对谁错,孰是孰非?我们作为吃瓜观众实在是知之甚少,所以不敢妄下定论。身处软件开发这个行业,近一两年来,对...
面试官:关于Java性能优化,你有什么技巧
通过使用一些辅助性工具来找到程序中的瓶颈,然后就可以对瓶颈部分的代码进行优化。 一般有两种方案:即优化代码或更改设计方法。我们一般会选择后者,因为不去调用以下代码要比调用一些优化的代码更能提高程序的性能。而一个设计良好的程序能够精简代码,从而提高性能。 下面将提供一些在JAVA程序的设计和编码中,为了能够提高JAVA程序的性能,而经常采用的一些方法和技巧。 1.对象的生成和大小的调整。 J...
【图解算法面试】记一次面试:说说游戏中的敏感词过滤是如何实现的?
版权声明:本文为苦逼的码农原创。未经同意禁止任何形式转载,特别是那些复制粘贴到别的平台的,否则,必定追究。欢迎大家多多转发,谢谢。 小秋今天去面试了,面试官问了一个与敏感词过滤算法相关的问题,然而小秋对敏感词过滤算法一点也没听说过。于是,有了下下事情的发生… 面试官开怼 面试官:玩过王者荣耀吧?了解过敏感词过滤吗?,例如在游戏里,如果我们发送“你在干嘛?麻痹演员啊你?”,由于“麻痹”是一个敏感词,...
相关热词 c#如何定义数组列表 c#倒序读取txt文件 java代码生成c# c# tcp发送数据 c#解决时间格式带星期 c#类似hashmap c#设置istbox的值 c#获取多线程返回值 c# 包含数字 枚举 c# timespan
立即提问