Re: [microhttpd] POST request with body can't get return message

Daniel-Constantin Mierla via sr-users <[email protected]>
Newsgroups gmane.comp.voip.ser
Message-ID <[email protected]>
Can you try with latest git master branch? I pushed a commit that should
fix it.

Cheers,
Daniel

On 01.07.25 09:30, mm e via sr-users wrote:
> #0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
>         tid = <optimized out>
>         ret = 0
>         pd = <optimized out>
>         old_mask = {__val = {0}}
>         ret = <optimized out>
> #1  0x00007fd55e73df4f in __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
> No locals.
> #2  0x00007fd55e6eefb2 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
>         ret = <optimized out>
> #3  0x00007fd55e6d9472 in __GI_abort () at ./stdlib/abort.c:79
>         save_stage = 1
>         act = {__sigaction_handler = {sa_handler = 0x20, sa_sigaction = 0x20}, sa_mask = {__val = {140553308004386, 140551153453008, 0, 140551153452624, 140554389362520, 0, 25, 4222451713, 140551059937392, 140551059937392, 140551059937392, 140551059937392, 
>               140551059937417, 140551059937417, 140551059937392, 140551059937417}}, sa_flags = 0, sa_restorer = 0x0}
> #4  0x00007fd55e73242f in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7fd55e84c459 "%s\n") at ../sysdeps/posix/libc_fatal.c:156
>         ap = {{gp_offset = 24, fp_offset = 0, overflow_arg_area = 0x7fd49d9307e0, reg_save_area = 0x7fd49d930770}}
>         fd = <optimized out>
>         list = <optimized out>
>         nlist = <optimized out>
>         cp = <optimized out>
> #5  0x00007fd55e74786a in malloc_printerr (str=str@entry=0x7fd55e84f098 "free(): double free detected in tcache 2") at ./malloc/malloc.c:5660
> No locals.
> #6  0x00007fd55e749af6 in _int_free (av=0x7fd498000030, p=0x7fd498008e50, have_lock=have_lock@entry=0) at ./malloc/malloc.c:4469
>         tmp = <optimized out>
>         cnt = <optimized out>
>         e = 0x7fd498008e60
>         tc_idx = 1
>         size = 48
>         fb = <optimized out>
>         nextchunk = <optimized out>
>         nextsize = <optimized out>
>         nextinuse = <optimized out>
>         prevsize = <optimized out>
>         bck = <optimized out>
>         fwd = <optimized out>
>         __PRETTY_FUNCTION__ = "_int_free"
> #7  0x00007fd55e74bf4f in __GI___libc_free (mem=<optimized out>) at ./malloc/malloc.c:3385
>         ar_ptr = <optimized out>
>         p = <optimized out>
>         err = 0
> #8  0x00007fd51dfead8a in ksr_microhttpd_request (cls=0x7fd51dfee470, connection=0x7fd4980018e0, url=0x7fd498008ef5 "/", method=0x7fd498008ef0 "POST", version=0x7fd498008ef7 "HTTP/1.1", upload_data=0x0, upload_data_size=0x7fd49d930aa0, ptr=0x7fd498001938)
>     at microhttpd_mod.c:540
>         keng = 0x0
>         evname = {s = 0x7fd51dfed262 "microhttpd:request", len = 18}
>         fmsg = 0x0
>         ctx = {rec_lev = 0, run_flags = 0, last_retcode = 1, jmp_env = {{__jmpbuf = {140551059936736, -3320673237865807826, 0, 94791100982704, 25, 140551059967884, -3320673237825961938, 140551153453520}, __mask_was_saved = -1651307968, __saved_mask = {
>                 __val = {0, 0, 140551153453632, 0, 1751382677, 0, 140551059967872, 17, 140554389652414, 0, 140554389467293, 0, 140551059937504, 27, 29, 140551059937200}}}}}
> --Type <RET> for more, q to quit, c to continue without paging--
>         rtb = 503239266
>         cstream = 0x7fd498008ed0
>         __func__ = "ksr_microhttpd_request"
> #9  0x00007fd51dfb61ac in ?? () from /lib/x86_64-linux-gnu/libmicrohttpd.so.12
> No symbol table info available.
> #10 0x00007fd51dfb82f8 in ?? () from /lib/x86_64-linux-gnu/libmicrohttpd.so.12
> No symbol table info available.
> #11 0x00007fd51dfbac9f in ?? () from /lib/x86_64-linux-gnu/libmicrohttpd.so.12
> No symbol table info available.
> #12 0x00007fd51dfbee96 in ?? () from /lib/x86_64-linux-gnu/libmicrohttpd.so.12
> No symbol table info available.
> #13 0x00007fd51dfc06c9 in ?? () from /lib/x86_64-linux-gnu/libmicrohttpd.so.12
> No symbol table info available.
> #14 0x00007fd51dfc0d01 in ?? () from /lib/x86_64-linux-gnu/libmicrohttpd.so.12
> No symbol table info available.
> #15 0x00007fd55e73c1f5 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
>         ret = <optimized out>
>         pd = <optimized out>
>         out = <optimized out>
>         unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140551153456832, 3333686745318080558, -128, 0, 140729673304432, 140551145066496, -3320673237580595154, -3321089672817491922}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, 
>               cleanup = 0x0, canceltype = 0}}}
>         not_first_call = <optimized out>
> #16 0x00007fd55e7bc89c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions -- [email protected]
> To unsubscribe send an email to [email protected]
> Important: keep the mailing list in the recipients, do not reply only to the sender!

-- 
Daniel-Constantin Mierla (@ asipto.com)
twitter.com/miconda -- linkedin.com/in/miconda
Kamailio Consultancy, Training and Development Services -- asipto.com

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the sender!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.