Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manually defining uninterpreted functions can lead to core dump #25

Closed
cascremers opened this issue Apr 5, 2012 · 2 comments
Closed
Labels

Comments

@cascremers
Copy link
Member

Here's a nice core dump:

The reason does not seem to be the 'let'. Instead, the dump is caused by me using H1/H2 as below. This causes Maude to bork (in some examples silently, in this one with an error) but Tamarin core dumps.

theory NAXOS_eCK
begin

builtin: diffie-hellman

functions: H1/1
functions: H2/1

section{* NAXOS *}

rule generate_ltk:
   let pkA = 'g'^~lkA
   in
   [ Fr(~lkA) ] -->
   [ !Ltk( $A, ~lkA ), !Pk( $A, pkA ), Out( pkA ) ]


rule Resp_1:
  let pkI    = ('g'^~lkI)
      exR    = H1(< ~ekR, ~lkR >)
      hkr    = 'g'^'4'
      seskey = H2(< pkI^exR, X^~lkR, X^'6', $I, $R >)
  in
   [ In( X ), Fr( ~ekR ), !Ltk($R, ~lkR), !Pk($I, pkI) ]
   --[ SidR_1( ~ekR, $I, $R, X, hkr, seskey) ]->
   [ Out( hkr ),
     !Ephk(~ekR),
     !Sessk( ~ekR, seskey) ]

end
@cascremers
Copy link
Member Author

Added note: replacing H1 and H2 by 'h' removes the problem.

@beschmi
Copy link
Member

beschmi commented Apr 5, 2012

Our parser for maude output does not expect numbers in the function symbols. This will be fixed together with
issue #6.

No idea why GHC crashes with:

tamarin-prover: internal error: scavenge_stack: weird activation record found on stack: 12352
(GHC version 7.4.1 for i386_apple_darwin)
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
Abort trap: 6

@beschmi beschmi closed this as completed Apr 5, 2012
deni-begaj pushed a commit to deni-begaj/tamarin-prover that referenced this issue Oct 21, 2019
Installation notes: Tamarin via Linuxbrew
cascremers pushed a commit to cascremers/tamarin-prover that referenced this issue May 15, 2024
Installation notes: Tamarin via Linuxbrew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants