My system is up to date as of April 15, 2023; I'm running kernel 6.1.0-7-powerpc with Mesa 22.3.6. Does anyone how to fix this problem?
I'm probably doing something wrong (never used gdb before), but Xorg
closes almost instantly after I run it so there's not enough time to
launch gdb before it's already segfaulted. It sounds like these tips are
for when Xorg launches and runs for a bit but crashes when a specific
action is performed.
Hello,otypes=otypes@entry=0xaffff0f4) at ../../src/r128_output.c:432
On 4/16/23 10:18 PM, Paul Wise wrote:
There is also the case where you launch Xorg via gdb and then run it.
$ gdb `which Xorg`
(gdb) run
(gdb) bt full
Perfect! I was able to get a full backtrace, which is attached. Here's
the part that I think is important:
Program received signal SIGSEGV, Segmentation fault.
0xa6e7cc98 in R128GetConnectorInfoFromBIOS (pScrn=pScrn@entry=0x776620,
432 ../../src/r128_output.c: No such file or directory.otypes=otypes@entry=0xaffff0f4) at ../../src/r128_output.c:432
(gdb) bt full
#0 0xa6e7cc98 in R128GetConnectorInfoFromBIOS (pScrn=pScrn@entry=0x776620,
info = 0x776ed0access memory at address 0x48)>
bios_header = <error reading variable bios_header (Cannot
offset = <optimized out>*otypes)
i = 2
Here's part of the relevant funtion in r128_output.c [1]:
void R128GetConnectorInfoFromBIOS(ScrnInfoPtr pScrn, R128OutputType
{
R128InfoPtr info = R128PTR(pScrn);
uint16_t bios_header, offset;
uint32_t i;
for (i = 0; i < R128_MAX_BIOS_CONNECTOR; i++) {
otypes[i] = OUTPUT_NONE;
}
/* non-x86 platform */
if (!info->VBIOS) {
otypes[0] = OUTPUT_VGA;
}
bios_header = R128_BIOS16(0x48);
There's more after this, but it seems to crash at that last line,
failing to read the memory at 0x48 to get the BIOS' connector info.
On Tuesday, April 18, 2023, Ben Westover wrote:
/* non-x86 platform */
if (!info->VBIOS) {
otypes[0] = OUTPUT_VGA;
}
bios_header = R128_BIOS16(0x48);
almost certainly a NULL pointer from this macro
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 308 |
Nodes: | 16 (2 / 14) |
Uptime: | 91:17:10 |
Calls: | 6,923 |
Calls today: | 1 |
Files: | 12,382 |
Messages: | 5,434,024 |