Bug 151262 - random user space segfaults with exec-shield-randomize
random user space segfaults with exec-shield-randomize
Status: CLOSED DUPLICATE of bug 154759
Product: Fedora
Classification: Fedora
Component: kernel (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Dave Jones
Brian Brock
:
: 153271 (view as bug list)
Depends On:
Blocks: FC4Blocker
  Show dependency treegraph
 
Reported: 2005-03-16 10:21 EST by Harald Hoyer
Modified: 2015-01-04 17:17 EST (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-05-07 21:50:13 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Harald Hoyer 2005-03-16 10:21:26 EST
$ uname -r
2.6.11-1.1177_FC4smp

ntpd randomly segfaults, compiled with the default RPM_OPT_FLAGS...
turning off exec-shield-randomize cures the segfaults

valgrind, efence do not show anything wrong..

a small test app:
int main(int argc, char **argv)
{
        return 0;
}

compiled with gcc4 and -fstack-check 
 gcc -O2 -Wall -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -m32 -march=i386 -mtune=pentium4
-g -DDEBUG -D_FORTIFYSOURCE=2 -Wall  -Wall -Wcast-qual -Wmissing-prototypes
-Wpointer-arith -Wshadow -Wstrict-prototypes -fstack-check -o main main.c

segfaults also randomly with exec-shield-randomize
Comment 1 Harald Hoyer 2005-03-16 10:22:21 EST
problem with gcc, glibc or kernel??
Comment 2 Harald Hoyer 2005-03-16 10:37:25 EST
ok, forget the -fstack-check
Comment 3 Harald Hoyer 2005-03-16 11:26:33 EST
ntpd compiled with gcc32, same symptoms...
Comment 4 Russell Coker 2005-04-10 13:20:44 EDT
*** Bug 153271 has been marked as a duplicate of this bug. ***
Comment 5 Warren Togami 2005-04-10 15:21:05 EDT
What arch?
Comment 6 Russell Coker 2005-04-10 18:06:11 EDT
For me it's Intel, a P4. 
Comment 7 Harald Hoyer 2005-04-11 06:06:11 EDT
model name      : Intel(R) Pentium(R) 4 CPU 3.00GHz
Comment 8 Orion Poplawski 2005-04-26 13:57:52 EDT
I'm seeing a lot of ntpd startup failures on FC3 and ntp-4.2.0.a.20040617-4

random, e.g.:


uname({sys="Linux", node="cynosure", ...}) = 0
gettimeofday({1114538224, 941201}, NULL) = 0
gettimeofday({1114538224, 941911}, NULL) = 0
gettimeofday({1114538224, 942277}, NULL) = 0
gettimeofday({1114538224, 942659}, NULL) = 0
gettimeofday({1114538224, 943019}, NULL) = 0
gettimeofday({1114538224, 943393}, NULL) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---

close(4)                                = 0
rt_sigaction(SIGSYS, {0xc5b3a0, [], SA_RESTORER, 0x1548c8}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
adjtimex({modes=61, offset=-1162, freq=5172136, maxerror=16, esterror=16,
status=64, constant=0, precision=1, tolerance=33554432, time={1114538247,
657822}}) = 5
rt_sigaction(SIGSYS, {SIG_DFL}, NULL, 8) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
Comment 9 Warren Togami 2005-04-26 20:17:32 EDT
Can someone verify if this is the same issue as Bug 154759 which affects FC3
with 2.6.11 kernel?
Comment 10 Orion Poplawski 2005-04-27 10:44:58 EDT
Looks like it to me.  Sorry about that.
Comment 11 Warren Togami 2005-05-07 21:50:13 EDT

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

Note You need to log in before you can comment on or make changes to this bug.