When I try with gdb, i receive the following output (gdb) r Starting program: /garl/garl-alpha1/home1/raghu/Desktop/hadoop-0.15.3/src/c++/libhdfs/hdfs_test
Program received signal SIGSEGV, Segmentation fault. 0x00000001 in ?? () Dont know what to make out of it. On Thu, Feb 21, 2008 at 5:06 PM, Miles Osborne <[EMAIL PROTECTED]> wrote: > Since you are compiling a C(++) program, why not add the -g switch and run > it within gdb: that will tell people which line it crashes at (etc etc) > > Miles > > On 21/02/2008, Raghavendra K <[EMAIL PROTECTED]> wrote: > > > > Hi, > > I am able to get Hadoop running and also able to compile the libhdfs. > > But when I run the hdfs_test program it is giving Segmentation Fault. > > Just a small program like this > > #include "hdfs.h" > > int main() { > > return(0); > > } > > and compiled using the command > > gcc -ggdb -m32 > -I/garl/garl-alpha1/home1/raghu/Desktop/jre1.5.0_14/include > > -I/garl/garl-alpha1/home1/raghu/Desktop/jre1.5.0_14/include/ hdfs_test.c > > -L/garl/garl-alpha1/home1/raghu/Desktop/hadoop-0.15.3/libhdfs -lhdfs > > -L/garl/garl-alpha1/home1/raghu/Desktop/jre1.5.0_14/lib/i386/server > -ljvm > > -shared -m32 -Wl,-x -o hdfs_test > > running hdfs_test gives segmentation fault. > > please tell me as to how to fix it. > > > > > > > > -- > > Regards, > > > > Raghavendra K > > > > > > -- > The University of Edinburgh is a charitable body, registered in Scotland, > with registration number SC005336. > -- Regards, Raghavendra K