Hello Kern,

On Tuesday 30 September 2008, Kern Sibbald wrote:
> Something is going on that I don't quite understand.  Perhaps you are not
> asking to restore all the files, and the code is going into the plugin code
> when I believe it logically should not.

Sorry that I did not myself clear.

Yes, I was - in some of the cases described - not restoring all files, but 
only a subset.

The enviroment described in my original post was not fictional; I use the "in" 
and "out" scripts described there to reproduce the problem.

> Anyway, I have just committed another patch to the SVN that will probably
> fix the problem.

Thx a lot! The segfault is gone now, so the problem you probably were mainly 
addressing is solved.

I do still have problems restoring data contained in multiple plugin streams, 
nonetheless, such as described in cases 1 thru 4 of the original post.

> I've added an extra line of debug code that should help 
> me see what is really happening, so even if the bug is now fixed, I would
> appreciate it if you would send me the output from a FD -d50  run.

Attached for case 4 (no backtrace this time :))

Side note: the 28 bytes reported by restore.c to be restored would be the 
correct number ('hello world X<CR>' is 14 chars). Unfortunately, all but the 
last "consumer" gets an empty input. Tested with my "real life" case, and the 
described testcase.

Thx a lot once again for your efforts!
   Bastian

-- 
Collax GmbH . Burkheimer Straße 3 . 79111 Freiburg . Germany
p: +49 (0) 761-45684-24
f: +49 (0) 761-45684-10        www.collax.com

