On Wednesday 06 December 2006 04:27, 孙海成 wrote:
> Hi,all
> when I'm working on get bacula-rescue run in my redhat 8.0. when i compile 
bacula-1.36.3 source with configurat
> ion in the documentation at 
http://www.bacula.org/dev-manual/Disast_Recove_Using_Bacula.html#SECTION00041400000
> 0000000000, i get a bootcd.iso ,after that i boot from the iso and it works 
well until i start the static-bacul
> a-fd. when i try to connect the fd from bconsole using status client=XXX 
command, the static-bacula-fd encounte
> r a segmentation violation and quit .i trace the problem and find that the 
problem sequece is :
> authenticate(filed/authenticate.c) -> sscanf(filed/authenticate.c) -> 
bsscanf(lib/scan.c) -> isspace(/user/include/ctype.h)
> this is my operations :
> 1) make bacula-source with
>     ./configure \
>     --prefix=/usr/bacula \
>     --sbindir=/usr/bacula/bin \
>     --sysconfdir=/usr/bacula/bin \
>     --with-scriptdir=/usr/bacula/bin \
>     --enable-smartalloc \
>     --enable-client-only \
>     --enable-static-fd
> 2)  make and make install
> 3) use bacula-rescue
>    ./configure \
>    --with-static-fd=/usr/bacula/bin
>    make all
> 4) get the bootcd.iso , boot a new created vmware virtual machine of same 
configuration with the former
> 5) startnetwork and mountdrivers
> 6) start static-bacula-fd with ./static-bacula-fd -d3000 -f -c 
bacula-fd.conf
> 7) connect the fd using ./bconsole -> status client=localhost-fd
> then static-bacula-fd quit with :
> localhost-fd: signal.c:78 sig=11 Segmentation violation
> localhost-fd: message.c:573 Entering dispatch_msg type=3 msg=localhost-fd: 
Fatal Er
> ror because: Bacula interrupted by signal 11: Segmentation violation
> 
> I write a program testing isspace function in the iso booted machine and it 
works.but when
> I write it at bacula source code it encounter a Segmentation fault . here is 
my test
>   if(!isspace(' ')) {
>     exit(0);
>   }
>   Who can help me solve the problem ? i will appreciate your help;-)

Before running the FD, try setting the LANG environment variable to 
en_US.UTF-8 or to whatever is correct for your language in the first part, 
but with the .UTF-8 at the end.  I suspect that the system library code that 
Bacula references may be getting confused with your Chinese characters.

>       
> 
> [EMAIL PROTECTED]
>           2006-12-06
> 
> 
> 
> 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to