[Gambas-user] Process.Wait freeze

Jussi Lahtinen jussi.lahtinen at ...626...
Mon Aug 21 00:44:01 CEST 2017


Hmmm... somehow this:

hWatchFile = Open "/dev/urandom" For Read Watch

Triggers execution of Process_Read(), instead of File_Read()... something
changed to that?


Jussi

On Mon, Aug 21, 2017 at 1:38 AM, Jussi Lahtinen <jussi.lahtinen at ...626...>
wrote:

> Did you run the GambasTester? It didn't get better on my box, now it
> crashes randomly in two possible ways:
>
> mTest.Process_Read.1975: #53: Stream is closed
> mTest.Process_Read.1975 mTest.DoTests.1771 mTest.Main.2212
>
> Or:
>
> mTest.Process_Read.1975: #42: System error #9: Bad file descriptor
> mTest.Process_Read.1975 mTest.DoTests.1771 mTest.Main.2212
> *** Error in `GambasTestercmd': free(): invalid pointer:
> 0x000000000068edff ***
>
> Program received signal SIGABRT, Aborted.
> 0x00007ffff7a47c37 in raise () from /lib/x86_64-linux-gnu/libc.so.6
> (gdb) bt
> #0  0x00007ffff7a47c37 in raise () from /lib/x86_64-linux-gnu/libc.so.6
> #1  0x00007ffff7a4b028 in abort () from /lib/x86_64-linux-gnu/libc.so.6
> #2  0x00007ffff7a842a4 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
> #3  0x00007ffff7a9082e in ?? () from /lib/x86_64-linux-gnu/libc.so.6
> #4  0x00000000004207d3 in clear_pool () at gbx_string.c:290
> #5  STRING_clear_cache () at gbx_string.c:395
> #6  0x00000000004207ef in STRING_exit () at gbx_string.c:401
> #7  0x000000000041f5ff in main_exit (silent=silent at ...2861...=1 '\001') at
> gbx.c:157
> #8  0x0000000000404c0f in main (argc=1, argv=0x7fffffffe028) at gbx.c:458
>
>
>
> Jussi
>
>
>
>
>
> On Fri, Aug 18, 2017 at 2:18 PM, Benoît Minisini <
> gambas at ...1...> wrote:
>
>> Le 18/08/2017 à 12:47, Benoît Minisini via Gambas-user a écrit :
>>
>>> Le 14/08/2017 à 00:18, Jussi Lahtinen a écrit :
>>>
>>>> The freeze from gdb.
>>>>
>>>> #0  0x00007ffff7b068b3 in select () from /lib/x86_64-linux-gnu/libc.so.
>>>> 6
>>>> #1  0x000000000041e26d in WATCH_process (fd_end=fd_end at ...2861...=4,
>>>> fd_output=-1,
>>>>      timeout=timeout at ...2861...=0) at gbx_watch.c:685
>>>> #2  0x00000000004286d9 in CPROCESS_wait_for (process=0x688298,
>>>> timeout=0)
>>>>      at gbx_c_process.c:976
>>>> #3  0x000000000043250e in EXEC_native () at gbx_exec.c:1375
>>>> #4  0x000000000043cc4a in EXEC_loop () at gbx_exec_loop.c:1427
>>>> #5  0x00000000004316fb in EXEC_function_loop () at gbx_exec.c:931
>>>> #6  0x000000000043346f in EXEC_function_real () at gbx_exec.c:895
>>>> #7  EXEC_public_desc (class=<optimized out>, object=object at ...3545......=0x0,
>>>>      desc=desc at ...2861...=0x681aa8, nparam=nparam at ...2861...=0) at
>>>> gbx_exec.c:1618
>>>> #8  0x0000000000404b68 in main (argc=1, argv=0x7fffffffdfd8) at
>>>> gbx.c:416
>>>>
>>>>
>>>> Jussi
>>>>
>>>>
>>> I confirm the bug. I isolated the loop, and ran it 1000 times. It always
>>> freezes sooner or later on my machine. Shame!
>>>
>>>
>> OK, fixed in commit e1a5412f4ffb5ac7af62e78c7b93e2468152b13a.
>>
>> --
>> Benoît Minisini
>>
>
>



More information about the User mailing list