Geschäftsführer: William K. Hite / Boris Nalbach
AG München HRB 158898 . Ust.-IdNr: DE 814464942
\ Misspelled? Impossible. My modem is error correcting!
bilbobox4-fd: plugins.c:113-0 Loaded plugin: name=bpipe-fd.so len=11
bilbobox4-fd: fd_plugins.c:421-0 Loaded plugin: bpipe-fd.so
bilbobox4-fd: filed.c:234-0 filed: listening on port 9102
bilbobox4-fd: cram-md5.c:73-0 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
bilbobox4-fd: fd_plugins.c:451-2545 Instantiate plugin_ctx=8477ea0 JobId=2545
bilbobox4-fd: fd_plugins.c:104-2545 plugin_ctx=8477ea0 JobId=2545
bilbobox4-fd: cram-md5.c:80-2545 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
bilbobox4-fd: cram-md5.c:99-2545 Authenticate OK oF/SQ+/jRA/XC6An+g/boD
bilbobox4-fd: fd_plugins.c:104-2545 plugin_ctx=8477ea0 JobId=2545
bilbobox4-fd: restore.c:655-2545 restore stream_plugin_name=2 1 1 
bpipe:myname1:/home/b/bastian/tmp05/out1:/home/b/bastian/tmp05/in1
bilbobox4-fd: fd_plugins.c:265-2545 Read plugin stream string=2 1 1 
bpipe:myname1:/home/b/bastian/tmp05/out1:/home/b/bastian/tmp05/in1
bilbobox4-fd: fd_plugins.c:295-2545 plugin restore 
cmd=bpipe:myname1:/home/b/bastian/tmp05/out1:/home/b/bastian/tmp05/in1
bilbobox4-fd: fd_plugins.c:310-2545 plugin=bpipe-fd.so 
cmd=bpipe:myname1:/home/b/bastian/tmp05/out1:/home/b/bastian/tmp05/in1 len=5
bilbobox4-fd: fd_plugins.c:315-2545 Restore Command plugin = 
bpipe:myname1:/home/b/bastian/tmp05/out1:/home/b/bastian/tmp05/in1
bpipe-fd: EventRestoreCommand 
cmd=bpipe:myname1:/home/b/bastian/tmp05/out1:/home/b/bastian/tmp05/in1
bpipe-fd: pluginEvent 
cmd=bpipe:myname1:/home/b/bastian/tmp05/out1:/home/b/bastian/tmp05/in1
bpipe-fd: plugin=bpipe fname=myname1 reader=/home/b/bastian/tmp05/out1 
writer=/home/b/bastian/tmp05/in1
bpipe-fd: IO_OPEN writer=/home/b/bastian/tmp05/in1
bilbobox4-fd: attr.c:281-2545 -rwx------   0 root     root            -1 
2008-09-30 13:36:51  myname1
bilbobox4-fd: fd_plugins.c:566-2545 plugin_bwrite
bilbobox4-fd: restore.c:655-2545 restore stream_plugin_name=0 0
bilbobox4-fd: fd_plugins.c:265-2545 Read plugin stream string=0 0
bilbobox4-fd: fd_plugins.c:281-2545 End plugin data plugin=846a180 ctx=8477ea0
bilbobox4-fd: restore.c:655-2545 restore stream_plugin_name=3 1 1 
bpipe:myname2:/home/b/bastian/tmp05/out2:/home/b/bastian/tmp05/in2
bilbobox4-fd: fd_plugins.c:265-2545 Read plugin stream string=3 1 1 
bpipe:myname2:/home/b/bastian/tmp05/out2:/home/b/bastian/tmp05/in2
bilbobox4-fd: fd_plugins.c:295-2545 plugin restore 
cmd=bpipe:myname2:/home/b/bastian/tmp05/out2:/home/b/bastian/tmp05/in2
bilbobox4-fd: fd_plugins.c:310-2545 plugin=bpipe-fd.so 
cmd=bpipe:myname2:/home/b/bastian/tmp05/out2:/home/b/bastian/tmp05/in2 len=5
bilbobox4-fd: fd_plugins.c:315-2545 Restore Command plugin = 
bpipe:myname2:/home/b/bastian/tmp05/out2:/home/b/bastian/tmp05/in2
bpipe-fd: EventRestoreCommand 
cmd=bpipe:myname2:/home/b/bastian/tmp05/out2:/home/b/bastian/tmp05/in2
bpipe-fd: pluginEvent 
cmd=bpipe:myname2:/home/b/bastian/tmp05/out2:/home/b/bastian/tmp05/in2
bpipe-fd: plugin=bpipe fname=myname2 reader=/home/b/bastian/tmp05/out2 
writer=/home/b/bastian/tmp05/in2
bpipe-fd: IO_OPEN writer=/home/b/bastian/tmp05/in2
bilbobox4-fd: attr.c:281-2545 -rwx------   0 root     root            -1 
2008-09-30 13:36:51  myname2
bilbobox4-fd: fd_plugins.c:566-2545 plugin_bwrite
bilbobox4-fd: fd_plugins.c:516-2545 plugin_bclose
bilbobox4-fd: restore.c:763-2545 End Do Restore. Files=2 Bytes=28
bilbobox4-fd: fd_plugins.c:104-2545 plugin_ctx=8477ea0 JobId=2545
bilbobox4-fd: job.c:253-2545 Quit command loop. Canceled=1
bilbobox4-fd: fd_plugins.c:104-2545 plugin_ctx=8477ea0 JobId=2545
bilbobox4-fd: fd_plugins.c:473-2545 Free instance plugin_ctx=8477ea0 JobId=2545
bilbobox4-fd: plugins.c:113-0 Loaded plugin: name=bpipe-fd.so len=11
bilbobox4-fd: fd_plugins.c:421-0 Loaded plugin: bpipe-fd.so
bilbobox4-fd: filed.c:234-0 filed: listening on port 9102
bilbobox4-fd: cram-md5.c:73-0 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
bilbobox4-fd: fd_plugins.c:451-2547 Instantiate plugin_ctx=9e39ea0 JobId=2547
bilbobox4-fd: fd_plugins.c:104-2547 plugin_ctx=9e39ea0 JobId=2547
bilbobox4-fd: cram-md5.c:80-2547 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
bilbobox4-fd: cram-md5.c:99-2547 Authenticate OK Wg+IHQJQp8/2p6tlQWssKB
bilbobox4-fd: fd_plugins.c:104-2547 plugin_ctx=9e39ea0 JobId=2547
bilbobox4-fd: restore.c:655-2547 restore stream_plugin_name=0 0
bilbobox4-fd: fd_plugins.c:265-2547 Read plugin stream string=0 0
bilbobox4-fd: fd_plugins.c:281-2547 End plugin data plugin=0 ctx=0
bilbobox4-fd: restore.c:655-2547 restore stream_plugin_name=3 1 1 
bpipe:myname2:/home/b/bastian/tmp05/out2:/home/b/bastian/tmp05/in2
bilbobox4-fd: fd_plugins.c:265-2547 Read plugin stream string=3 1 1 
bpipe:myname2:/home/b/bastian/tmp05/out2:/home/b/bastian/tmp05/in2
bilbobox4-fd: fd_plugins.c:295-2547 plugin restore 
cmd=bpipe:myname2:/home/b/bastian/tmp05/out2:/home/b/bastian/tmp05/in2
bilbobox4-fd: fd_plugins.c:310-2547 plugin=bpipe-fd.so 
cmd=bpipe:myname2:/home/b/bastian/tmp05/out2:/home/b/bastian/tmp05/in2 len=5
bilbobox4-fd: fd_plugins.c:315-2547 Restore Command plugin = 
bpipe:myname2:/home/b/bastian/tmp05/out2:/home/b/bastian/tmp05/in2
bpipe-fd: EventRestoreCommand 
cmd=bpipe:myname2:/home/b/bastian/tmp05/out2:/home/b/bastian/tmp05/in2
bpipe-fd: pluginEvent 
cmd=bpipe:myname2:/home/b/bastian/tmp05/out2:/home/b/bastian/tmp05/in2
bpipe-fd: plugin=bpipe fname=myname2 reader=/home/b/bastian/tmp05/out2 
writer=/home/b/bastian/tmp05/in2
bpipe-fd: IO_OPEN writer=/home/b/bastian/tmp05/in2
bilbobox4-fd: attr.c:281-2547 -rwx------   0 root     root            -1 
2008-09-30 13:36:51  myname2
bilbobox4-fd: fd_plugins.c:566-2547 plugin_bwrite
bilbobox4-fd: fd_plugins.c:516-2547 plugin_bclose
bilbobox4-fd: restore.c:763-2547 End Do Restore. Files=1 Bytes=14
bilbobox4-fd: fd_plugins.c:104-2547 plugin_ctx=9e39ea0 JobId=2547
bilbobox4-fd: job.c:253-2547 Quit command loop. Canceled=0
bilbobox4-fd: fd_plugins.c:104-2547 plugin_ctx=9e39ea0 JobId=2547
bilbobox4-fd: fd_plugins.c:473-2547 Free instance plugin_ctx=9e39ea0 JobId=2547
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to