Tk Source Code

View Ticket
Login
Ticket UUID: 6854ee6a2ea8b5ffe2b9b7da5ce4bab74b4951a7
Title: Test imgPhoto-7.3 causes X server to crash (vcxsrv)
Type: Bug Version:
Submitter: apnadkarni Created on: 2023-04-21 17:36:08
Subsystem: 39. Image Basics Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2023-08-25 13:33:18
Resolution: None Closed By: nobody
    Closed on:
Description:

Running the vcxsrv X server on Windows 10 (64-bit). Running

make -s test TESTFLAGS="-f imgPhoto.test -match imgPhoto-7.3"

causes the vcxsrv process to crash.

This may not be a Tk issue but on the other hand vcxsrv is a widely used X server for Windows and there is a possibility that Tk is feeding it bad data. Logging just for the record.

Tested with commit [ccee45f2] against Tcl 9.0. Earlier Tk versions could also have the issue, will try when I get a chance.

User Comments: chrstphrchvz added on 2023-08-25 13:33:18:

I reproduced this crash with core-8-6-branch and the debug build of VcXsrv 1.20.14.0. It occurs during update after doing .f.b2 configure -image {}. It does not occur if -visual best was not specified; I observe -visual best causes a 32-bit truecolor visual to be used instead of a 24-bit truecolor one. It seems to occur only when VcXsrv is configured to use multiple windows (“rootless”) rather than a single root window. The crash is during memcpy(), but I do not yet have a more helpful stack trace, and the only thing that gets appended to VCXSrv.0.log is fbCopyWindowProc ERROR.


apnadkarni added on 2023-04-22 02:37:03:
```
Unhandled exception at 0x00007FFB2F0E146C (vcruntime140.dll) in vcxsrv.exe: 0xC0000005: Access violation reading location 0x000001A73B90FE2C.

 	vcxsrv.exe!00007ff7bae873ce()	Unknown
 	vcxsrv.exe!00007ff7bae84f78()	Unknown
 	vcxsrv.exe!00007ff7baec2b84()	Unknown
 	vcxsrv.exe!00007ff7bae850c8()	Unknown
 	vcxsrv.exe!00007ff7bacd21df()	Unknown
 	vcxsrv.exe!00007ff7baccc16b()	Unknown
 	vcxsrv.exe!00007ff7bac825ff()	Unknown
 	vcxsrv.exe!00007ff7bae7ecf9()	Unknown
 	vcxsrv.exe!00007ff7bac89201()	Unknown
 	vcxsrv.exe!00007ff7bacc9b31()	Unknown
 	vcxsrv.exe!00007ff7bac82712()	Unknown
 	vcxsrv.exe!00007ff7bae7e504()	Unknown
 	vcxsrv.exe!00007ff7bac38955()	Unknown
 	vcxsrv.exe!00007ff7bac2a0d1()	Unknown
 	vcxsrv.exe!00007ff7bac2215a()	Unknown
 	vcxsrv.exe!00007ff7baed9cd2()	Unknown
 	vcxsrv.exe!00007ff7baed9f3a()	Unknown
 	kernel32.dll!00007ffb447d7604()	Unknown
 	ntdll.dll!00007ffb455626a1()	Unknown

```

Since vcxsrv is open source, should be able to get a more useful one but have too many things on my plate on the Tcl front so this will have to wait.

/Ashok

fvogel added on 2023-04-21 19:11:57:
Any stack trace available?