Hallo zusammen,
nachdem epghttpd nun startet (s. [Solved] epghttpd mit Problemen beim Start (Kubuntu 24.04)), ist das Speichern von Timern nicht möglich. Dabei ist es egal, ob neue Timer oder beim Ändern eines Timers.
Ich bin jetzt erneut ratlos, ob dies an epghttpd liegt, oder an der libpython Version von Ubuntu 24.04. Konnte bisher nur so weit schauen, dass der Backtrace immer "gleich" aussieht, unabhängig davon, ob ein neuer Timer angelegt wird, wie viele Timer bereits existieren, ob ich einen bestehenden Timer ändere ... habe gedacht, dass ggfs. sonst der Paramter size bei _PyThreadState_PushFrame (tstate=tstate@entry=0x0, size=28) mal mit einem anderen Wert als 28 belegt sein würde ... size=28.
Ein tstate=0x0 sieht auch nicht so richtig gesund aus?!
Vielleicht hat jemand ähnliche Probleme (gehabt) oder sonst eine Idee, ob es wirklich ganz tief im System verbuddelt ist, oder "nur" an der Übergabe des Timers in die von epghttpd verwendeten Bibliotheken:
chriss@host:/$ coredumpctl debug
PID: 11214 (epghttpd)
UID: 0 (root)
GID: 0 (root)
Signal: 11 (SEGV)
Timestamp: Sat 2024-06-01 16:24:51 CEST (4min 7s ago)
Command Line: /usr/local/bin/epghttpd -c /etc/epgd
Executable: /usr/local/bin/epghttpd
Control Group: /user.slice/user-1000.slice/user@1000.service/app.slice/app-org.kde.konsole-94e053523fbd4473813a32f18b53f20b.scope
Unit: user@1000.service
User Unit: app-org.kde.konsole-94e053523fbd4473813a32f18b53f20b.scope
Slice: user-1000.slice
Owner UID: 1000 (chriss)
Boot ID: aefd719ccdc24995bd044790d9116a32
Machine ID: 3e19bda874a04977b50b2196499bd616
Hostname: HTPC
Storage: /var/lib/systemd/coredump/core.epghttpd.0.aefd719ccdc24995bd044790d9116a32.11214.1717251891000000.zst (present)
Size on Disk: 1.3M
Message: Process 11214 (epghttpd) of user 0 dumped core.
Module libzstd.so.1 from deb libzstd-1.5.5+dfsg2-2build1.amd64
Module libsystemd.so.0 from deb systemd-255.4-1ubuntu8.amd64
Module libarchive.so.13 from deb libarchive-3.7.2-2.amd64
Stack trace of thread 11217:
#0 0x000079ef50af78d5 n/a (libpython3.12.so.1.0 + 0x2f78d5)
#1 0x000079ef50a9c936 n/a (libpython3.12.so.1.0 + 0x29c936)
#2 0x000079ef50a9d356 n/a (libpython3.12.so.1.0 + 0x29d356)
#3 0x000079ef50984b76 PyObject_CallObject (libpython3.12.so.1.0 + 0x184b76)
#4 0x00005582668a9e50 _ZN6Python7executeEP8cDbTableiPKc (epghttpd + 0xf7e50)
#5 0x0000558266836c2c _ZN9cEpgHttpd13storeTimerJobEP6json_tS1_ (epghttpd + 0x84c2c)
#6 0x0000558266850227 _ZN9cEpgHttpd15performPostDataEPKcP12MemoryStruct (epghttpd + 0x9e227)
#7 0x0000558266850b4d _ZN9cEpgHttpd10dispatcherEPvP14MHD_ConnectionPKcS4_S4_S4_PmPS0_ (epghttpd + 0x9eb4d)
#8 0x000079ef5118272e n/a (libmicrohttpd.so.12 + 0xb72e)
#9 0x000079ef511851e8 n/a (libmicrohttpd.so.12 + 0xe1e8)
#10 0x000079ef511885e8 n/a (libmicrohttpd.so.12 + 0x115e8)
#11 0x000079ef51189c61 n/a (libmicrohttpd.so.12 + 0x12c61)
#12 0x000079ef51193035 n/a (libmicrohttpd.so.12 + 0x1c035)
#13 0x000079ef4f89ca94 start_thread (libc.so.6 + 0x9ca94)
#14 0x000079ef4f929c3c __clone3 (libc.so.6 + 0x129c3c)
Stack trace of thread 11214:
#0 0x000079ef4f8ecadf __GI___clock_nanosleep (libc.so.6 + 0xecadf)
#1 0x000079ef4f8f9a27 __GI___nanosleep (libc.so.6 + 0xf9a27)
#2 0x000079ef4f90ec63 __sleep (libc.so.6 + 0x10ec63)
#3 0x000055826684edc5 _ZN9cEpgHttpd4loopEv (epghttpd + 0x9cdc5)
#4 0x0000558266852798 main (epghttpd + 0xa0798)
#5 0x000079ef4f82a1ca __libc_start_call_main (libc.so.6 + 0x2a1ca)
#6 0x000079ef4f82a28b __libc_start_main_impl (libc.so.6 + 0x2a28b)
#7 0x0000558266835085 _start (epghttpd + 0x83085)
ELF object binary architecture: AMD x86-64
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/local/bin/epghttpd -c /etc/epgd'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x000079ef50af78d5 in _PyThreadState_HasStackSpace (size=28, tstate=0x0) at ../Include/internal/pycore_frame.h:248
248 return tstate->datastack_top != NULL &&
[Current thread is 1 (Thread 0x79ef4bc006c0 (LWP 11217))]
(gdb) bt
#0 0x000079ef50af78d5 in _PyThreadState_HasStackSpace (size=28, tstate=0x0) at ../Include/internal/pycore_frame.h:248
#1 _PyThreadState_PushFrame (tstate=tstate@entry=0x0, size=28) at ../Python/pystate.c:2972
#2 0x000079ef50a9c936 in _PyEvalFramePushAndInit (tstate=0x0, func=0x79ef4c1da2a0, locals=0x0, args=0x0, argcount=0, kwnames=0x0) at ../Python/ceval.c:1589
#3 0x000079ef50a9d356 in _PyEval_Vector (tstate=0x0, func=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=<optimized out>, kwnames=<optimized out>) at ../Python/ceval.c:1677
#4 0x000079ef50984b76 in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=0, args=0x0, callable=0x79ef4c1da2a0, tstate=0x0) at ../Include/internal/pycore_call.h:92
#5 _PyObject_CallNoArgsTstate (func=0x79ef4c1da2a0, tstate=0x0) at ../Include/internal/pycore_call.h:99
#6 PyObject_CallObject (callable=0x79ef4c1da2a0, args=0x0) at ../Objects/call.c:469
#7 0x00005582668a9e50 in Python::execute (this=0x5582670edb50, eventsDb=0x5582671fb0d0, namingmode=1, tmplExpression=0x79ef440098f0 "") at python.c:310
#8 0x0000558266836c2c in cEpgHttpd::storeTimerJob (this=0x5582670ecd00, jInData=0x79ef440093a0, response=0x79ef440092c0) at webstore.c:309
#9 0x0000558266850227 in cEpgHttpd::performPostData (this=0x5582670ecd00, url=0x79ef44000e05 "/data/save-timer", data=0x79ef4bbfe8e0) at httpd.c:1626
#10 0x0000558266850b4d in cEpgHttpd::dispatcher (cls=0x0, tcp=0x79ef44000b70, url=0x79ef44000e05 "/data/save-timer", method=0x79ef44000e00 "POST", version=0x79ef44000e16 "HTTP/1.1", upload_data=0x0, upload_data_size=0x79ef4bbfecb0, con_cls=0x79ef44000c28) at httpd.c:1779
#11 0x000079ef5118272e in call_connection_handler (connection=connection@entry=0x79ef44000b70) at /build/libmicrohttpd-XeOg5r/libmicrohttpd-1.0.0/src/microhttpd/connection.c:4366
#12 0x000079ef511851e8 in MHD_connection_handle_idle (connection=connection@entry=0x79ef44000b70) at /build/libmicrohttpd-XeOg5r/libmicrohttpd-1.0.0/src/microhttpd/connection.c:7329
#13 0x000079ef511885e8 in call_handlers (con=con@entry=0x79ef44000b70, read_ready=<optimized out>, write_ready=<optimized out>, force_close=false) at /build/libmicrohttpd-XeOg5r/libmicrohttpd-1.0.0/src/microhttpd/daemon.c:1320
#14 0x000079ef51189c61 in MHD_epoll (daemon=0x55826749c770, millisec=<optimized out>) at /build/libmicrohttpd-XeOg5r/libmicrohttpd-1.0.0/src/microhttpd/daemon.c:5766
#15 0x000079ef51193035 in MHD_polling_thread (cls=0x55826749c770) at /build/libmicrohttpd-XeOg5r/libmicrohttpd-1.0.0/src/microhttpd/daemon.c:6025
#16 0x000079ef4f89ca94 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447
#17 0x000079ef4f929c3c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
(gdb)
Display More
Vielen Dank im Voraus und beste Grüße,
Chriss