Bug 114845 - _exit() in IA32 comaptibility lib calls unimplemented syscall
Summary: _exit() in IA32 comaptibility lib calls unimplemented syscall
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: glibc   
(Show other bugs)
Version: 3.0
Hardware: ia64
OS: Linux
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
Depends On:
TreeView+ depends on / blocked
Reported: 2004-02-03 15:34 UTC by Martin Wilck
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version: 107116
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-02-09 15:52:21 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Martin Wilck 2004-02-03 15:34:18 UTC
Description of problem:
The _exit() function in libc(IA32) calls syscall 252 (exit_group)
which is unimplemented in the IA64 emulation. exit() is called anyway,
so this may not have major adverse effects. However, the wrong syscall
generates an ugly syslog message. Moreover, there are many other
unimplemented ia32 syscalls, some of which are called on a regular
basis by ia32 applications. 

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. compile "Hello World" C Program on i386 (using shared libs)
2. run generated executable on ia64

Actual results:
/var/log/messages entry:
kernel: IA32 syscall #252 issued, maybe we should implement it

Expected results:
No error message

Additional info:
There are a number of other syscalls that cause similar error
messages, I have seen #258 (set_tid_address) and #270 (tgkill).

Comment 1 Martin Wilck 2004-02-03 15:39:42 UTC
I know you want to mark this as a duplicate of BUG 107116.

Before you do so, hgave a look at this code:


_exit (status)
     int status;
  while (1)
#ifdef __NR_exit_group
      INLINE_SYSCALL (exit_group, 1, status);
      INLINE_SYSCALL (exit, 1, status);


Looking at this code, it seems that this file includes wrong kernel
headers suggesting that the exit_group() syscall exists. 

IMO there'd be an easy way to handle this problem: include correct
kernel headers that do not define NR_exit_group and other NR_ macros
for unimplemented syscalls on ia64/ia32.

Comment 2 Jakub Jelinek 2004-02-09 15:52:21 UTC
exit_group is implemented on i386, therefore it is of course in
i386 headers.  Compatibility libraries certainly shouldn't differ
from the real ones, it really either needs to be implemented in the
kernel, or implemented in the emulator.

Comment 3 Martin Wilck 2004-02-09 17:30:05 UTC
I fail to see why a compatibility library should invoke unimplemented
system calls. Actually, I consider that pretty dangerous. 

To my understanding, what mainly matters is the ABI exposed by the
library to applications, not the kernel interface.

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