Skip to content

Paket 0.27.9 crashes #599

Closed
Closed

Description

@haf
$ mono tools/paket.exe install
Paket version 0.27.9.0
found: /Users/henrik.feldt/dev/logary/logary/paket.dependencies
* Assertion at processes.c:2595, condition `mp' not met

Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.Diagnostics.Process.ExitCode_internal (intptr) <0xffffffff>
  at System.Diagnostics.Process.get_HasExited () <0x00027>
  at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.get_HasExited () <0xffffffff>
  at Paket.Utils/[email protected] (System.Diagnostics.Process) <0x0001b>
  at Microsoft.FSharp.Collections.ArrayModule.loop@218-25<T> (Microsoft.FSharp.Core.FSharpFunc`2<T, bool>,T[],int,int) <0x00039>
  at Microsoft.FSharp.Collections.ArrayModule.Exists<T> (Microsoft.FSharp.Core.FSharpFunc`2<T, bool>,T[]) <0x0007f>
  at Paket.Utils.waitForUnlocked@211 (System.Diagnostics.Process,string,System.DateTime,System.TimeSpan,int) <0x000cf>
  at Paket.Utils.acquireLock@209 (string,System.Diagnostics.Process,string,System.DateTime,System.TimeSpan,int) <0x000e3>
  at Paket.Utils.RunInLockedAccessMode<a> (string,Microsoft.FSharp.Core.FSharpFunc`2<Microsoft.FSharp.Core.Unit, a>) <0x000f3>
  at Paket.Dependencies.Install (bool,bool,bool) <0x00067>
  at Paket.Program/[email protected] (Microsoft.FSharp.Core.Unit) <0x00297>
  at Paket.Program/[email protected] (Microsoft.FSharp.Core.Unit) <0x00236>
  at Paket.Program/[email protected] (Microsoft.FSharp.Core.Unit) <0x004a6>
  at <StartupCode$paket>.$Paket.Program.main@ () <0x00d79>
  at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

    0   mono                                0x000f2e96 mono_handle_native_sigsegv + 342
    1   mono                                0x001462ca sigabrt_signal_handler + 122
    2   libsystem_platform.dylib            0x99ee5deb _sigtramp + 43
    3   ???                                 0xffffffff 0x0 + 4294967295
    4   libsystem_c.dylib                   0x9311529c abort + 155
    5   mono                                0x002946b1 monoeg_log_default_handler + 129
    6   mono                                0x002947ab monoeg_assertion_message + 107
    7   mono                                0x00271a1e process_wait + 782
    8   mono                                0x002738c7 GetExitCodeProcess + 167
    9   mono                                0x001d7348 ves_icall_System_Diagnostics_Process_ExitCode_internal + 24
    10  ???                                 0x028ae6e4 0x0 + 42657508
    11  ???                                 0x028ae650 0x0 + 42657360
    12  ???                                 0x028ae5f8 0x0 + 42657272
    13  ???                                 0x028ae53c 0x0 + 42657084
    14  ???                                 0x028ae4f2 0x0 + 42657010
    15  ???                                 0x028ae498 0x0 + 42656920
    16  ???                                 0x028ada50 0x0 + 42654288
    17  ???                                 0x028ad604 0x0 + 42653188
    18  ???                                 0x028acd44 0x0 + 42650948
    19  ???                                 0x028acbe0 0x0 + 42650592
    20  ???                                 0x028abff8 0x0 + 42647544
    21  ???                                 0x028abce7 0x0 + 42646759
    22  ???                                 0x028aba27 0x0 + 42646055
    23  ???                                 0x007eab62 0x0 + 8301410
    24  ???                                 0x007eb2f6 0x0 + 8303350
    25  mono                                0x0004868f mono_jit_runtime_invoke + 751
    26  mono                                0x002077ff mono_runtime_invoke + 127
    27  mono                                0x0020d641 mono_runtime_exec_main + 401
    28  mono                                0x0020d3ea mono_runtime_run_main + 682
    29  mono                                0x000bddbd mono_jit_exec + 93
    30  mono                                0x000c0090 mono_main + 7904
    31  mono                                0x0003afa0 main + 768
    32  mono                                0x0003ac95 start + 53

Debug info from gdb:

Executing commands in '/tmp/mono-gdb-commands.aWSIVZ'.
(lldb)  process attach --pid 4286
error: Aborting reading of commands after command #0: 'process attach --pid 4286' failed with error: attach failed: process did not stop (no such process or permission problem?)
Aborting after_file command execution, command file: '/tmp/mono-gdb-commands.aWSIVZ' failed.

