数据合法性判断问题引起的段错误分析
2025-10-17
昨天,报告了一例相册程序崩溃的问题,反汇编问题栈:(gdb) bt#0 __strlen_asimd () at ../sysdeps/aarch64/multiarch/strlen_asimd.S:96#1 0x000000555bf15dc0 in is_parent (parent=pa
using curl command with webdav
2025-10-21
WebDAV Web Distributed Authoring and Versioning是一个http 扩展 (extenion),可以实现文件的上传、下载等操作。比如创建文件夹,可以使用MKCOL。MKCOL /pub2/folder1/folder2/ HTTP/1.1Host: www.
GDB set sysroot can't load shared library
2025-10-21
使用GDB分析core dump,进入yocto的编译目录。执行set sysroot,结果发现一个共享库都没有加载。info sharedlibrary,直接没显示有共享库。原来是可执行文件的版本和core dump的不匹配。yuan@yuan-vm:/work/nas/minas/source/
nss systemd performace problem
2025-11-7
最近在做cgi响应时间优化。发现其中一个点是在读取系统用户信息的时候,比较慢,需要5ms级别。 其中一个是,获取用户所有组getgrouplist(),strace发现,它并没有去读取/etc/group,而是走了systemd的接口。connect(4, {sa_family=AF_
opencv default is BGR
2025-11-11
最近在使用libraw读取原图。static libraw_processed_image_t *get_raw_image(int stderr_fd, const char *path){ LibRaw RawProcessor; libraw_processed_image_t *image;
exiftool change exif tag of photo
2025-11-19
根据man exiftool Writing exiftool [OPTIONS] -TAG[+-<]=[VALUE]... FILE...修改GPS:exiftool -GPSLatitude=22.67 -GPSLongitude=110.30 20251113_yl.jpg修改
NetworkManager
2025-11-30
在很多Linux发行版上,NetworkManager都是事实上的网络管理工具。man 8 NetworkManager可以查看帮助文档。NetworkManager是一个网络管理守护程序,可以使用systemctl查看其状态:$ systemctl status NetworkManager● N
--whole-archive
2025-12-3
最近有个共享库libraw的编译,需要将一个额外的第三方库静态库编译进共享库。这个第三方库是gpr库,用来让libraw.so支持gpr格式的图片。第一步:编译gpr库gpr默认编译出来是静态库,但是没有加-fPIC选项,导致不能链接到共享库/usr/bin/ld: /work/nas/gpr-1.
pipe is stream but POSIX define PIPE_BUF
2025-12-5
根据man 7 pipeThe communication channel provided by a pipe is a byte stream: there is no concept of message boundaries.但是POSIX定义了:POSIX.1 says that w
ssh-copy-id
2025-12-7
使用ssh-copy-id命令可以把本地的公钥添加到服务器这样就不用每次都输入密码了。ssh-copy-id root@linuxdev.cchttps://www.digitalocean.com/community/tutorials/how-to-configure-ssh-key-based
Copyright © linuxdev.cc 2017-2024. Some Rights Reserved.