Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / May 2005



Tip: Looking for answers? Try searching our database.

Can't even make a core file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dkixk1@gmail.com - 30 May 2005 03:48 GMT
So, I don't understand why I'm not finding a core file...

Damien-Kicks-Computer:~/tmp dkick$ lf
open-office-env.txt     squib*                  squib.cc
squib.cc~
Damien-Kicks-Computer:~/tmp dkick$ ulimit -c
unlimited
Damien-Kicks-Computer:~/tmp dkick$ lf
open-office-env.txt     squib*                  squib.cc
squib.cc~
Damien-Kicks-Computer:~/tmp dkick$ cat squib.cc
#include <iostream>

void f()
{
   int* p = 0;
   *p = 13;
}

int main()
{
   f();
}
Damien-Kicks-Computer:~/tmp dkick$ make -f/dev/null squib
make: `squib' is up to date.
Damien-Kicks-Computer:~/tmp dkick$ ./squib
Bus error (core dumped)
Damien-Kicks-Computer:~/tmp dkick$ lf
open-office-env.txt     squib*                  squib.cc
squib.cc~
Damien-Kicks-Computer:~/tmp dkick$ uname -a
Darwin Damien-Kicks-Computer.local 7.9.0 Darwin Kernel Version 7.9.0:
Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC
Power Macintosh powerpc
Damien-Kicks-Computer:~/tmp dkick$ gcc -v
Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1666)
Damien-Kicks-Computer:~/tmp dkick$
Benjamin Riefenstahl - 30 May 2005 12:43 GMT
Hi,

dkixk1 writes:
> Damien-Kicks-Computer:~/tmp dkick$ ./squib
> Bus error (core dumped)
> Damien-Kicks-Computer:~/tmp dkick$ lf
> open-office-env.txt     squib*                  squib.cc
> squib.cc~

Try "lf /cores"

benny
dkixk1@gmail.com - 30 May 2005 23:27 GMT
> Hi,
>
[quoted text clipped - 6 lines]
>
> Try "lf /cores"

Ah... that's what I was missing.  Thanks.  Is this purely a
Mac-OS-X-ism or is this something inheritted from BSD?  My UNIX
programming experience is mostly on Solaris with a bit of the
GNU/Linux, and so I was looking in the current working directory.
Benjamin Riefenstahl - 30 May 2005 23:34 GMT
Hi,

>> Try "lf /cores"

dkixk1 writes:
> Ah... that's what I was missing.  Thanks.  Is this purely a
> Mac-OS-X-ism or is this something inheritted from BSD?

I don't know for sure, but it's probably a specific setting on Mac OS
X.

benny
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.