Activity

  1. forki commented on Feb 12, 2015

    @forki
    Member

    Da Fuq? Any ideas what this is? It's deep down in mono runtime, right?
    On Feb 12, 2015 5:37 PM, "Henrik Feldt" [email protected] wrote:

    $ mono tools/paket.exe install
    Paket version 0.27.9.0
    found: /Users/henrik.feldt/dev/logary/logary/paket.dependencies

    • Assertion at processes.c:2595, condition `mp' not met

    Stacktrace:

    at <0xffffffff>
    at (wrapper managed-to-native) System.Diagnostics.Process.ExitCode_internal (intptr) <0xffffffff>
    at System.Diagnostics.Process.get_HasExited () <0x00027>
    at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.get_HasExited () <0xffffffff>
    at Paket.Utils/[email protected] (System.Diagnostics.Process) <0x0001b>
    at Microsoft.FSharp.Collections.ArrayModule.loop@218-25 (Microsoft.FSharp.Core.FSharpFunc2<T, bool>,T[],int,int) <0x00039> at Microsoft.FSharp.Collections.ArrayModule.Exists<T> (Microsoft.FSharp.Core.FSharpFunc2<T, bool>,T[]) <0x0007f>
    at Paket.Utils.waitForUnlocked@211 (System.Diagnostics.Process,string,System.DateTime,System.TimeSpan,int) <0x000cf>
    at Paket.Utils.acquireLock@209 (string,System.Diagnostics.Process,string,System.DateTime,System.TimeSpan,int) <0x000e3>
    at Paket.Utils.RunInLockedAccessMode (string,Microsoft.FSharp.Core.FSharpFunc`2<Microsoft.FSharp.Core.Unit, a>) <0x000f3>
    at Paket.Dependencies.Install (bool,bool,bool) <0x00067>
    at Paket.Program/[email protected] (Microsoft.FSharp.Core.Unit) <0x00297>
    at Paket.Program/[email protected] (Microsoft.FSharp.Core.Unit) <0x00236>
    at Paket.Program/[email protected] (Microsoft.FSharp.Core.Unit) <0x004a6>
    at <StartupCode$paket>.$Paket.Program.main@ () <0x00d79>
    at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>

    Native stacktrace:

    0   mono                                0x000f2e96 mono_handle_native_sigsegv + 342
    1   mono                                0x001462ca sigabrt_signal_handler + 122
    2   libsystem_platform.dylib            0x99ee5deb _sigtramp + 43
    3   ???                                 0xffffffff 0x0 + 4294967295
    4   libsystem_c.dylib                   0x9311529c abort + 155
    5   mono                                0x002946b1 monoeg_log_default_handler + 129
    6   mono                                0x002947ab monoeg_assertion_message + 107
    7   mono                                0x00271a1e process_wait + 782
    8   mono                                0x002738c7 GetExitCodeProcess + 167
    9   mono                                0x001d7348 ves_icall_System_Diagnostics_Process_ExitCode_internal + 24
    10  ???                                 0x028ae6e4 0x0 + 42657508
    11  ???                                 0x028ae650 0x0 + 42657360
    12  ???                                 0x028ae5f8 0x0 + 42657272
    13  ???                                 0x028ae53c 0x0 + 42657084
    14  ???                                 0x028ae4f2 0x0 + 42657010
    15  ???                                 0x028ae498 0x0 + 42656920
    16  ???                                 0x028ada50 0x0 + 42654288
    17  ???                                 0x028ad604 0x0 + 42653188
    18  ???                                 0x028acd44 0x0 + 42650948
    19  ???                                 0x028acbe0 0x0 + 42650592
    20  ???                                 0x028abff8 0x0 + 42647544
    21  ???                                 0x028abce7 0x0 + 42646759
    22  ???                                 0x028aba27 0x0 + 42646055
    23  ???                                 0x007eab62 0x0 + 8301410
    24  ???                                 0x007eb2f6 0x0 + 8303350
    25  mono                                0x0004868f mono_jit_runtime_invoke + 751
    26  mono                                0x002077ff mono_runtime_invoke + 127
    27  mono                                0x0020d641 mono_runtime_exec_main + 401
    28  mono                                0x0020d3ea mono_runtime_run_main + 682
    29  mono                                0x000bddbd mono_jit_exec + 93
    30  mono                                0x000c0090 mono_main + 7904
    31  mono                                0x0003afa0 main + 768
    32  mono                                0x0003ac95 start + 53
    

    Debug info from gdb:

    Executing commands in '/tmp/mono-gdb-commands.aWSIVZ'.
    (lldb) process attach --pid 4286
    error: Aborting reading of commands after command #0: 'process attach --pid 4286' failed with error: attach failed: process did not stop (no such process or permission problem?)
    Aborting after_file command execution, command file: '/tmp/mono-gdb-commands.aWSIVZ' failed.

    —
    Reply to this email directly or view it on GitHub
    #599.

  2. haf commented on Feb 12, 2015

    @haf
    MemberAuthor
  3. haf commented on Feb 12, 2015

    @haf
    MemberAuthor

    How very annoying!

  4. forki commented on Feb 12, 2015

    @forki
    Member

    ouch. do you see a workaround for us in paket?

  5. haf commented on Feb 12, 2015

    @haf
    MemberAuthor

    Yes, there's one in the bug thread here: https://bugzilla.xamarin.com/show_bug.cgi?id=25720

    It will be in the next major mono release after 3.12. As a workaround, avoid
    calling HasExited on
    the current process, i.e.
    if (proc != Process.CurrentProcess)
        proc.HasExited ...
    

    Testing HEAD currently...

  6. haf commented on Feb 12, 2015

    @haf
    MemberAuthor

    Ok, one yak shaved, n to go.

  7. haf commented on Feb 12, 2015

    @haf
    MemberAuthor
  8. forki commented on Feb 12, 2015

    @forki
    Member

    could you please test 0.27.10?

  9. haf commented on Feb 12, 2015

    @haf
    MemberAuthor

    Afraid it's still not working...

  10. reopened this on Feb 13, 2015
  11. haf commented on Feb 13, 2015

    @haf
    MemberAuthor

    He's written about another way to do the workaround in the bugzilla thread... Perhaps that's a working workaround?

  12. forki commented on Feb 13, 2015

    @forki
    Member

    The only difference is to compare processes by ID, right? I added this and I reordered the conditions to reduce the no. of HasExited calls see fbd9c5b

    I'm not sure if that helps, but please look at 0.27.13.

    If that doesn't work we might use Process.ExitTime somehow.

  13. haf commented on Feb 13, 2015

    @haf
    MemberAuthor

    Yes, that did it! Thanks a heap! I can now leave some yaks unshaven!

  14. haf commented on Feb 13, 2015

    @haf
    MemberAuthor

    On the up-side, I might have instigated a reproducible-builds drive for the mono project ;)

  15. forki commented on Feb 13, 2015

    @forki
    Member

    Cool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions