[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothro
From: |
Eduardo Bustamante |
Subject: |
Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));" |
Date: |
Thu, 21 Jan 2021 15:27:19 -0800 |
On Thu, Jan 21, 2021 at 2:07 PM Mathias Steiger
<mathias.steiger@googlemail.com> wrote:
>
>
> As such bugs are likely related to buffer issues, maybe even in
> underlying APIs, and since they only surface after very lengthy
> mysterious sequences of commands - often just on single specific system
> installations - I wouldn't know how you can reproduce this in a test.
>
> Maybe you have specific testing frameworks for this, that would reduce
> the whole script to more basic components and which schematically remove
> or add complexity until the nature of the bug becomes more apparent?
>
> This seems to call for a specialist who is able to follow the problem
> into a far lower level of abstraction.
>
> As it stands now, I don't see how there is no way how this kind of
> execution can make any sense from a scripting POV.
>
> Of course in a giant script, all sorts of random things might happen.
> But this is not one of them.
You could run the script through "strace" or a similar command to see
what's writing that output and when. We could use that log output to
confirm that it is indeed Bash that is writing this out-of-order and
to a file descriptor that it shouldn't.
Greg pointed out earlier that the construct you're trying to use
doesn't work well when the shell is not Bash. Are you 100% confident
that it is /bin/bash that is running the script and not /bin/sh (and
thus maybe something like Dash?). And keep in mind that even Bash
running as /bin/sh is not quite the same as Bash running as /bin/bash.
- obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Mathias Steiger, 2021/01/21
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Chet Ramey, 2021/01/21
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Mathias Steiger, 2021/01/21
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Greg Wooledge, 2021/01/21
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Chet Ramey, 2021/01/21
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Mathias Steiger, 2021/01/21
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));",
Eduardo Bustamante <=
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Mathias Steiger, 2021/01/21
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Eduardo A . Bustamante López, 2021/01/22
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Tadeus Prastowo, 2021/01/22
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Oğuz, 2021/01/22
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Elias Haisch, 2021/01/22
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Chet Ramey, 2021/01/22
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Alex fxmbsw7 Ratchev, 2021/01/22
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Mathias Steiger, 2021/01/22
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Mathias Steiger, 2021/01/21
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Chet Ramey, 2021/01/21