Last modified: 2014-04-11 13:09:15 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T64787, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 62787 - hhvm Jenkins job fill up /tmp with stacktraces files
hhvm Jenkins job fill up /tmp with stacktraces files
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Continuous integration (Other open bugs)
wmf-deployment
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: hhvm
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-18 16:00 UTC by Antoine "hashar" Musso (WMF)
Modified: 2014-04-11 13:09 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Antoine "hashar" Musso (WMF) 2014-03-18 16:00:24 UTC
The Jenkins job running MediaWiki core unit tests under hhvm produces files such as /tmp/stacktrace\d+.log which are filling out /tmp on the Jenkins slaves.


Looking at hhvm source code, the path can apparently be configured with CoreDumpReportDirectory. It should probably be set to the current working directory.


$ git grep --before-context 1  stacktrace.*\.log
hphp/doc/debug.server-
hphp/doc/debug.server:Normally a crash generates /tmp/stacktrace.<pid>.log file that has stacktrace
--
hphp/runtime/base/crash-reporter.cpp-  char tracefn[RuntimeOption::CoreDumpReportDirectory.length()
hphp/runtime/base/crash-reporter.cpp:               + strlen("/stacktrace..log") + strlen(pid) + 1];
hphp/runtime/base/crash-reporter.cpp:  sprintf(tracefn, "%s/stacktrace.%s.log",
--
hphp/util/stack-trace.h-  /**
hphp/util/stack-trace.h:   * Add extra information to log together with a crash stacktrace log.
$
Comment 1 Krinkle 2014-03-18 17:01:49 UTC
Assuming these are opt-in for debug, can we disable them entirely?
Comment 2 Gerrit Notification Bot 2014-04-07 11:49:08 UTC
Change 124313 had a related patch set uploaded by Hashar:
point hhvm stacktraces to workspace log dir

https://gerrit.wikimedia.org/r/124313
Comment 3 Gerrit Notification Bot 2014-04-07 11:49:33 UTC
Change 124313 merged by jenkins-bot:
point hhvm stacktraces to workspace log dir

https://gerrit.wikimedia.org/r/124313
Comment 4 Aaron Schulz 2014-04-09 18:26:15 UTC
Can this be closed?
Comment 5 Antoine "hashar" Musso (WMF) 2014-04-09 19:11:53 UTC
Still had to verify that Gerrit change #124313 did put the stack trace to the workspace (which is cleaned on each build) instead of in /tmp/.

Looked on both slaves integration-slave1001.eqiad.wmflabs and integration-slave1002.eqiad.wmflabs and the workspaces log dir does not have stacktrace currently.  I am not sure whether they are generated on each run or only on failure.

So yeah /tmp/ no more has stack traces but I am not sure what happens with them.
Comment 6 Antoine "hashar" Musso (WMF) 2014-04-11 13:09:15 UTC
The stack traces no more show up in /tmp/ \O/

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links