<philipp64> yup. tried to follow the example of BIND_LIBXML2 and BIND_LIBSJON but somehow it's different. I just can't see why.
soxrok2212 has quit [Read error: No route to host]
soxrok2212 has joined #openwrt-devel
n3ph has quit [Read error: No route to host]
jow has quit [Remote host closed the connection]
jow has joined #openwrt-devel
<mirko> is it intended behaviour, that procd does not remove the pid-file when the spawned process ended?
<philipp64> uh... in most cases pidfiles only last as long as they're valid.
<mirko> in procd they appear to stick
<mirko> only way them being removed is to explicitly call stop() on the service
<philipp64> yeah, that sounds like a defect.
vincejv has quit [Ping timeout: 480 seconds]
Nilsro has joined #openwrt-devel
Nilsro_ has quit [Ping timeout: 480 seconds]
goliath has quit [Quit: SIGSEGV]
nixuser has quit [Read error: No route to host]
nixuser has joined #openwrt-devel
valku has quit [Quit: valku]
<philipp64> why is 13 commented out?
Daanct12 has joined #openwrt-devel
Daanct12 has quit [Quit: WeeChat 4.6.3]
Daanct12 has joined #openwrt-devel
sorinello has joined #openwrt-devel
n3ph has joined #openwrt-devel
<nbd> f00b4r0: managed to reproduce your issue
<nbd> what's really weird is that i have another ucode/bpf combination package that uses the api in pretty much the same way, and it works just fine
<f00b4r0> nbd: well at least it's not just me ;)
n3ph has quit [Ping timeout: 480 seconds]
<f00b4r0> nbd: I noticed that in the strace output, some calls appear to return EBADFD (iirc)
<f00b4r0> (when tc_attach() is called)
<owrt-images-builds> Build [#129](https://buildbot.openwrt.org/images/#/builders/70/builds/129) of `openwrt-24.10_mvebu/cortexa53` completed successfully.
robimarko has joined #openwrt-devel
n3ph has joined #openwrt-devel
n3ph has quit [Ping timeout: 480 seconds]
<nbd> f00b4r0: i figured it out
<f00b4r0> 👍
<nbd> when the reference to the bpf module is dropped, it calls bpf_object__close internally
<nbd> so all program references also become invalid
<nbd> it can be worked around in the script, but i will fix this in ucode-mod-bpf to get rid of this gotcha
<f00b4r0> i see, makes sense
<f00b4r0> if you could backport this fix to 24 (and ideally 23) that would be great
<nbd> i just need to make sure that maps and programs carry a reference to the module
<nbd> i can do a backport to 24, but not to 23
<nbd> because fixing this requires a recent version of ucode
<f00b4r0> i assume that if I add 'bpf_mod' to my ctx[devname] dict, it should Just Work™?
<nbd> which includes my gc changes
<f00b4r0> ok
<nbd> yes, that works
<f00b4r0> excellent. That's an easy workaround
<f00b4r0> thanks!
<f00b4r0> i see, the kernel message is still there (so unrelated) but it works indeed. Perfect
rudeowl has quit [Ping timeout: 480 seconds]
n3ph has joined #openwrt-devel
rudeowl has joined #openwrt-devel
<nbd> f00b4r0: please try the ucode-mod-bpf fix from my staging tree
<f00b4r0> nbd: ok, will do asap (currently running a long build)
<mirko> philipp64: because i made it up "exit" - it's a string, so arbitrary, but probably maps to some defined values down the road
n3ph_ has joined #openwrt-devel
n3ph has quit [Ping timeout: 480 seconds]
<f00b4r0> nbd: building your change. Meanwhile I've apparently hit another bug (?):
<f00b4r0> hmm wait
<f00b4r0> NOTABUG
<f00b4r0> nbd: fix appears not to work. tc_attach() returns failure
<f00b4r0> off to lunch
<nbd> odd. i tested it with a simple script based on your code
mark22k has quit [Quit: The Lounge - https://thelounge.chat]
mark22k has joined #openwrt-devel
<f00b4r0> oh bummer
<f00b4r0> Package ucode-mod-bpf (1) installed in root is up to date.
<f00b4r0> I didn't pay enough attention
<f00b4r0> second try
<f00b4r0> nbd: looks like this'll take more time. I cherry-picked your commit into my current buildtree for 24.10 but
<f00b4r0> Error: Unable to dlopen file '/usr/lib/ucode/bpf.so': Error relocating /usr/lib/ucode/bpf.so: ucv_resource_value_set: symbol not found
<f00b4r0> I guess I have to build master from scratch
<nbd> i need to backport some ucode changes to 24.10
<f00b4r0> ok. I've fired up a clean build, this'll take a while
Sawzall has quit [Read error: Connection reset by peer]
<f00b4r0> nbd: also I don't know if this is expected and/or something you care about but it's apparently impossible to build BPF packages from the SDK: bpf-headers fail to build
<f00b4r0> (from the release sdk, didn't try with master)
valku has joined #openwrt-devel
Sawzall has joined #openwrt-devel
<nbd> f00b4r0: i think that may have been fixed in master
plappermaul has joined #openwrt-devel
n3ph_ has quit [Ping timeout: 480 seconds]
<nbd> f00b4r0: pushed a backport of the ucode update to 24.10
plappermaul has quit [Remote host closed the connection]
<f00b4r0> heh ok, let me restart the build again :)
guerby has quit [Remote host closed the connection]
guerby has joined #openwrt-devel
n3ph has joined #openwrt-devel
mcbridematt7 has joined #openwrt-devel
mcbridematt has quit [Read error: Connection reset by peer]
mcbridematt7 is now known as mcbridematt
goliath has joined #openwrt-devel
n3ph has quit [Ping timeout: 480 seconds]
n3ph has joined #openwrt-devel
Daanct12 has quit [Quit: WeeChat 4.6.3]
<f00b4r0> nbd: fix works
minimal has joined #openwrt-devel
dermoth_ has joined #openwrt-devel
dermoth has quit [Ping timeout: 480 seconds]
dermoth_ is now known as dermoth
cmonroe has quit [Read error: Connection reset by peer]
cmonroe has joined #openwrt-devel
hgl has quit [Read error: Connection reset by peer]
goliath has quit [Quit: SIGSEGV]
hgl has joined #openwrt-devel
n3ph_ has joined #openwrt-devel
n3ph has quit [Ping timeout: 480 seconds]
SlimeyX has quit [Read error: Connection reset by peer]
SlimeyX has joined #openwrt-devel
n3ph_ has quit [Ping timeout: 480 seconds]
n3ph has joined #openwrt-devel
Fijxu_ has quit []
Fijxu has joined #openwrt-devel
anonim has joined #openwrt-devel
anonim has left #openwrt-devel [#openwrt-devel]
n3ph_ has joined #openwrt-devel
n3ph has quit [Ping timeout: 480 seconds]
robimarko has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
danitool has joined #openwrt-devel
sur5r has joined #openwrt-devel
<sur5r> Hi all. Quick question: When adding a patch to target/linux/.../patches-X.Y, how do I choose the number? Are there guidelines?
sorinello has quit [Ping timeout: 480 seconds]
n3ph_ has quit [Ping timeout: 480 seconds]
aiyion has quit [Remote host closed the connection]
aiyion has joined #openwrt-devel
n3ph has joined #openwrt-devel
dansan has quit [Ping timeout: 480 seconds]
n3ph has quit [Ping timeout: 480 seconds]
rudeowl is now known as Guest18043
rudeowl has joined #openwrt-devel
aiyion_ has joined #openwrt-devel
Guest18043 has quit [Ping timeout: 480 seconds]
aiyion has quit [Ping timeout: 480 seconds]
[Pokey] is now known as Pokey
Pokey has quit []
[Pokey] has joined #openwrt-devel
danitool has quit [Quit: Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos]