HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Segmentation fault
Operating System - Linux
1825882
Members
2853
Online
109689
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 10:06 PM
09-13-2004 10:06 PM
Segmentation fault
This fault is happening when calling a fonction :
Program terminated with signal 11, Segmentation fault.
#0 0x6ff3597c in _sigfillset+0x61c () from /usr/lib/libc.2
(gdb) where
#0 0x6ff3597c in _sigfillset+0x61c () from /usr/lib/libc.2
#1 0x6ff33734 in _sscanf+0x67c () from /usr/lib/libc.2
#2 0x6ff38cfc in malloc+0x18c () from /usr/lib/libc.2
#3 0x6fa75e88 in mem_malloc+0x50 ()
Best regards,
R. Mufti
Program terminated with signal 11, Segmentation fault.
#0 0x6ff3597c in _sigfillset+0x61c () from /usr/lib/libc.2
(gdb) where
#0 0x6ff3597c in _sigfillset+0x61c () from /usr/lib/libc.2
#1 0x6ff33734 in _sscanf+0x67c () from /usr/lib/libc.2
#2 0x6ff38cfc in malloc+0x18c () from /usr/lib/libc.2
#3 0x6fa75e88 in mem_malloc+0x50 ()
Best regards,
R. Mufti
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2004 01:28 AM
09-14-2004 01:28 AM
Re: Segmentation fault
Memoru allocation is getting failed there.
Try to analyse frame by frame as,
gdb) info f 0
zero'th frame information's will be given.
what program did you try to execute there.?
I hope your tried to get the wrong type of input with scanf() call there after memory allocation. It is good to have your code to analyse more.
Try to analyse frame by frame as,
gdb) info f 0
zero'th frame information's will be given.
what program did you try to execute there.?
I hope your tried to get the wrong type of input with scanf() call there after memory allocation. It is good to have your code to analyse more.
Easy to suggest when don't know about the problem!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2005 03:47 AM
10-28-2005 03:47 AM
Re: Segmentation fault
is your problem still resolved?
I am also facing the same problem. Any pointers?
I am also facing the same problem. Any pointers?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2005 08:04 PM
10-30-2005 08:04 PM
Re: Segmentation fault
It would help if you could post the relevent portion of source code. One common mistake in using scanf() functions is that if the argument is say an integer you need to pass the address of where you want to store it, rather than just the name of a variable.
e.g.
int a, b, c;
int rc;
char * buffer = "1 2 3";
rc = sscanf(buffer, "%d %d %d", &a, &b, &c);
NOT
rc = sscanf(buffer, "%d %d %d", a, b, c);
e.g.
int a, b, c;
int rc;
char * buffer = "1 2 3";
rc = sscanf(buffer, "%d %d %d", &a, &b, &c);
NOT
rc = sscanf(buffer, "%d %d %d", a, b, c);
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP