Description of problem: 32-bit processes kernel-produced core files on x86_64 kernel are broken. At least the whole PRPSINFO does not get parsed. Version-Release number of selected component (if applicable): kernel-2.6.25-0.65.rc2.git7.fc9.x86_64 How reproducible: Always. Steps to Reproduce: 1. ulimit -c unlimited;runtest --target_board=unix/-m32 gdb.base/auxv.exp Actual results: FAIL: gdb.base/auxv.exp: load core file for info auxv on native core dump FAIL: gdb.base/auxv.exp: matching auxv data from live and core Expected results: FAIL: gdb.base/auxv.exp: matching auxv data from live and core Additional info: OK - kernel-2.6.23.14-107.fc8.x86_64 (Fedora 8) Note segment of 1132 bytes at offset 0x254: Owner Data size Type CORE 144 PRSTATUS info.si_signo: 6, info.si_code: 0, info.si_errno: 0, cursig: 6 sigpend: 00000000000000000000000000000000 sighold: 00000000000000000000000000000000 pid: 1479, ppid: 1476, pgrp: 1479, sid: 1476 utime: 0.000000, stime: 0.000000, cutime: 0.000000, cstime: 0.000000 orig_eax: 270, fpvalid: 1 ebx: 1479 ecx: 1479 edx: 6 esi: -4671556 edi: 5545972 ebp: 0xffb8b704 eax: 0 eip: 0xffffe410 eflags: 0x00000296 esp: 0xffb8b704 ds: 0x002b es: 0x002b fs: 0x0000 gs: 0x0063 cs: 0x0023 ss: 0x002b CORE 124 PRPSINFO state: 0, sname: R, zomb: 0, nice: 0, flag: 0x00402600 uid: 502, gid: 502, pid: 1479, ppid: 1476, pgrp: 1479, sid: 1476 fname: auxv, psargs: /home/jkratoch/redhat/fedora/gdb/devel-biarch/gdb-6.7.1/build-x86_64-redhat-lin CORE 144 AUXV SYSINFO: 0xffffe400 SYSINFO_EHDR: 0xffffe000 HWCAP: 0xbfebfbff <fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe> PAGESZ: 4096 CLKTCK: 100 PHDR: 0x8048034 PHENT: 32 PHNUM: 8 BASE: 0 FLAGS: 0 ENTRY: 0x8048320 UID: 502 EUID: 502 GID: 502 EGID: 502 SECURE: 0 PLATFORM: 0xffb8bacb NULL CORE 108 FPREGSET st0: 0x00000000000000000000 st1: 0x00000000000000000000 st2: 0x00000000000000000000 st3: 0x00000000000000000000 st4: 0x00000000000000000000 st5: 0x00000000000000000000 st6: 0x00000000000000000000 st7: 0x00000000000000000000 fctrl: 0x037f fstat: 0xffff LINUX 512 PRXFPREG BAD - kernel-2.6.25-0.65.rc2.git7.fc9.x86_64 Note segment of 544 bytes at offset 0x254: Owner Data size Type CORE 144 PRSTATUS info.si_signo: 6, info.si_code: 0, info.si_errno: 0, cursig: 6 sigpend: 00000000000000000000000000000000 sighold: 00000000000000000000000000000000 pid: 2141, ppid: 2138, pgrp: 2141, sid: 2138 utime: 0.006998, stime: 0.021996, cutime: 0.000000, cstime: 0.000000 orig_eax: 270, fpvalid: 0 ebx: 2141 ecx: 2141 edx: 6 esi: -6029316 edi: 5545972 ebp: 0xffa3ff44 eax: 0 eip: 0x00110430 eflags: 0x00000296 esp: 0xffa3ff44 ds: 0x002b es: 0x002b fs: 0x0000 gs: 0x0063 cs: 0x0023 ss: 0x002b CORE 128 PRPSINFO CORE 144 AUXV SYSINFO: 0x110420 SYSINFO_EHDR: 0x110000 HWCAP: 0x78bfbfd <fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2> PAGESZ: 4096 CLKTCK: 100 PHDR: 0x8048034 PHENT: 32 PHNUM: 8 BASE: 0 FLAGS: 0 ENTRY: 0x8048320 UID: 502 EUID: 502 GID: 502 EGID: 502 SECURE: 0 PLATFORM: 0xffa4030b NULL LINUX 48 <unknown>: 512
Created attachment 295751 [details] Broken core file (gzipped)
Created attachment 295752 [details] Correct core file (gzipped) - from kernel-2.6.23.14-107.fc8.x86_64
Fix sent upstream, should get into 2.6.25 and rawhide RSN.