Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Segmentation when running a game on Linux #2297

Open
7 tasks done
ovanes-ohanesian opened this issue Feb 2, 2025 · 0 comments
Open
7 tasks done

Segmentation when running a game on Linux #2297

ovanes-ohanesian opened this issue Feb 2, 2025 · 0 comments
Labels

Comments

@ovanes-ohanesian
Copy link

Validation

Describe what's going wrong

Emulator crashes on game load.

I tried to locate the place in code, it appears to be

thunk(machine_code_, thread_state->context(),

Describe what should happen

Emulator shouldn't crash on game load

If applicable, provide a callstack here, especially for crashes

`i> 000084DC ----------------- END OF ACHIEVEMENTS ----------------
i> 000084DC Added handle:F8000024 for N2xe6kernel7XObjectE
i> 000084DC XThreadF8000024 (5) Stack: 70110000-70130000
[New Thread 0x7fffa2000640 (LWP 34065)]
[New Thread 0x7fff97e00640 (LWP 34066)]
i> 000084DC KernelState: Launching module...
i> 000084DC Added handle:F8000028 for N2xe6kernel7XObjectE
K> F8000024 XThread::Execute thid 5 (handle=F8000024, 'Kernel Dispatch (F8000024)', native=A2000640, )
i> 000084DC XThreadF8000028 (6) Stack: 70150000-70160000
K> F8000028 XThread::Execute thid 6 (handle=F8000028, 'Main XThread (F8000028)', native=97E00640)

Thread 38 "Main XThread (F" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff97e00640 (LWP 34066)]
0x000055555811a540 in ?? ()
(gdb) bt
#0 0x000055555811a540 in ()
#1 0x00000000a000003f in ()
#2 0x00007fff97def650 in ()
#3 0x00005555556f7b5a in std::recursive_mutex::unlock() (this=0x1) at /usr/include/c++/11/mutex:126
#4 0x0000555555782136 in xe::cpu::GuestFunction::Call(xe::cpu::ThreadState*, unsigned int) (this=0x7fff78004d80, thread_state=0x5555581faec0, return_address=3166485692)
at /home/edge/workspace/xenia/src/xenia/cpu/function.cc:132
#5 0x00005555557886cc in xe::cpu::Processor::Execute(xe::cpu::ThreadState*, unsigned int) (this=0x7fffd001d670, thread_state=0x5555581faec0, address=2194389360)
at /home/edge/workspace/xenia/src/xenia/cpu/processor.cc:350
#6 0x00005555557888b8 in xe::cpu::Processor::Execute(xe::cpu::ThreadState*, unsigned int, unsigned long*, unsigned long)
(this=0x7fffd001d670, thread_state=0x5555581faec0, address=2194389360, args=0x7fff78002fc0, arg_count=1) at /home/edge/workspace/xenia/src/xenia/cpu/processor.cc:392
#7 0x0000555555adfe1a in xe::kernel::XThread::Execute() (this=0x555558119160) at /home/edge/workspace/xenia/src/xenia/kernel/xthread.cc:532
#8 0x0000555555adf01b in operator()() const (__closure=0x7fff97defa50) at /home/edge/workspace/xenia/src/xenia/kernel/xthread.cc:392
#9 0x0000555555ae2960 in std::__invoke_impl<void, xe::kernel::XThread::Create()::<lambda()>&>(std::__invoke_other, struct {...} &) (__f=...) at /usr/include/c++/11/bits/invoke.h:61
#10 0x0000555555ae2597 in std::__invoke_r<void, xe::kernel::XThread::Create()::<lambda()>&>(struct {...} &) (__fn=...) at /usr/include/c++/11/bits/invoke.h:111
#11 0x0000555555ae229d in std::_Function_handler<void(), xe::kernel::XThread::Create()::<lambda()> >::_M_invoke(const std::_Any_data &) (__functor=...)
at /usr/include/c++/11/bits/std_function.h:290
#12 0x00005555557021d2 in std::function<void ()>::operator()() const (this=0x7fff97defa50) at /usr/include/c++/11/bits/std_function.h:590
#13 0x00005555556fe488 in xe::threading::PosixConditionxe::threading::Thread::ThreadStartRoutine(void*) (parameter=0x55555804a9d0)
at /home/edge/workspace/xenia/src/xenia/base/threading_posix.cc:1101
#14 0x00007ffff6c94ac3 in start_thread (arg=) at ./nptl/pthread_create.c:442
#15 0x00007ffff6d26850 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
`

If applicable, upload a logfile and link it here

No response

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant