Public bug reported:

Ubuntu release (fresh install, not upgraded):

No LSB modules are available.
Description:    Ubuntu 24.04.2 LTS
Release:        24.04

package version:

nxagent 2:3.5.99.27-1.1build2


source package:

https://launchpad.net/ubuntu/+source/nx-libs/2:3.5.99.27-1.1build2


x2goserver package 4.1.0.6-1.1build1 uses nxagent as a wrapper for X11,
it works for most of the clients, but specifically recent x2go clients
on MAC OS are able to crash the nxagent


expected bahavior:
x2go session initialized and run correctly and stable for all clients


what happens instead:
x2go session not initialized, nxagent crashes with coredump if the client is on 
MAC OS


gdb traceback of the core file:

#0  AllocatePicturePrivate (pScreen=pScreen@entry=0x57d57cdf9170, index2=0, 
amount=amount@entry=0) at ../../render/picture.c:79
#1  0x000057d5720fc9e0 in miInitializeCompositeWrapper 
(pScreen=pScreen@entry=0x57d57cdf9170) at cw.c:643
#2  0x000057d5720f733f in DamageSetup (pScreen=pScreen@entry=0x57d57cdf9170) at 
damage.c:1769
#3  0x000057d572364d0d in miSpriteInitialize 
(pScreen=pScreen@entry=0x57d57cdf9170, 
cursorFuncs=cursorFuncs@entry=0x57d57246f480 <miDCFuncs>, 
screenFuncs=screenFuncs@entry=0x57d572442720 <nxagentPointerCursorFuncs>) at 
misprite.c:159
#4  0x000057d57235c7c9 in miDCInitialize (pScreen=pScreen@entry=0x57d57cdf9170, 
screenFuncs=screenFuncs@entry=0x57d572442720 <nxagentPointerCursorFuncs>) at 
midispcur.c:153
#5  0x000057d5720ad24d in nxagentOpenScreen (pScreen=0x57d57cdf9170, 
argc=<optimized out>, argv=<optimized out>) at Screen.c:1675
#6  0x000057d57204fa21 in AddScreen (pfnInit=pfnInit@entry=0x57d5720abb30 
<nxagentOpenScreen>, argc=argc@entry=11, argv=argv@entry=0x7ffff5862ff8) at 
../../dix/dispatch.c:4177
#7  0x000057d5720a7691 in InitOutput (scrInfo=scrInfo@entry=0x57d5724747e0 
<screenInfo>, argc=argc@entry=11, argv=argv@entry=0x7ffff5862ff8) at Init.c:401
#8  0x000057d5720328b8 in main (argc=11, argv=0x7ffff5862ff8, envp=<optimized 
out>) at main.c:278


gdb full traceback of the same core file:

#0  AllocatePicturePrivate (pScreen=pScreen@entry=0x57d57cdf9170, index2=0, 
amount=amount@entry=0) at ../../render/picture.c:79
        nsizes = <optimized out>
        ps = 0x41
        oldamount = <optimized out>
#1  0x000057d5720fc9e0 in miInitializeCompositeWrapper 
(pScreen=pScreen@entry=0x57d57cdf9170) at cw.c:643
        pScreenPriv = <optimized out>
#2  0x000057d5720f733f in DamageSetup (pScreen=pScreen@entry=0x57d57cdf9170) at 
damage.c:1769
        pScrPriv = 0x57d57cdf9000
        ps = 0x0
#3  0x000057d572364d0d in miSpriteInitialize 
(pScreen=pScreen@entry=0x57d57cdf9170, 
cursorFuncs=cursorFuncs@entry=0x57d57246f480 <miDCFuncs>, 
screenFuncs=screenFuncs@entry=0x57d572442720 <nxagentPointerCursorFuncs>) at 
misprite.c:159
        pScreenPriv = <optimized out>
        pVisual = <optimized out>
#4  0x000057d57235c7c9 in miDCInitialize (pScreen=pScreen@entry=0x57d57cdf9170, 
screenFuncs=screenFuncs@entry=0x57d572442720 <nxagentPointerCursorFuncs>) at 
midispcur.c:153
        pScreenPriv = 0x57d57cdff6f0
#5  0x000057d5720ad24d in nxagentOpenScreen (pScreen=0x57d57cdf9170, 
argc=<optimized out>, argv=<optimized out>) at Screen.c:1675
        numVisuals = 4
        numDepths = 7
        rootDepth = 24
        pFrameBufferBits = <optimized out>
        bitsPerPixel = <optimized out>
        sizeInBytes = <optimized out>
        depths = 0x57d57cdfe0f0
        visuals = 0x57d57ce009a0
        defaultVisualIndex = <optimized out>
        defaultVisual = 101
        resetAgentPosition = <optimized out>
        w = <optimized out>
        h = <optimized out>
        __func__ = "nxagentOpenScreen"
#6  0x000057d57204fa21 in AddScreen (pfnInit=pfnInit@entry=0x57d5720abb30 
<nxagentOpenScreen>, argc=argc@entry=11, argv=argv@entry=0x7ffff5862ff8) at 
../../dix/dispatch.c:4177
        i = <optimized out>
        pScreen = 0x57d57cdf9170
        ret = 0
#7  0x000057d5720a7691 in InitOutput (scrInfo=scrInfo@entry=0x57d5724747e0 
<screenInfo>, argc=argc@entry=11, argv=argv@entry=0x7ffff5862ff8) at Init.c:401
        i = 0
        authority = <optimized out>
#8  0x000057d5720328b8 in main (argc=11, argv=0x7ffff5862ff8, envp=<optimized 
out>) at main.c:278
        i = <optimized out>
        xauthfile = <optimized out>
        alwaysCheckForInput = {0, 1}

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: nxagent 2:3.5.99.27-1.1build2
ProcVersionSignature: Ubuntu 6.11.0-26.26~24.04.1-generic 6.11.11
Uname: Linux 6.11.0-26-generic x86_64
ApportVersion: 2.28.1-0ubuntu3.6
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Fri May 30 18:28:19 2025
SourcePackage: nx-libs
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: nx-libs (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug noble

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2112207

Title:
  nxagent segmentation violation in AllocatePicturePrivate

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nx-libs/+bug/2112207/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to