Bug 143767

Summary: ia32el doesn't use the values of kernel parameters about core file.
Product: Red Hat Enterprise Linux 4 Reporter: L3support <linux-sid>
Component: ia32elAssignee: Jakub Jelinek <jakub>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: yoav.zach
Target Milestone: ---   
Target Release: ---   
Hardware: ia64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-12-27 12:00:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description L3support 2004-12-27 11:38:28 UTC
Description of problem:
ia32el doesn't use kernel parameters related to core file when ia32el
creates a elf32 core file.

Version-Release number of selected component (if applicable):
ia32el-1.1-13.ia64.rpm 

How reproducible:
always

Steps to Reproduce:
1. set kernel parameters

   # echo /tmp/mycore-%e-%p-%t > /proc/sys/kernel/core_pattern
   # echo 0 > /proc/sys/kernel/core_uses_pid 
   #
   # cat /proc/sys/kernel/core_pattern
   /tmp/mycore-%e-%p-%t
   # cat /proc/sys/kernel/core_uses_pid
   0

2. compile test program

   <elf64>
   compile on ia64 machine
   # cat test.c
   main()
   {
       int *p, *q;
       p=0;
       *q=*p;
   }
   # cc -o test_ia64 test.c
   
   <elf32>
   compile on i32 machine
   # cc -o test_ia32 test.c

3. run test program

   # pwd
   /var/tmp/work
   # ./test_ia64
   Segmentation fault (core dumped)
   # ./test_ia32
   Segmentation fault (core dumped)
   
   # ls /tmp
   mycore-test_ia64-17731-1104145866
   # ls /var/tmp/work
   core.17732
  
Actual results:
   # ls /var/tmp/work
   core.17732

Expected results:
   # ls /tmp
   mycore-test_ia32-17732-xxxxxxxxxxx

Additional info:

Comment 1 Jakub Jelinek 2004-12-27 12:00:51 UTC

*** This bug has been marked as a duplicate of 143769 ***