contiki-ng / cooja

This is a fork of the Cooja network simulator from contiki-os/contiki
Other
30 stars 48 forks source link

SIGSEGV since latest commits #70

Closed tinstructor closed 2 years ago

tinstructor commented 2 years ago

Up until the previous merge commit everything was working fine. However, since yesterday trying to use Cooja with Contiki-NG results in a SIGSEGV upon trying to create any sort of mote type. (This literally happens every time)

   [java]  INFO [AWT-EventQueue-1] (Simulation.java:431) - Simulation random seed: 123456
   [java]  INFO [AWT-EventQueue-1] (CompileContiki.java:141) - > make clean TARGET=cooja 
   [java]  INFO [AWT-EventQueue-1] (CompileContiki.java:141) - > make twofaced-node.cooja TARGET=cooja 
   [java] #
   [java] # A fatal error has been detected by the Java Runtime Environment:
   [java] #
   [java] #  SIGSEGV (0xb) at pc=0xf72f9377, pid=68, tid=0xc25ffb40
   [java] #
   [java] # JRE version: OpenJDK Runtime Environment (8.0_275-b01) (build 1.8.0_275-8u275-b01-0ubuntu1~18.04-b01)
   [java] # Java VM: OpenJDK Server VM (25.275-b01 mixed mode linux-x86 )
   [java] # Problematic frame:
   [java] # V  [libjvm.so+0x5c8377]
   [java] #
   [java] # Core dump written. Default location: /home/user/contiki-ng/tools/cooja/build/core or core.68
   [java] #
   [java] # An error report file with more information is saved as:
   [java] # /home/user/contiki-ng/tools/cooja/build/hs_err_pid68.log
   [java] #
   [java] # If you would like to submit a bug report, please visit:
   [java] #   http://bugreport.java.com/bugreport/crash.jsp
   [java] #
   [java] Java Result: 134
alexrayne commented 2 years ago

Hallow! ive used that patch in some differ edition i have no such problem with that. You can try merge it, and check.

tinstructor commented 2 years ago

Hallow! ive used that patch in some differ edition i have no such problem with that. You can try merge it, and check.

You don't understand, indeed that patch works, but the commits that were made yesterday don't

tinstructor commented 2 years ago

@alexrayne try using the latest commit and you'll see that there is a problem. I wonder how this got verified and merged because it's pretty obvious that it doesn't work. In order to replicate the issue: go to tools\cooja in your local contiki-ng repo and do the following:

~/contiki-ng/tools/cooja$ git checkout master
~/contiki-ng/tools/cooja$ git pull origin master

Then, try to simulate examples/6tisch/simple-node/rpl-tsch-cooja.csc and upon trying to click create, Cooja will crash with a SIGSEGV. This happens with other sim files as well.

alexrayne commented 2 years ago

You don't understand, indeed that patch works, but the commits that were made yesterday don't

i understand you precisely, and wander - is your SIGEVcomes on my merge too?

i not works on oficial cooja edition, since it have broken build of cooja projects on my docker. therefore i a bit patch builder forms, and make files. But my edition works fine, so i cant even check your issue.

alexrayne commented 2 years ago

This happens with other sim files as well

do you run simulation on 64bit platform? As far as i know, contiki simulations have crushed on 64bit platforms, only 32bit work. therefore i works in contiki docker 32bit image.

I see sometimes patches for 64bit support, but have no any idea - doe them solves 64bit problem, or not.

alexrayne commented 2 years ago

do you run simulation on 64bit platform?

[java] # Java VM: OpenJDK Server VM (25.275-b01 mixed mode linux-x86 )

ok, looks you run x86

tinstructor commented 2 years ago

I always run the latest release of Cooja in a recent (stable) Docker container. The Docker container runs Cooja in 32 bit if I'm not mistaken (well it should, since that's the official way to do it). Anyhow, I report this issue running an unmodified version of Cooja from an unmodified Docker container and an unmodified example from an unmodified Contiki-NG develop branch. One would think this should work as expected, am I right? That's about as basic a scenario as it can get ...

tinstructor commented 2 years ago

@joakimeriksson Could you please look into this, since you merged the latest commits, or @pjonsson since you wrote them. Try running examples/6tisch/simple-node/rpl-tsch-cooja.csc with the most recent version of Cooja by performing open and reconfigure. After compiling for the first mote type hit create ...

pjonsson commented 2 years ago

The submodule in contiki-ng is not updated yet so you shouldn't see any difference compared to before the patches were merged. If you want to do the submodule update before it is merged to contiki-ng, you need the changes in https://github.com/contiki-ng/contiki-ng/pull/1810.