Bug 1212664 - gnome-mahjongg infinite loop
Summary: gnome-mahjongg infinite loop
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: GNOME (show other bugs)
Version: Current
Hardware: x86-64 openSUSE Tumbleweed
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-23 20:54 UTC by James Carter
Modified: 2023-06-27 00:54 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
ltrace output (1.15 MB, text/plain)
2023-06-23 20:54 UTC, James Carter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James Carter 2023-06-23 20:54:25 UTC
Created attachment 867794 [details]
ltrace output

This is for gnome-mahjongg-3.40.0-1.1.x86_64
installed 2023-06-06; the symptom started then.  

It goes into an infinite loop about 10%-20% of the time.  No screen
action, no messages on stderr-stdout, no response to mouse clicks,
doesn't exiting when you click the X box in the window border
controls; just one core running flat out.  It does respond to SIGTERM
and SIGINT.  Sometimes it starts looping immediately when started;
sometimes you make a few (under 5) moves in the game and then it
loops, but it never (or rarely?) goes loopy in the moddle of game 
play. 

gnome-sudoku-44.0-1.2.x86_64 (and earlier) does not have the problem. 

I'm uploading ltrace output in case some clue is visible.  Command:

    ltrace -f -o /tmp/mjg.ltr -C -n 2 -S gnome-mahjongg 

Args: -f = trace forked processes; -o = output file; -C = demangle C++
symbols (none seen); -n 2 = indent in shared objects; -S = report 
system calls.

This time it went into a loop immediately on startup.  I let it run
about 5sec then killed with ^C (SIGINT). 384074 lines of output
recorded, 24Mb.  After 19500 lines (5%) it seems to have gotten into
a steady state.  I've truncated the file at this point to save space
on your server.  

4 processes are interleaved.  
It's repeating these library calls, per PID:  
    7799: g_utf8_strdown g_strcmp0 g_strdup g_ascii_strtod g_free 
	(and repeat)
    7812: begins and resumes futex 
    7813: begins and resumes futex 
    7814: begins and resumes restart_syscall (can't tell which syscall)
Comment 1 Yifan Jiang 2023-06-25 03:14:38 UTC
Hi James, I saw the "Product" field is put as "ALP" in the bug. While ALP does not currently provide gnome-mahjongg by default, so can you clarify how did you install the application and how did you install the desktop there? Otherwise, if you are using Leap or Tumbleweed, would you calibrate the "Product" field? Thanks.
Comment 2 James Carter 2023-06-27 00:54:33 UTC
Product changed to OpenSuSE Tumbleweed.  When I filled out the new bug form I didn't see that choice (which I normally get) and ALP seemed the closest one.  Maybe I was temporarily blind.  Sorry about that.