03-12-2013
Perhaps if you showed us the code that is crashing(not just the line, but some before it as well) we could point you at what you should check out in more detail.
This User Gave Thanks to Corona688 For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
After installing glibc 2.2.2 on my redhat 6.1 (with all necessary updates). I try to restart but my compter say i do not existst like you deleted root account and you are root. (i have seen people doing that ;-P ). I run configure with these command --bindir=/bin --sbindir=/sbin --libdir=/lib... (1 Reply)
Discussion started by: jurrien
1 Replies
2. UNIX for Advanced & Expert Users
Hi,
I have downloaded glibc-2.6.1.tar.tar. But I do not know how to install it on Xubuntu. Do you know ?
Thank you. (4 Replies)
Discussion started by: big123456
4 Replies
3. Programming
Hi All,
This is my first time posting on this forum. I'd like to
participate actively on this list.
Here we go!
I'm making a little application and I'm using ncurses. After a while
using it, I receive the following error and the stack trace is shown:
***glibc detected*** malloc() :... (6 Replies)
Discussion started by: lagigliaivan
6 Replies
4. UNIX for Dummies Questions & Answers
Hi
I have a strange phenomenon on putty session connected to RHEL4 server.
My session is active but without any activity for 2 or 3 hours and suddenly this message appears on the prompt :
$ *** glibc detected *** free(): invalid pointer: 0xb66e0d50 ***
Could you have an idea about it ? (2 Replies)
Discussion started by: madmat
2 Replies
5. Ubuntu
I need glibc version 2.2 - 2.11 for a installation. but i got glibc 2.0-2.1 from software centre... what to do? can u help? (8 Replies)
Discussion started by: paramad
8 Replies
6. UNIX for Dummies Questions & Answers
what's the relationship among locale, glibc, charset, charmap and fonts?
why locale needs to be generated by glibc? how?
what are in the locale-archive file?
and what are in font files? (0 Replies)
Discussion started by: vistastar
0 Replies
7. UNIX for Dummies Questions & Answers
I need help updating the glibc in my suse box.
I have no clue how to do this and I am afraid of breaking this box.
Can someone please give me some direction?
Thanks! (2 Replies)
Discussion started by: OptimusPrime1
2 Replies
8. UNIX for Advanced & Expert Users
hi all,
i am play LFS recently. but i can not go on for a an error when install glibc.
here is the error log:
if test -r /usr/include/gnu/stubs-32.h && cmp -s /mnt/lfs/sources/glibc-build/stubs.h /usr/include/gnu/stubs-32.h; \
then echo 'stubs.h unchanged'; \
else /usr/bin/install -c... (1 Reply)
Discussion started by: arnold.king
1 Replies
9. Programming
In glibc in file strcmp I see a definition of strcmp function and below it there is a macro "libc_hidden_builtin_def (strcmp)".
This macro "libc_hidden_builtin_def (strcmp)" looks to be defining some platform(x32-64, i386) specific implementation of strcmp.
Question is when is this... (7 Replies)
Discussion started by: rupeshkp728
7 Replies
10. Red Hat
Hi,
I hoping someone can help me. I am running a 64 bit RH 6.5 Server, and have to install glibc.686 for a Symantec package I need to install. A prerequisite for glibc.686 is glibc-common. I'm trying to install this manually, as it's not on our local repository, but when I try, I get the... (1 Reply)
Discussion started by: badoshi
1 Replies
LEARN ABOUT V7
sched_getcpu
SCHED_GETCPU(3) Linux Programmer's Manual SCHED_GETCPU(3)
NAME
sched_getcpu - determine CPU on which the calling thread is running
SYNOPSIS
#include <sched.h>
int sched_getcpu(void);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
sched_getcpu():
Since glibc 2.14:
_GNU_SOURCE
Before glibc 2.14:
_BSD_SOURCE || _SVID_SOURCE
/* _GNU_SOURCE also suffices */
DESCRIPTION
sched_getcpu() returns the number of the CPU on which the calling thread is currently executing.
RETURN VALUE
On success, sched_getcpu() returns a nonnegative CPU number. On error, -1 is returned and errno is set to indicate the error.
ERRORS
ENOSYS This kernel does not implement getcpu(2).
VERSIONS
This function is available since glibc 2.6.
ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7).
+---------------+---------------+---------+
|Interface | Attribute | Value |
+---------------+---------------+---------+
|sched_getcpu() | Thread safety | MT-Safe |
+---------------+---------------+---------+
CONFORMING TO
sched_getcpu() is glibc-specific.
NOTES
The call
cpu = sched_getcpu();
is equivalent to the following getcpu(2) call:
int c, s;
s = getcpu(&c, NULL, NULL);
cpu = (s == -1) ? s : c;
SEE ALSO
getcpu(2), sched(7)
COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the
latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.
Linux 2017-09-15 SCHED_GETCPU(3)