Re: MSBuild fatal errors when build triggered by timer

502 views
Skip to first unread message

gordin

unread,
Mar 1, 2011, 2:40:42 PM3/1/11
to jenkins...@googlegroups.com
Hi,
I run into the same error using a customized build system which uses Visual
Studio's devenv.exe under the hood to compile our VisualStudio 2005 projects
(VC++). I start two parallel builds (on different code base) every night.
Always, the second job will fail with "Fatal error C1090: PDB API call
failed, error code '23' : '(" in exactly the same second the first job
finishes processing.
I analysed this thoroughly and can track the problem down to mspdbsrv.exe
which is automatically spawned when building a VisualStudio project. All
Visual Studio instances share one common pdb-server which shutdown itself
after a idle period (standard is 10 minutes).
I assume that jenkins will clean up when a automatically started job
finishes (like as described at
http://wiki.jenkins-ci.org/display/JENKINS/Aborting+a+build). I checked
mspbsrv.exe with ProcessExplorer and the process indeed has a variable
JENKINS_COOKIE/HUDSON_COOKIE set in its environment if started implicitly by
devenv.exe through jenkins. Don't know if this is evidence for my theory.

But, I can work around the problem by starting the pdb-server manually (not
from within jenkins). Unfortunately, the program is not documented, but the
important parameters are "-start -spawn -shutdowntime <seconds> -verbose"
(see
http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/b1d1bceb-06b6-47ef-a0ea-23ea752e0c4f/).
Furthermore I need to configure a rather long idle time period because I do
not know when the actual build starts (the jobs need to update a very large
codebase from a cvsnt server, first). I don't know if there are any caveats
when setting the shutdown time to large. As said earlier, the tool is
undocumented, standard idle time is 10 minutes. I use a idle time of 5
hours. This works ok for me so far.

Long story short, while it is a handy feature to clean up after a build, the
mechanism fails with Visual Studio's mspdbserv.exe which, when killed
instead of gracyfully shut down after a idle period, will crash other
builds.

I'm using Jenkins ver. 1.399

Any comments? Should I fill in a bug report for this issue?
--
Christoph Vogtländer

--
View this message in context: http://jenkins.361315.n4.nabble.com/MSBuild-fatal-errors-when-build-triggered-by-timer-tp385181p3330454.html
Sent from the Jenkins users mailing list archive at Nabble.com.

Christoph Vogtländer

unread,
Mar 9, 2011, 8:34:12 PM3/9/11
to jenkins...@googlegroups.com
On Thursday 10 March 2011 02:01:10 cek [via Jenkins] wrote:

> gordin wrote:
> > Any comments? Should I fill in a bug report for this issue?
>
> I am seeing exactly the same issue and symptoms here. If you don't submit
> a bug report, I will. :)

I tried to get an account to be able to get access to JIRA, but I never got
the promised E-Mail. So, if you have an account please feel free to submit
the bug report.

--
Christoph

Erik Ramfelt

unread,
Mar 10, 2011, 3:54:53 AM3/10/11
to jenkins...@googlegroups.com
I know there has been problems in the past getting that signup email, have you tried logging in anyway?

Regards
//Erik

Christoph Vogtländer

unread,
Mar 10, 2011, 12:55:29 PM3/10/11
to jenkins...@googlegroups.com
On Thursday 10 March 2011 09:55:21 Erik Ramfelt [via Jenkins] wrote:
> I know there has been problems in the past getting that signup email, have
> you tried logging in anyway?

I do not have a password. I never got the initial mail. I also tried "Reset
your password" without luck.

--
Christoph

cek

unread,
Mar 9, 2011, 8:01:10 PM3/9/11
to jenkins...@googlegroups.com

gordin wrote:
>
> Any comments? Should I fill in a bug report for this issue?
>
I am seeing exactly the same issue and symptoms here. If you don't submit a
bug report, I will. :)


--
View this message in context: http://jenkins.361315.n4.nabble.com/MSBuild-fatal-errors-when-build-triggered-by-timer-tp385181p3344966.html

Christoph Vogtländer

unread,
Mar 18, 2011, 9:56:55 PM3/18/11
to jenkins...@googlegroups.com
see http://issues.jenkins-ci.org/browse/JENKINS-9104
--
Christoph

On Thursday 10 March 2011 02:01:10 cek wrote:
> gordin wrote:
> > Any comments? Should I fill in a bug report for this issue?
>
> I am seeing exactly the same issue and symptoms here. If you don't submit
> a bug report, I will. :)
>
>
> --
> View this message in context:
> http://jenkins.361315.n4.nabble.com/MSBuild-fatal-errors-when-build-trigge

> red-by-timer-tp385181p3344966.html Sent from the Jenkins users mailing list
> archive at Nabble.com.

Reply all
Reply to author
Forward
0 new messages