Search Results

Search: Posts Made By: karthikb23
2,628
Posted By karthikb23
read system call reading the same data
Hi,
I wrote a program, to read from a master terminal.
However, the 'read' system call keeps returning the same data endlessly (I expected it to read once and then block).
What will cause t data...
3,014
Posted By karthikb23
Urgent: Problem with dbx pathmap
HI,
I have compiled and built an executable on machine 'A', with debug.

Thereafter, i have to run the executable on machine 'B'.

On using dbx on machine 'B', it is able to find a symbol...
Forum: Ubuntu 04-27-2008
4,820
Posted By karthikb23
Dual Boot Issue: Other OS cannot boot
Hi,
I currently have XP installed on HD0 and Ubuntu on HD1.

Now on setting the boot device in BIOS, the appropriate Boot Menu comes up (NTLDR or GRUB).

However, each Loader is unable to load...
Forum: Ubuntu 04-26-2008
4,820
Posted By karthikb23
Well, finally got it done! Whew! In the...
Well, finally got it done!
Whew!
In the menu.lst file, I changed hd0 to hd1, and vice-versa.
It so happens that when booting, grub always thinks it is on the first disk.
In this case, it wasnt.
...
Forum: Ubuntu 04-26-2008
4,820
Posted By karthikb23
Urgent Help Needed: Installing Dual Boot Ubuntu
Hi,
I have installed Ubuntu 5.04 on my second Hard Drive. My first HD contains windows.

When i make my 2nd HD as boot device, i see GRUB Menu (i.e. stage 2).
On trying to boot Ubuntu, I get an...
Forum: Programming 04-10-2008
8,163
Posted By karthikb23
Interesting implementation: atol, atof etc
Hi,
Check the following code:

#include <stdio.h>

int main()
{
char *s="123.33";

double d=0.0;

d = (double)atof(s);

printf("s is %2$s, d is %1$f\n", d, s);

d =...
4,181
Posted By karthikb23
Well, first of all - using HP-UX. Anyways,...
Well, first of all - using HP-UX.

Anyways, what i meant is that when u said:
"If you really are blowing the stack - which I doubt - try using heap instead of stack.
In other words make the array...
4,181
Posted By karthikb23
Thanks Jim. Anyways, i thought that all local...
Thanks Jim.
Anyways, i thought that all local variables were allocated on stack.
By what you say, are local arrays (string and int) allocated on heap ?(I know malloc allocates memory on heap).
4,181
Posted By karthikb23
Hi, I basically want to ensure that the above...
Hi,
I basically want to ensure that the above message is because of a stack overflow.

On checking maxssiz using sysdef, i get a value: 0-98048.

This is beleive is the value from 0 - The frame...
4,181
Posted By karthikb23
Help with maxssize
Hi,
I read up about maxssiz when having problems with stack overflow.
I check on the below on my HP-UX as:

Parameter Current Dyn Planned Module Version...
Forum: HP-UX 03-26-2008
8,763
Posted By karthikb23
Problem with stack overflow
Hi,
I get a problem with stack overflow on HP-UX, when running a C program.

Pid 28737 received a SIGSEGV for stack growth failure.
Possible causes: insufficient memory or swap space,
or stack...
Forum: Programming 03-18-2008
3,625
Posted By karthikb23
Incorrect address display by GDB
Hi,
On using GDB debugger on different executables, the address displayed for the symbols seem incorrect, as it shows me the same address in each prorgram, run simultaneoulsy.

eg:
Program:...
Forum: Programming 11-16-2007
5,854
Posted By karthikb23
Thanks a lot guys! seems much more clear now
Thanks a lot guys! seems much more clear now
Forum: Programming 11-14-2007
5,854
Posted By karthikb23
could be, but when i printed out contents of j,...
could be, but when i printed out contents of j, it was "" (obviously, as it is a dummy).
But maybe there could be some garbage in the 15 bytes allocated.
Like u mentioned, it should dump core both...
Forum: Programming 11-14-2007
5,854
Posted By karthikb23
Thanks
Thanks guys for t input.

Well n1, i was thinking on similar lines. Taking it a step further, since j was allocated 15 bytes, even if i input a buffer of say 20 (basically > 15), the program does...
Forum: Programming 11-14-2007
5,854
Posted By karthikb23
i'll try n post t results
i'll try n post t results
Forum: Programming 11-14-2007
5,854
Posted By karthikb23
agree :). However in repeated runs, the program...
agree :). However in repeated runs, the program variables are allocated the same memory location.
Even on reading in a very large string (20 chars) and sending it to sprintf, it is surprising how...
Forum: Programming 11-14-2007
5,854
Posted By karthikb23
Well, on the above lines, i could further deduce:...
Well, on the above lines, i could further deduce:

1. in one case, k was pointing to stdout (dont know how!), coz its memory contents were that of my printf statement, prior to the sprintf....
Forum: Programming 11-14-2007
5,854
Posted By karthikb23
Wierd C program. Help Needed
Hi,
Please see this:
When i make a declaration as:

char *i, j[15], *k;
and then do
sprintf( k, "print.sh %s", i );

the program works fine.

But when i change the declaration to:
char *i,...
Showing results 1 to 19 of 19

 
All times are GMT -4. The time now is 12:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy