webMAN-MOD icon indicating copy to clipboard operation
webMAN-MOD copied to clipboard

Segmentation Fault - ps3netsrv build 20201030

Open wes1993 opened this issue 3 years ago • 12 comments

Hello, sometimes i have this error I hope do you know how can i solve this.

@aldostools Realy really really thanks a lot for your beautiful work!!!!!

Best regards Stefano

wes1993 avatar Feb 06 '21 21:02 wes1993

The segmentation fault could have different causes:

  • Dereferencing or assigning to an uninitialized pointer (wild pointer, which points to a random memory address)
  • Dereferencing or assigning to a freed pointer (dangling pointer, which points to memory that has been freed/deallocated/deleted)
  • A buffer overflow.
  • A stack overflow.

It would be needed to identify in what function it occurs or doing what operation.

aldostools avatar Feb 06 '21 23:02 aldostools

Thanks a lot for your reply!! :) How can I help you to identify the function?

Best Regards Stefano

wes1993 avatar Feb 07 '21 01:02 wes1993

To start, you would need to specify some details about your environment and when the error happens:

1- Your system configuration: Windows, Linux or Mac, games where it happens, type of game (ISO or Viso), using CFW or HEN and what version, path of the game, RAM, network type, using webMAN, webMAN MOD, sMAN or multiMAN, etc.. 2- When the error happens? Scanning games, mounting a game,, starting a game, during game play after various minutes. 3- Does it freeze always in the same point of a game or is it random? 4- Does ps3netsrv show any message prior the error?

With this detail we could create a debug version that show detailed activity in particular functions in the program.

aldostools avatar Feb 07 '21 13:02 aldostools

Thanks again for your reply. My system: Debian 10.8 It appen when i have turned on the Play (without loading any game) CFW 4.86 Ferrox RAM - 8GB Network - Lan Cable 1Gbps webMan Mod 1.47.34

2 - Starting PS3 3 - No game running or mounted 4 - No only segmentation fault from crontab

I don't know how to replicate the error.

Again thanks a lot for your reply Stefano

wes1993 avatar Feb 07 '21 17:02 wes1993

Could you try compiling using an earlier version of gcc? Sometimes the compiler introduce bugs.

Or try using the Docker edition (I haven't hear of these kind bugs lately): https://hub.docker.com/r/shawly/ps3netsrv/dockerfile

If you are receiving the error starting PS3, that means that webMAN is scanning for content on start up. Disable that option in /setup.ps3 and do the refresh XML manually whenever you need it.

aldostools avatar Feb 07 '21 17:02 aldostools

Hello again @aldostools I have updated the PS3 to CFW 4.87 and for now seems that no segmentation fault occur. I will leave the ticket opened because I will do more test but for now seems ok :)

Thanks a lot Stefano

wes1993 avatar Feb 17 '21 08:02 wes1993

Excellent news! Good luck!

aldostools avatar Feb 17 '21 13:02 aldostools

I'm experiencing the same issue. ps3netsrv segfaults when mounting a GAME folder. ISOs are mounting correctly.

I'm running Debian with a 5.10 kernel and I'm compiling ps3netsrv (latest git) myself. My PS3 runs Ferrox 4.87 + Cobra 8.20 and webMAN 1.47.35

root@home:~/dev/webMAN-MOD/Projects/ps3netsrv# meson buildrelease --buildtype=release The Meson build system Version: 0.56.2 Source dir: /root/dev/webMAN-MOD/Projects/ps3netsrv Build dir: /root/dev/webMAN-MOD/Projects/ps3netsrv/buildrelease Build type: native build Project name: ps3netsrv Project version: 0.1 C compiler for the host machine: cc (gcc 10.2.1 "cc (Debian 10.2.1-6) 10.2.1 20210110") C linker for the host machine: cc ld.bfd 2.35.2 C++ compiler for the host machine: c++ (gcc 10.2.1 "c++ (Debian 10.2.1-6) 10.2.1 20210110") C++ linker for the host machine: c++ ld.bfd 2.35.2 Host machine cpu family: x86_64 Host machine cpu: x86_64 Run-time dependency threads found: YES Library mbedtls found: YES Library mbedcrypto found: YES Build targets in project: 1

Found ninja-1.10.1 at /usr/bin/ninja

This has been occurring with builds for the past 2 months.

duduke avatar Mar 24 '21 15:03 duduke

Using the ps3netsrv from the latest webMAN-MOD release: https://github.com/aldostools/webMAN-MOD/releases/download/1.47.35/ps3netsrv_20200708.zip is working. So its down to a change between build 20200708 and 20201030.

duduke avatar Mar 25 '21 09:03 duduke

I have seen that i have the segmentation fault again. So for now the problem still here... :-(

wes1993 avatar Mar 25 '21 15:03 wes1993

@wes1993 Please try using the build 20200708 as @duduke commented.

I've reverted the source code in the master branch to that version.

aldostools avatar Mar 25 '21 18:03 aldostools

Ok o will try, thank a lot for all your beautiful work!!!

wes1993 avatar Apr 05 '21 11:04 wes1993