01-22-2015
Well, 'core' is a real file, somewhere, and it has to be produced (by allowing configuration) and properly pathed for gdb to open it. The dying process puts it in $PWD/core. Once gdb is up, 'where' will get you down to a subroutine. Of course, you need source and it helps if the compile options and lack of stripping make the crashing object easy to debug. Sometiems fate is cruel, and it only bombs if you compile it without symbols! There is also running it under truss/tusc/strace to get some idea of what calls preceded the crash.
10 More Discussions You Might Find Interesting
1. Programming
Hi,
Why I don't receive a segmentation fault in the following sample.
int main(void)
{
char buff;
sprintf(buff,"Hello world");
printf("%s\n",buff);
}
If I define a buffer of 10 elements and I'm trying to put inside it twelve elements, Should I receive a sigsev... (22 Replies)
Discussion started by: lagigliaivan
22 Replies
2. UNIX for Dummies Questions & Answers
Hi,
While comparing primary key data of two tables thr bteq script I am getting this Error. This script is a shell script.
*** Error: The following error was encountered on the output file.
Script.sh: 3043492 Segmentation fault(coredump)
Please let me know how to get through it.
... (5 Replies)
Discussion started by: monika
5 Replies
3. Programming
If I do this.
Assume
struct life
{
char *nolife;
}
struct life **life;
// malloc initialization & everything
if(life->nolife == 0)
Would I get error at life->nolife if it is equal to 0.
wrong accession? (3 Replies)
Discussion started by: joey
3 Replies
4. Programming
What is segmentation fault(core dumped) (1 Reply)
Discussion started by: gokult
1 Replies
5. Programming
I'm getting a segmentation fault. I'm new to Linux programming. Thanks so much for all of your input.:eek:
#include </usr/include/mysql++/mysql++.h>
#include <stdio.h>
#include <iostream>
#include <sstream>
#include <string.h>
using namespace std;
int outputToImport(const char*... (1 Reply)
Discussion started by: sepoto
1 Replies
6. Programming
This code is causing a segmentation fault and I can't figure out why. I'm new to UNIX and I need to learn how to avoid this segmentation fault thing. Thank you so much. Thanks also for the great answers to my last post.:):b:
int main()
{
mysqlpp::Connection conn(false);
if... (3 Replies)
Discussion started by: sepoto
3 Replies
7. Programming
i have this code
int already_there(char *client_names, char *username) {
int i;
for(i = 0; i<NUM; i++) {
printf("HERE\n");
if (strcmp(client_names, username)==0) return(1);
}
return(0);
}
and i get a segmentation fault, whats wrong here? (7 Replies)
Discussion started by: omega666
7 Replies
8. Programming
Hello everyone,
I am using the debugger from C++ and these are the message I got:
Program received signal SIGSEGV, Segmentation fault.
0x0040cc0e in malloc_consolidate (av=0x4ff3c0) at malloc.c:5169
in malloc.c
I don't know if the problem is cause i'm trying to acess an invalid memory... (1 Reply)
Discussion started by: juliecf5
1 Replies
9. Programming
I use a binary name (ie polo) it gets some parameter , so for debugging normally i do this :
i wrote script for watchdog my app (polo) and check every second if it's not running then start it , the problem is , if my app , remain in state of segmentation fault for a while (ie 15 ... (6 Replies)
Discussion started by: pooyair
6 Replies
10. Programming
Oddities with gcc, 2.95.3 for the AMIGA and 4.2.1 for MY current OSX 10.14.1...
I am creating a basic calculator for the AMIGA ADE *NIX emulator in C as it does not have one.
Below are two very condensed snippets of which I have added the results inside the each code section.
IMPORTANT!... (11 Replies)
Discussion started by: wisecracker
11 Replies
LEARN ABOUT DEBIAN
progen
PROGEN(1) General Commands Manual PROGEN(1)
NAME
progen - create project files for tmake(1)
SYNOPSIS
progen [options] [C/C++ header/source files]
DESCRIPTION
This manual page documents briefly the progen command. This manual page was written for the Debian GNU/Linux distribution because the
original program does not have a manual page. Instead, it has documentation in HTML format; see below.
The progen(1) utility creates tmake(1) project files.
OPTIONS
-h, --help
Show summary of options.
-lower Lower-case letters in filenames (useful on Windows).
-n name
Specify a project name (TARGET).
-o file
Write output to file instead of stdout.
-t file
Specify a template file.
EXAMPLE
The progen(1) utility can be used like this:
progen -n hello -o hello.pro
If no .cpp or .h files are specified on the command line, progen(1) searches for .cpp and .h (except moc_*.cpp) in the current directory
and below.
SEE ALSO
The full documentation for progen is maintained as an HTML manual, located in /usr/share/doc/tmake/html/, and is available through
dhelp(1), Debian's help system.
AUTHOR
This manual page was written by Dwayne C. Litzenberger <dlitz@dlitz.net>, for the Debian GNU/Linux system (but may be used by others).
January 12, 2000 PROGEN(1)