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

ReGa crashes by allocating too much memory #1420

Open
MichaelN0815 opened this issue Sep 22, 2021 · 0 comments
Open

ReGa crashes by allocating too much memory #1420

MichaelN0815 opened this issue Sep 22, 2021 · 0 comments
Labels
🐛 bug-report Something isn't working 🏷️ ReGaHss This refs the ReGaHss component 🔅 low priority This issue/ticket has low priority (not urgent)

Comments

@MichaelN0815
Copy link
Contributor

MichaelN0815 commented Sep 22, 2021

Describe the bug

Creating a too long string in HM Skript leads to ReGa Crash

Steps to reproduce the behavior
Run this Skript with only 2 GB RAM:

string a = "A";
integer b = 27;
while (b > 0) {
  b = b - 1;
  a = a # a;
}

in error log you will found:

Sep 21 22:31:03 homematic-raspi local0.emerg ReGaHss: CRASH: Allocating memory of size 134218761 bytes failed! [IseAllocMemory():ise_mem.cpp:26]
Sep 21 22:31:03 homematic-raspi local0.err ReGaHss: ERROR: Alloc() failed [format():ise_ntl.cpp:898]
Sep 21 22:31:10 homematic-raspi user.info kernel: [  314.414614] ReGaHss[717]: segfault at 0 ip 00000000080739b4 sp 00000000f77fe93c error 6 in ReGaHss[804d000+151000]
Sep 21 22:31:10 homematic-raspi user.info kernel: [  314.414625] Code: c2 1a 00 00 89 5c 24 20 83 c4 18 5b e9 a5 9d fd ff 66 90 66 90 90 8b 44 24 04 c7 80 90 00 00 00 00 00 00 00 8b 80 88 00 00 00 <c6> 00 00 c3 8d b4 26 00 00 00 00 90 56 53 83 ec 04 8b 5c 24 10 8b
Sep 21 22:31:21 homematic-raspi user.err monit[794]: 'ReGaHss' process is not running
Sep 21 22:31:21 homematic-raspi user.info monit[794]: 'ReGaHss' trying to restart
Sep 21 22:31:21 homematic-raspi user.info monit[794]: 'ReGaHss' restart: '/etc/init.d/S70ReGaHss restart'
Sep 21 22:31:41 homematic-raspi user.err monit[794]: 'ReGaHss' service restarted 1 times within 1 cycles(s) - exec
Sep 21 22:31:41 homematic-raspi user.info monit[794]: 'ReGaHss' exec: '/bin/triggerAlarm.tcl ReGaHss restarted WatchDog: regahss-restart true'
Sep 21 22:31:41 homematic-raspi user.info monit[794]: 'ReGaHss' process is running with pid 1322
Sep 21 22:31:41 homematic-raspi user.info monit[794]: 'ReGaHss' process is running after previous restart timeout (manually recovered?)

Expected behavior

no crash of ReGa, but stops the skript with defined error in error log

Additional context
see https://homematic-forum.de/forum/viewtopic.php?f=26&t=69685#p679692

@jens-maus jens-maus added 🐛 bug-report Something isn't working 🏷️ ReGaHss This refs the ReGaHss component 🔅 low priority This issue/ticket has low priority (not urgent) labels Sep 22, 2021
@jens-maus jens-maus added this to the future release milestone Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug-report Something isn't working 🏷️ ReGaHss This refs the ReGaHss component 🔅 low priority This issue/ticket has low priority (not urgent)
Projects
Development

No branches or pull requests

2 participants