Project

General

Profile

Actions

Emulator Issues #7917

closed

Dolphin crashes in WII_SSL during shutdown

Added by flacs over 9 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
Yes
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

What's the problem? Describe what went wrong in few words.
Dolphin crashes.

What steps will reproduce the problem?

  1. Start Dolphin.
  2. Start any game, then stop it.
  3. Close Dolphin.
  4. Watch it crash.

Which versions of Dolphin did you test on?
47d8fc3aed9c7ef5a62128a2588a13c242dc1600

Does using an older version of Dolphin solve your issue? If yes, which
versions of Dolphin used to work?
The one before 47d8fc3aed9c7ef5a62128a2588a13c242dc1600.

What are your PC specifications? (including, but not limited to: Operating
System, CPU and GPU)
Linux

Backtrace:
#0 0x00007fffec9278e7 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string() () from /usr/lib/libstdc++.so.6
#1 0x00000000006fb602 in WII_SSL::~WII_SSL (this=0xe71008 <CWII_IPC_HLE_Device_net_ssl::_SSL+10632>, __in_chrg=<optimized out>)
at /home/flacs/code/dolphin/Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_net_ssl.h:56
#2 0x00000000006fb457 in __tcf_0 () at /home/flacs/code/dolphin/Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_net_ssl.cpp:11
#3 0x00007fffee4b8392 in __run_exit_handlers () from /usr/lib/libc.so.6
#4 0x00007fffee4b83e5 in exit () from /usr/lib/libc.so.6
#5 0x00007fffee4a2047 in __libc_start_main () from /usr/lib/libc.so.6
#6 0x0000000000523ba9 in _start ()


Related issues 1 (0 open1 closed)

Has duplicate Emulator - Emulator Issues #7850: segmentation fault upon exitDuplicate

Actions
Actions #1

Updated by tueidj over 9 years ago

Actions #2

Updated by phire over 9 years ago

I'm having problems reproducing this.

Actions #3

Updated by booto over 9 years ago

Maybe not the greatest thing to do on structs containing a std::string that has already been constructed:

https://github.com/dolphin-emu/dolphin/blob/master/Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_net_ssl.cpp#L16

Actions #4

Updated by phire over 9 years ago

  • Status changed from New to Fix pending

Booto was right, that memset was corrupting the string.

I guess my libstc++ didn't segfault when deconstructing corrupted strings, but SSBB was segfaulting when trying to connect to WiFi Connect.

Fixed in #1704 -- http://goo.gl/WXCbJz

Actions #5

Updated by phire over 9 years ago

Issue 7850 has been merged into this issue.

Actions #6

Updated by booto over 9 years ago

Issue 7850 has been merged into this issue.

Actions #7

Updated by ZephyrSurfer over 9 years ago

That was merged.

Actions #8

Updated by phire over 9 years ago

  • Status changed from Fix pending to Fixed

Indeed

Actions

Also available in: Atom PDF