Jump to content

QNAP TS-420


myzinsky

Recommended Posts

myzinsky

When I start Emby on QNAP I get the following error:

=================================================================
	Native Crash Reporting
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

=================================================================
	Native stacktrace:
=================================================================
	 (No frames)


=================================================================
	External Debugger Dump:
=================================================================
mono_gdb_render_native_backtraces not supported on this platform, unable to find gdb or lldb

=================================================================
	Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x76706676):0x76706666  Segmentation fault

I have a QNAP TS-420 and I installed the accruing package form: https://emby.media/qnap-server.html

Link to comment
Share on other sites

myzinsky
Link to comment
Share on other sites

PenkethBoy

did you install mono first?

and get the correct version of mono supported for your cpu??????

Link to comment
Share on other sites

PenkethBoy

nope - mono will be required - those packages are compatible and require mono to work

Link to comment
Share on other sites

myzinsky

I also installed gdb, to get more output:

 

=================================================================
	Native Crash Reporting
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

=================================================================
	Native stacktrace:
=================================================================
	 (No frames)


=================================================================
	External Debugger Dump:
=================================================================
[New LWP 1168]
[New LWP 1169]
[New LWP 1180]
[New LWP 1403]
[New LWP 1556]
[New LWP 1557]
[New LWP 1558]
warning: File "/share/MD0_DATA/.qpkg/EmbyServer/lib/libthread_db-1.0.so" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
	add-auto-load-safe-path /share/MD0_DATA/.qpkg/EmbyServer/lib/libthread_db-1.0.so
line to your configuration file "/root/.gdbinit".
To completely disable this security protection add
	set auto-load safe-path /
line to your configuration file "/root/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
	info "(gdb)Auto-loading safe path"
warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
warning: File "/share/MD0_DATA/.qpkg/EmbyServer/lib/libthread_db-1.0.so" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
0xb6dc76f0 in waitpid () from /share/MD0_DATA/.qpkg/EmbyServer/lib/libpthread.so.0
  Id   Target Id                  Frame
* 1    LWP 1122 "Emby Main Threa" 0xb6dc76f0 in waitpid () from /share/MD0_DATA/.qpkg/EmbyServer/lib/libpthread.so.0
  2    LWP 1168 "SGen worker"     0xb6dc2d18 in pthread_cond_wait () from /share/MD0_DATA/.qpkg/EmbyServer/lib/libpthread.so.0
  3    LWP 1169 "Finalizer"       0xb6dc51ec in ?? () from /share/MD0_DATA/.qpkg/EmbyServer/lib/libpthread.so.0
  4    LWP 1180 "Emby Main Threa" 0xb6dc2d18 in pthread_cond_wait () from /share/MD0_DATA/.qpkg/EmbyServer/lib/libpthread.so.0
  5    LWP 1403 "Thread Pool I/O" 0xb6d0e4e4 in poll () from /share/MD0_DATA/.qpkg/EmbyServer/lib/libc.so.6
  6    LWP 1556 "Thread Pool I/O" 0xb6dc3100 in pthread_cond_timedwait () from /share/MD0_DATA/.qpkg/EmbyServer/lib/libpthread.so.0
  7    LWP 1557 "Thread Pool Wor" 0xb6dc5440 in ?? () from /share/MD0_DATA/.qpkg/EmbyServer/lib/libpthread.so.0
  8    LWP 1558 "Thread Pool Wor" 0xb6dc5440 in ?? () from /share/MD0_DATA/.qpkg/EmbyServer/lib/libpthread.so.0

Thread 8 (LWP 1558 "Thread Pool Wor"):
#0  0xb6dc5440 in ?? () from /share/MD0_DATA/.qpkg/EmbyServer/lib/libpthread.so.0
#1  0xb6dc5574 in sem_timedwait () from /share/MD0_DATA/.qpkg/EmbyServer/lib/libpthread.so.0
#2  0x0022f8fc in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 7 (LWP 1557 "Thread Pool Wor"):
#0  0xb6dc5440 in ?? () from /share/MD0_DATA/.qpkg/EmbyServer/lib/libpthread.so.0
#1  0xb6dc5574 in sem_timedwait () from /share/MD0_DATA/.qpkg/EmbyServer/lib/libpthread.so.0
#2  0x0022f8fc in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 6 (LWP 1556 "Thread Pool I/O"):
#0  0xb6dc3100 in pthread_cond_timedwait () from /share/MD0_DATA/.qpkg/EmbyServer/lib/libpthread.so.0
#1  0x0027c090 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 5 (LWP 1403 "Thread Pool I/O"):
#0  0xb6d0e4e4 in poll () from /share/MD0_DATA/.qpkg/EmbyServer/lib/libc.so.6
#1  0x001eee30 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 4 (LWP 1180 "Emby Main Threa"):
#0  0xb6dc2d18 in pthread_cond_wait () from /share/MD0_DATA/.qpkg/EmbyServer/lib/libpthread.so.0
#1  0x00000000 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 3 (LWP 1169 "Finalizer"):
#0  0xb6dc51ec in ?? () from /share/MD0_DATA/.qpkg/EmbyServer/lib/libpthread.so.0
#1  0xb6dc52bc in sem_wait () from /share/MD0_DATA/.qpkg/EmbyServer/lib/libpthread.so.0
#2  0x002218f4 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 2 (LWP 1168 "SGen worker"):
#0  0xb6dc2d18 in pthread_cond_wait () from /share/MD0_DATA/.qpkg/EmbyServer/lib/libpthread.so.0
#1  0x00000000 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 1 (LWP 1122 "Emby Main Threa"):
#0  0xb6dc76f0 in waitpid () from /share/MD0_DATA/.qpkg/EmbyServer/lib/libpthread.so.0
#1  0x000880bc in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
[Inferior 1 (process 1122) detached]

=================================================================
	Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x76706676):0x76706666

 

Link to comment
Share on other sites

alucryd

@PenkethBoy We started providing our own mono builds some time ago because mono is mostly outdated and/or broken on most platforms, and especially on old armv5 devices.

We had some luck on the synology side with the same CPU (I think it is), but it looks like qnap will prove more difficult.

@myzinsky Could you post the output of the following commands to be sure what CPU and glibc version you have?

uname -a
cat /proc/cpuinfo
ls -la /usr/lib/ld-*

 

Link to comment
Share on other sites

alucryd

@myzinskyWould be cool if you could provide a binary from your device to see how it was compiled, like the mono binary you got from the qnap repo for instance.

Link to comment
Share on other sites

  • 2 weeks later...
22 hours ago, myzinsky said:

yes

Can you please provide the information requested above? Thanks !

Link to comment
Share on other sites

myzinsky
Quote

uname -a


Linux fondue 3.4.6 #1 Thu Jun 24 15:02:12 CST 2021 armv5tel unknown

 

Quote

cat /proc/cpuinfo

Processor name	: Feroceon 88F6282 rev 1 (v5l) @ 1.6 GHz
BogoMIPS	: 1587.60
Features	: swp half thumb fastmult edsp
CPU implementer	: 0x56
CPU architecture: 5TE
CPU variant	: 0x2
CPU part	: 0x131
CPU revision	: 1

Hardware	: Feroceon-KW ARM
Revision	: 0000
Serial		: 0000000000000000

 

Quote

ls -la /usr/lib/ld-*

ls: /usr/lib/ld-*: No such file or directory

 

 

Link to comment
Share on other sites

alucryd

@myzinsky Thanks for the info, not sure why you don't have `/usr/lib/ld-*`, could you try `/lib/ld-*` instead ?

Thanks for the binary, it's very helpful. I see the CPU name is arm10tdmi, I'm targeting arm9e which should be compatible, but I guess these old CPUs aren't very well supported anymore. May have to target this specific CPU and create a dedicated tolchain and package, I'll see what I can do.

Edited by alucryd
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...