On 09/27/2011 05:20 AM, Morgan Cox wrote:
Hi.
Sorry do you mean i've sent the wrong log ? Or you can't see why its
failed..
How can I help debug the issue further ?
You sent the correct log, I can't see why it failled.
You can help by adding more debug statement in amidxtaped until you find
on which line in crash.
I'm attaching a patch for the amrecover crash.
Jean-Louis
Regards
Morgan
On 26 September 2011 19:40, Jean-Louis Martineau <[email protected]
<mailto:[email protected]>> wrote:
On 09/26/2011 10:04 AM, Morgan Cox wrote:
Hi.
Attached are the 2 logs.
I should point out that I have been trying to get a successful
backup for months ...
Previously I was having autochanger issues...
So Any help will be really welcomed..
Many regards
They show that the first crash is amidxtaped.
It is in a debug() call, but I didn't find which one.
Jean-Louis
diff --git a/recover-src/extract_list.c b/recover-src/extract_list.c
index 9533402..3a9570a 100644
--- a/recover-src/extract_list.c
+++ b/recover-src/extract_list.c
@@ -1716,7 +1716,14 @@ extract_files_setup(
tt = g_strconcat("FEATURES=", our_features_string, NULL);
send_to_tape_server(amidxtaped_streams[CTLFD].fd, tt);
get_amidxtaped_line();
- if(strncmp_const(amidxtaped_line,"FEATURES=") == 0) {
+ if (!amidxtaped_line) {
+ g_fprintf(stderr, _("amrecover - amidxtaped closed the
connection\n"));
+ stop_amidxtaped();
+ amfree(disk_regex);
+ amfree(host_regex);
+ amfree(clean_datestamp);
+ return -1;
+ } else if(strncmp_const(amidxtaped_line,"FEATURES=") == 0) {
tapesrv_features = am_string_to_feature(amidxtaped_line+9);
} else {
g_fprintf(stderr, _("amrecover - expecting FEATURES line from
amidxtaped\n"));