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

scala.MatchError: 139 (of class java.lang.Integer) in RpmHelper:87 #318

Closed
jaceklaskowski opened this issue Aug 12, 2014 · 1 comment
Closed

Comments

@jaceklaskowski
Copy link
Contributor

It's for 0.7.4 version on

Linux xxx 2.6.18-348.18.1.el5 #1 SMP Fri Sep 6 12:37:18 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux

building a rpm.

rpm:packageBin finishes with the following exception:

scala.MatchError: 139 (of class java.lang.Integer)
        at com.typesafe.sbt.packager.rpm.RpmHelper$$anonfun$buildPackage$1.apply(RpmHelper.scala:87)
        at com.typesafe.sbt.packager.rpm.RpmHelper$$anonfun$buildPackage$1.apply(RpmHelper.scala:74)
        at sbt.IO$.withTemporaryDirectory(IO.scala:291)
        at com.typesafe.sbt.packager.rpm.RpmHelper$.buildPackage(RpmHelper.scala:74)
        at com.typesafe.sbt.packager.rpm.RpmHelper$.buildRpm(RpmHelper.scala:20)
        at com.typesafe.sbt.packager.rpm.RpmPlugin$$anonfun$rpmSettings$30.apply(RpmPlugin.scala:67)
        at com.typesafe.sbt.packager.rpm.RpmPlugin$$anonfun$rpmSettings$30.apply(RpmPlugin.scala:65)
        at scala.Function3$$anonfun$tupled$1.apply(Function3.scala:35)
        at scala.Function3$$anonfun$tupled$1.apply(Function3.scala:34)
        at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
        at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
        at sbt.std.Transform$$anon$4.work(System.scala:63)
        at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
        at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
        at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
        at sbt.Execute.work(Execute.scala:235)
        at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
        at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
        at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
        at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
        at java.lang.Thread.run(Thread.java:682)
[error] (rpm:packageBin) scala.MatchError: 139 (of class java.lang.Integer)

Since the executed rpmbuild SIGSEGV'ed it returned the exit code 139, and the pattern matching expects 0 or 1 as acceptable values. I guess it needs case _ instead (not case 1 for the failing case).

@muuki88
Copy link
Contributor

muuki88 commented Aug 12, 2014

Thanks for the report. Would you mind providing a pull request?
This should be an easy one :)

muuki88 added a commit that referenced this issue Sep 25, 2014
muuki88 added a commit that referenced this issue Sep 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants