Comments (5)
Invalid Version reported. DISTRIB_REVISION='2.14.51'
Is this from a clean repository?
from openwrt.
Invalid Release reported. DISTRIB_RELEASE='22.03.3'
Is this from a clean repository?
from openwrt.
Invalid Target/Subtarget reported. DISTRIB_TARGET='rockchip/armv8'
Is this from a supported device?
from openwrt.
Can you repeat on mainstream stable OpenWRT and copy proper release tags?
from openwrt.
My problem has been resolved. My code has a mechanism that attempts to subscribe periodically after a subscription failure. The same struct ubus_subscriber has called API ubus_register_subscriber() multiple times, which can cause structural abnormalities in the avl tree
Just a suggestion, would it be better to do a check before insertion
diff --git a/libubus-obj.c b/libubus-obj.c
index 29cbb2b..aec0a4d 100644
--- a/libubus-obj.c
+++ b/libubus-obj.c
@@ -169,7 +169,9 @@ static void ubus_add_object_cb(struct ubus_request *req, int type, struct blob_a
if (attrbuf[UBUS_ATTR_OBJTYPE])
obj->type->id = blob_get_u32(attrbuf[UBUS_ATTR_OBJTYPE]);
-
+ /*
+ * Suggest: check if avl node exists in the AVL tree? and if it exists, would it be better to remove it first?
+ */
obj->avl.key = &obj->id;
avl_insert(&req->ctx->objects, &obj->avl);
from openwrt.
Related Issues (20)
- x86/64: Can't boot with kernel 6.6 in UEFI mode
- resizing root partition on raspberry pi 5 causes failure to boot HOT 5
- ipq40xx: `auc` upgrade - SNAPSHOT not possible HOT 12
- imagebuilder for x86/64 not creating image successfully HOT 11
- newer Snapshot than r26434 on Z800AX causes system to be unresponsive HOT 69
- NAT66 bad performance on OpenWrt master HOT 12
- Symbolic link permission wrong on ext4
- Incorrect dev->cpu_port value for some routers with switches from the rtl8367, rtl8367b family HOT 2
- mount_root does not work for ubi devices HOT 3
- losetup crashes kernel HOT 9
- ramps: eth1 fails to initialise on Edgerouter X HOT 6
- qualcommax: NBG7815: tftpbooted initramfs image does not work properly HOT 8
- apk: info field 'version' has invalid value: package version is invalid HOT 11
- Exception stack in dmesg during R7800 booting (snapshot kernel 6.6 with mainline ath10 firmware/driver) HOT 6
- MBIM Cellular Pin Code Rejected HOT 29
- Newer snapshots for Mediatek Filogic seems to be broken! HOT 8
- libext2fs.so wrong library path to libc HOT 10
- zsh: termcap.c:45:14: error: conflicting types for 'boolcodes'; have 'char *[]' HOT 7
- ASUS RT-AX53U doesn't survive first reboot HOT 19
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openwrt.