I am making a command line program in C using XCode. When running the program, it initially does what it is supposed to do (asks me for a file path). However, when I type in a valid and existing file path, it gives me the following error:
I have two warnings in my program, both of which have to do with the function strcat. The warnings are:
and
I am wondering why my program is not executing properly.
Thanks,
Mike
My code is posted below:
EDIT: Maybe it has to do with allocating the chars?
Last edited by mdonova33; 05-21-2011 at 06:56 PM..
I ran degugger in C++ and the followings are the message I got:
Program received signal SIGABRT, Aborted.
0x002a57a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
(gdb) info s
#0 0x002a57a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1 0x002e97f5 in raise () from /lib/tls/libc.so.6... (1 Reply)
Dear all,
I used debugger from C++ and these are the message I got:
Program received signal SIGSEGV, Segmentation fault.
0x00323fc0 in free () from /lib/tls/libc.so.6
(gdb) info s
#0 0x00323fc0 in free () from /lib/tls/libc.so.6
#1 0x00794fa1 in operator delete () from... (5 Replies)
Discussion started by: napapanbkk
5 Replies
3. Forum Support Area for Unregistered Users & Account Problems
Hello,
One of our customer is getting segmentation fault when he runs his shell script which invokes our executable on AIX 6.1.
On AIX 5.3, there were no issues.
Here is the truss output.
811242: __loadx(0x0A040000, 0xF0D3A26C, 0x00000000, 0x00000009, 0x00000000) = 0xF026E884... (0 Replies)
Hi to all,
i am trying to make mksysb backup of a NIM client machine from NIM master and while i am reading that the backup is done successfully i get an error message below and it doesnt exit the smit screen. also the status of the command appears to be running.
is there anybody who knows why... (3 Replies)
in a single main() function,so need signal handling. Use Posix Message Queue IPC mechanism , can ignore the priority and other linked list message,to implement the scenario:
client:Knock Knock
server:who's there
client: Eric
Server:Eric,Welcome.
client:exit
all process terminated
... (1 Reply)
Im using gdb and when a user disconnects from my server I receive a message
Program received signal SIGABRT, Aborted.
0x7ffe0304 in ?? ()
I was hoping someone here might have a explination for this message in gdb (26 Replies)
Discussion started by: Errigour
26 Replies
8. Forum Support Area for Unregistered Users & Account Problems
I have tried to register today with the username BatterBits, but have not received the activation email
I do not live in any of the restricted countries - unless the UK has suddenly become a threat!
I'd be grateful if you would assist.
many thanks
Ian (2 Replies)
I have a program that i need to get done that gets the person's name and his grade then prints it in this order "name-grade-gradeletter" so i wrote this code:
#!/bin/bash
while :; do
read -p "Enter the person's name: " name
read -p "Enter the grade of the person: " grade
case $grade in
)... (3 Replies)
Multiple questions coming your way.
A little back ground info as to why I am back to basics.
A dear friend of mine passed away recently and as a request by him I have promised to keep his project alive. The problem I have it was being handed over when he was in the last weeks of his life and... (1 Reply)
Discussion started by: nobbyall
1 Replies
LEARN ABOUT DEBIAN
drracket
DRRACKET(1) General Commands Manual DRRACKET(1)NAME
drracket - the Racket programming environment
SYNOPSIS
drracket [ Xoption ... ] [ file ... ]
DESCRIPTION
DrRacket is the Racket programming environment.
The drracket program treats non-switch command-line arguments as files to open.
X OPTIONS
When running in X11, DrRacket accepts the following standard Xoptions: -display disp, -geometry geom, -bg color, -background color, -fg
color, -foreground color, -fn font, -font font, -iconic, -name name, -rv, -reverse, +rv, -selectionTimeout time, -synchronous, -title name,
-xnllanguage lang, -xrm file.
In addition, the option -singleInstance is treated like an X option (it must appear before all other options), and it runs DrRacket in sin-
gle-instance mode. In single-instance mode, when an existing instance is running with the same host and executable name, all non-option
arguments are treated as file names and sent to the existing instance.
MORE INFORMATION
For further information, run
raco docs
to open installed documentation in your web browser.
Alternately, consult the on-line documentation and other information available at
http://racket-lang.org/
AUTHOR
DrRacket was implemented by PLT.
SEE ALSO raco(1), racket(1), gracket(1)4th Berkeley Distribution May 2010 DRRACKET(1)