Bareos Bug Tracker
Bareos Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000826bareos-core[All Projects] directorpublic2017-06-08 15:422017-06-22 13:56
Assigned To 
PlatformLinuxOSUbuntuOS Version14.04
Product Version16.2.5 
Target VersionFixed in Version 
Summary0000826: Enabling debugging output crashes Director
DescriptionRecently I needed to enable debugging on our production environment to troubleshoot some issue.
Used this command for that:
  setdebug level=500 trace=1 director

This caused vanilla Director to crash (installed from official Bareos repo).
Last line shown was:
  job.c:1184-0 entering apply_pool_overrides()

I've reproduced this with latest version in test environment and it seems that it's enough to comment out this debugging line in src/dird/job.c:1252
  Dmsg2(100, "Pool set to '%s' because of %s", jcr->res.full_pool->name(), "Job IncPool override\n");

I don't know why is this occuring, so can't propose a patch for this.
My workaround in test environment is to comment it out and rebuild.

Kind regards,
Momcilo "Momo" Medic.
TagsNo tags attached.
bareos-master: impact
bareos-master: action
bareos-16.2: impact
bareos-16.2: action
bareos-15.2: impact
bareos-15.2: action
bareos-14.2: impact
bareos-14.2: action
bareos-13.2: impact
bareos-13.2: action
bareos-12.4: impact
bareos-12.4: action
Attached Files

- Relationships

-  Notes
joergs (administrator)
2017-06-22 13:56

My first guess would be to replace

Dmsg2(100, "Pool set to '%s' because of %s", jcr->res.full_pool->name(), "Job IncPool override\n");


Dmsg2(100, "Pool set to '%s' because of %s", jcr->res.pool->name(), "Job IncPool override\n");

Same for the other Dmsg2 lines around.

As I seams, you got a test environment, in which you can reproduce the problem, would you be so kind to test this?

- Issue History
Date Modified Username Field Change
2017-06-08 15:42 medicmomcilo New Issue
2017-06-16 15:07 stephand Relationship added related to 0000794
2017-06-16 15:08 stephand Relationship deleted related to 0000794
2017-06-22 13:56 joergs Note Added: 0002674
2017-06-22 13:56 joergs Status new => feedback

Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker