vmatare / thinkfan

The minimalist fan control program
GNU General Public License v3.0
552 stars 62 forks source link

openrc displays thinkfan as crashed after latest commit #23

Closed cbrown0x90 closed 7 years ago

cbrown0x90 commented 7 years ago

thinkfan [ crashed ] It also does not seem to start at all as it does not show up in ps aux.

vmatare commented 7 years ago

Thanks for the report. Can you post your /etc/init.d/thinkfan file as well as the output of make install after compiling thinkfan?

vmatare commented 7 years ago

It might also help to see the entire output of you trying start the init script, i.e. what happens when you run /etc/init.d/thinkfan start or whatever is correct for your distro.

cbrown0x90 commented 7 years ago

make install

[100%] Built target thinkfan
Install the project...
-- Install configuration: "Debug"
-- Installing: /usr/local/sbin/thinkfan
-- Up-to-date: /usr/local/share/doc/thinkfan/COPYING
-- Up-to-date: /usr/local/share/doc/thinkfan/README
-- Up-to-date: /usr/local/share/doc/thinkfan/thinkfan.conf.complex
-- Up-to-date: /usr/local/share/doc/thinkfan/thinkfan.conf.simple
-- Up-to-date: /usr/local/share/man/man1/thinkfan.1
-- Up-to-date: /usr/local/share/man/man5/thinkfan.conf.5
-- Up-to-date: /etc/init.d/thinkfan

sudo /etc/init.d/thinkfan start

thinkfan         | * /etc/init.d/thinkfan uses runscript, please convert to openrc-run.
thinkfan         | * Starting thinkfan ...
thinkfan         |
thinkfan         |Daemon PID: 5624                           [ ok ]

thinkfan.txt

vmatare commented 7 years ago

Looks good so far, now is there a process with PID 5624? If not there should be some kind of error message in syslog...

cbrown0x90 commented 7 years ago

Sorry, I probably should have posted this first. This is from syslog-ng.

Nov  1 16:47:01 ulm sudo[10765]:    chris : TTY=pts/1 ; PWD=/home/chris/Documents/thinkfan/build ; USER=root ; COMMAND=/sbin/rc-service thinkfan start
Nov  1 16:47:01 ulm /etc/init.d/thinkfan[10765]: /etc/init.d/thinkfan uses runscript, please convert to openrc-run.
Nov  1 16:47:01 ulm thinkfan[10785]: ERROR: Unhandled std::ios_base::failure: basic_ios::clear.
Nov  1 16:47:01 ulm thinkfan[10785]: errno = No such file or directory.
Nov  1 16:47:01 ulm thinkfan[10785]: _GLIBCXX_USE_CXX11_ABI = 1.
Nov  1 16:47:01 ulm thinkfan[10785]: Backtrace:
Nov  1 16:47:01 ulm thinkfan[10785]: /usr/local/sbin/thinkfan() [0x45c70d]
/usr/local/sbin/thinkfan(thinkfan::handle_uncaught()+0xef) [0x45cfbd]
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/libstdc++.so.6(+0xb4265) [0x7f53fa47e265]
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/libstdc++.so.6(+0xb4350) [0x7f53fa47e350]
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/libstdc++.so.6(+0xb46fb) [0x7f53fa47e6fb]
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/libstdc++.so.6(std::__throw_ios_failure(char const*)+0x7f) [0x7f53fa4b1f8f]
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/libstdc++.so.6(std::basic_ios<char, std::char_traits<char> >::clear(std::_Ios_Iostate)+0x61) [0x7f53fa5054b1]
/usr/local/sbin/thinkfan(thinkfan::PidFileHolder::PidFileHolder(int)+0xbc) [0x4307fe]
/usr/local/sbin/thinkfan(main+0x3c1) [0x4314b6]
/lib64/libc.so.6(__libc_start_main+0xf1) [0x7f53f9b36651]
/usr/local/sbin/thinkfan(_start+0x29) [0x42eb79]
Nov  1 16:47:01 ulm thinkfan[10785]: This is probably a bug. Please consider reporting this at https://github.com/vmatare/thinkfan/issues. Thanks.
vmatare commented 7 years ago

OK, another weird CMake fuckup. Should be fixed by 8636362 in the current master.

cbrown0x90 commented 7 years ago

Fixed, thanks