Help!

Undefined SysCall

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> System Development RSS
Next:  Newbie: allocating aligned physically-contiguous ..  
Author Message
Scott J. McCaughrin
External


Since: Jun 13, 2007
Posts: 8



PostPosted: Thu Jul 12, 2007 11:11 pm    Post subject: Undefined SysCall
Archived from groups: comp>os>linux>development>system (more info?)

I have a RedHat Linux V Enterprise box with GNU 4.1: while inspecting
the glib, I found that: pthreadlib.a contains a `pthread_create.o'
with the lines:

mov eax,0x137 ;set EAX = 311 (decimal)
int 0x80 ;syscall with undefined code

My x86_64 box only has syscall numbers up to 0x117 (279 decimal),
according to asm/unistd.h. I perused asm-x86_64/unistd.h and other
syscall.h files, to no avail -- 0x137 seems undefined on my box.
Any idea what 0x137 is the syscall code for?
I objdump'd /usr/lib/pthreadlib.a and did not run the extracted
object (pthread_create.o) through any filters.

Thanks for any insights,
-- Scott
Back to top
Paul Pluzhnikov
External


Since: Nov 07, 2004
Posts: 355



PostPosted: Sun Jul 15, 2007 6:53 am    Post subject: Re: Undefined SysCall [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Scott J. McCaughrin" <sjmccaug.TakeThisOut@128.174.154.110> writes:

> I have a RedHat Linux V Enterprise box with GNU 4.1: while inspecting
> the glib, I found that: pthreadlib.a contains a `pthread_create.o'
> with the lines:
>
> mov eax,0x137 ;set EAX = 311 (decimal)
> int 0x80 ;syscall with undefined code
>
> My x86_64 box only has syscall numbers up to 0x117 (279 decimal),

On Fedora Core 6 (kernel 2.6.19), /usr/include/asm-i386/unistd.h:
....
#define __NR_set_robust_list 311
#define __NR_get_robust_list 312
#define __NR_splice 313
#define __NR_sync_file_range 314
#define __NR_tee 315
#define __NR_vmsplice 316
#define __NR_move_pages 317
#define __NR_getcpu 318
#define __NR_epoll_pwait 319

#endif /* _ASM_I386_UNISTD_H_ */

It is a "standard" glibc technique to issue e.g.
syscall(__NR_set_robust_list), and fall back to other mechanism if
it returns ENOSYS.

Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
Back to top
Jan Kandziora
External


Since: Dec 25, 2004
Posts: 172



PostPosted: Sun Jul 15, 2007 1:40 pm    Post subject: Re: Undefined SysCall [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Scott J. McCaughrin schrieb:

> I have a RedHat Linux V Enterprise box with GNU 4.1: while inspecting
> the glib, I found that: pthreadlib.a contains a `pthread_create.o'
> with the lines:
>
> mov eax,0x137 ;set EAX = 311 (decimal)
> int 0x80 ;syscall with undefined code
>
Are you sure you are not listing garbage e.g. a not continously aligned code
section?

Kind regards

Jan
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> System Development All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum