Bug 211112
Summary: | sudo occasionally segfaults | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | James Olin Oden <james.oden> | ||||
Component: | sudo | Assignee: | Peter Vrabec <pvrabec> | ||||
Status: | CLOSED WORKSFORME | QA Contact: | Ben Levenson <benl> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 4.4 | CC: | herrold | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i386 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2007-03-28 11:56:03 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: | |||||||
Attachments: |
|
Description
James Olin Oden
2006-10-17 14:15:55 UTC
I can't reproduce it on x86_64 :-(. Could you send coredump file, please. Sure, just attach it as an attachement or send it to your email? The attachment is alright. Created attachment 139725 [details]
core file
Note that this is a FC6 kernel (w 4 device related patches) Linux gt40 2.6.18-1.2798prerel3.0.0_60.25.0PAE #1 SMP Wed Oct 25 18:58:20 EDT 2006 i686 athlon i386 GNU/Linux running on a CentOS 4.3 userland. Even with that variance, I'm surprised to see a sudo core dump. The core dump itself is rather odd. Lemme try to see if I can't simplify the problem some by varying how sudo is compiled and perhaps what glibc is installed. Backing out the WITH_SELINUX patch does not fix the segfault. Backing out "F_PIE=-fpie LDFLAGS=-pie" does fix the segfault. So PIE using a 2.6.18 kernel and glibc from RHLE4/CentOS4 appear to have an intrinsic difference wrto PIE (my hunch only, consistent with the oddly uniformative core dump). The segfault is not corrected by doing (together or individually): echo "0" > /proc/sys/kernel/randomize_va_space echo "0" > /proc/sys/kernel/exec-shield The segfault is invariant to execstack {-s|-c} /usr/bin/sudo So the only known "fix" I know of is removing -fpie and -pie from compiler/linkage flags. |