Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#914 - Zsnes crash

Attached to Project: Arch Linux
Opened by Richard Wagler (Richie) - Sunday, 16 May 2004, 18:17 GMT
Last edited by arjan timmerman (blaasvis) - Thursday, 10 February 2005, 22:55 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Aurelien Foret (aurelien.foret)
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Zsnes crashes when using the Netplay-feature.

Error-Message:
Fatal signal: Segmentation Fault (SDL Parachute Deployed
This task depends upon

Closed by  Aurelien Foret (aurelien.foret)
Tuesday, 07 June 2005, 21:02 GMT
Reason for closing:  Works for me
Additional comments about closing:  No data was provided to help understand the root cause of the issue faced by some people.
No data, no investigation!
A workaround is described in the comments.
Comment by Kenny Smith (standsolid) - Sunday, 24 October 2004, 20:21 GMT
on an strace, it claims it cannot find these files

8925 open("/usr/lib/libnss_dns.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
8925 open("/usr/lib/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
Comment by Aurelien Foret (aurelien.foret) - Sunday, 23 January 2005, 09:44 GMT
There is a thread on Zsnes forums dealing with this issue :
http://board.zsnes.com/phpBB2/viewtopic.php?t=1846
More generally, netplay feature seems not working properly :
http://board.zsnes.com/phpBB2/viewtopic.php?t=2202
Comment by Richard Wagler (Richie) - Friday, 04 February 2005, 09:43 GMT
It works, if I comment out the content of the function "GetHostName" in src/linux/ztcp.c. This function is at the end of the file.

Here is the Pkg I made: http://www.metroidx.com/zsnes-1.42-1.pkg.tar.gz (There is no bullshit in the Pkg... ;) )
Comment by arjan timmerman (blaasvis) - Thursday, 10 February 2005, 19:11 GMT
and where is the PKGBUILD ?
Comment by Richard Wagler (Richie) - Friday, 11 February 2005, 23:00 GMT
I used the PKGBUILD from abs.
I just commented out the function in the sourcecode, because I don't really know how to do this with shellscripting.
Comment by Aurelien Foret (aurelien.foret) - Wednesday, 02 March 2005, 18:41 GMT
Well, the stock zsnes code works fine for me.

I isolated the "faulty" code (well, in fact not faulty for me), and run it in a small C program:

<snip foo.c>
#include <string.h>
#include <unistd.h>
#include <netdb.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>

char blah[256];
char hostname[50] = "IP N/A";

int main(int arcg, char *argv[])
{
struct hostent* phe;
const char *test;

strcpy(hostname,"YOUR IP: ");
gethostname(blah,255);
phe = gethostbyname(blah);
test = inet_ntoa(*(struct in_addr*)phe->h_addr);
strcpy(blah, test);
strcat(hostname,blah);

return(0);
}
</snip>

To compile it, use "gcc -g -Wall foo.c -o foo".

Can you try it, and report if it works or not?
If not, can you provide me a core file, and the foo binary that triggered the core?

According to the thread on Zsnes forums, it seems this issue can occur on some system, whereas it will run fine on others...

As a consequence, I won't commit a fix disabling a function to the package before we can understand why it's occurring.
Comment by arjan timmerman (blaasvis) - Sunday, 05 June 2005, 12:11 GMT
what's the state on this one ?

Loading...