Skip to content

pytorch issue ,SequentialImpl can not push back DroupoutImpl #1782

Description

@mullerhai
      private val sequential = new SequentialImpl()
      sequential.push_back(new DropoutImpl(dropout))

iceSupport] active device backend: cpu (requested=AUTO, cuda=false, mps=false, os=linux)
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007665b7153e37, pid=3256199, tid=3256200
#
# JRE version: Java(TM) SE Runtime Environment Oracle GraalVM 25+37.1 (25.0+37) (build 25+37-LTS-jvmci-b01)
# Java VM: Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 25+37.1 (25+37-LTS-jvmci-b01, mixed mode, sharing, tiered, jvmci, jvmci compiler, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C  [libjnitorch.so+0x1753e37]  torch::nn::AnyModuleHolder<torch::nn::DropoutImpl, at::Tensor>::forward(std::vector<torch::nn::AnyValue, std::allocator<torch::nn::AnyValue> >&&)+0x37
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -F%F -- %E" (or dumping to /home/muller/IdeaProjects/torch-rechub-scala/core.3256199)
#
# An error report file with more information is saved as:
# /home/muller/IdeaProjects/torch-rechub-scala/hs_err_pid3256199.log
[5.249s][warning][os] Loading hsdis library failed
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#


# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007665b7153e37, pid=3256199, tid=3256200
#
# JRE version: Java(TM) SE Runtime Environment Oracle GraalVM 25+37.1 (25.0+37) (build 25+37-LTS-jvmci-b01)
# Java VM: Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 25+37.1 (25+37-LTS-jvmci-b01, mixed mode, sharing, tiered, jvmci, jvmci compiler, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C  [libjnitorch.so+0x1753e37]  torch::nn::AnyModuleHolder<torch::nn::DropoutImpl, at::Tensor>::forward(std::vector<torch::nn::AnyValue, std::allocator<torch::nn::AnyValue> >&&)+0x37
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -F%F -- %E" (or dumping to /home/muller/IdeaProjects/torch-rechub-scala/core.3256199)
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  S U M M A R Y ------------

Command Line: -XX:ThreadPriorityPolicy=1 -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCIProduct -XX:+EnableJVMCI -XX:-UnlockExperimentalVMOptions -javaagent:/snap/intellij-idea/86/lib/idea_rt.jar=33353 -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 benchmarks.BenchmarkRunner

Host: 13th Gen Intel(R) Core(TM) i9-13900HX, 32 cores, 30G, Ubuntu 26.04 LTS
Time: Tue Jun 16 12:12:49 2026 CST elapsed time: 5.228522 seconds (0d 0h 0m 5s)

---------------  T H R E A D  ---------------

Current thread (0x000076987002f480):  JavaThread "main"             [_thread_in_native, id=3256200, stack(0x0000769874b00000,0x0000769874c00000) (1024K)]

Stack: [0x0000769874b00000,0x0000769874c00000],  sp=0x0000769874bfdc60,  free space=1015k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libjnitorch.so+0x1753e37]  torch::nn::AnyModuleHolder<torch::nn::DropoutImpl, at::Tensor>::forward(std::vector<torch::nn::AnyValue, std::allocator<torch::nn::AnyValue> >&&)+0x37
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.bytedeco.pytorch.SequentialImpl.forward(Lorg/bytedeco/pytorch/Tensor;)Lorg/bytedeco/pytorch/Tensor;+0
j  torchrec.basic.layers.MLP.forward(Lorg/bytedeco/pytorch/Tensor;)Lorg/bytedeco/pytorch/Tensor;+5
j  torchrec.models.ranking.LiquidNetWork.forward(Lscala/collection/immutable/Map;Lscala/collection/immutable/Map;)Lorg/bytedeco/pytorch/Tensor;+475
j  torchrec.trainers.CTRTrainer.fit$$anonfun$1(Ltorchrec/data/DataLoader;Lscala/Option;Ljava/lang/Object;I)V+1674
j  torchrec.trainers.CTRTrainer$$Lambda+0x0000000010387290.apply$mcVI$sp(I)V+17
J 2666 jvmci scala.runtime.java8.JFunction1$mcVI$sp.apply(Ljava/lang/Object;)Ljava/lang/Object; (14 bytes) @ 0x000076985e93c8a8 [0x000076985e93c3a0+0x0000000000000508]
J 2667 jvmci scala.collection.immutable.Range.foreach(Lscala/Function1;)V (43 bytes) @ 0x000076985e93fcf0 [0x000076985e93f180+0x0000000000000b70]
j  torchrec.trainers.CTRTrainer.fit(Ltorchrec/data/DataLoader;Lscala/Option;)V+42
j  benchmarks.BenchmarkRunner$.runLiquidNetWorkWithSequence(Lbenchmarks/BenchmarkConfig;Lscala/collection/immutable/List;Lscala/collection/immutable/List;)V+469
j  benchmarks.BenchmarkRunner$.runRankingBenchmark(Lbenchmarks/BenchmarkConfig;)Lbenchmarks/BenchmarkResult;+459
j  benchmarks.BenchmarkRunner$.runLiquidNetWorkBenchmark()Lbenchmarks/BenchmarkResult;+54
j  benchmarks.BenchmarkRunner$.main([Ljava/lang/String;)V+74
j  benchmarks.BenchmarkRunner.main([Ljava/lang/String;)V+4
v  ~StubRoutines::call_stub 0x000076985dfd2fa6

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions