Re: glusterd crashes when synctask is used in conjunction with inner functions.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Oops. I misunderstood the argument to be argument to the inner
function as opposed to command line argument to the program.
Experiment worked!

thanks,
krish

----- Original Message -----
From: "Jeff Darcy" <jdarcy@xxxxxxxxxx>
To: "Krishnan Parthasarathi" <kparthas@xxxxxxxxxx>
Cc: gluster-devel@xxxxxxxxxx
Sent: Tuesday, October 9, 2012 12:21:29 AM
Subject: Re: glusterd crashes when synctask is used in conjunction with inner functions.

On 10/08/2012 02:43 PM, Krishnan Parthasarathi wrote:
> I tried the experiment you had suggested. The following are the 
> changes I made to 'inner' function to take a single integer arg.
> On compiling (gcc inner.c) and running, I didn't see any crash :(

Are you sure you ran it both with and without arguments?  Without arguments it
doesn't overwrite the stack and you won't see a crash with either version.
With arguments it does overwrite the stack and you should see a crash (I did)
with either version.

jdarcy@jdarcy-dt snippets 14:46
$ ./inner
in outer function
in inner function, result = 0x5678:5678
in inner function, result = 0x5678:42
jdarcy@jdarcy-dt snippets 14:46
$ ./inner xxx
in outer function
in inner function, result = 0x5678:5678
rewriting stack
Segmentation fault (core dumped)





[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux