Cannot use systemd-coredumpctl on Firefox cores

My firefox process is dying regularly and is crashing and creating core dumps. I think it has something to do with an interaction between a few of my plugins and extensions, but it's only a theory so far.
I didn't know where the corefiles went and I noticed core_pattern was a pipe!
% cat /proc/sys/kernel/core_pattern
|/usr/lib/systemd/systemd-coredump %p %u %g %s %t %e
So systemd is taking all cores instead of just the daemons/procs it runs. This is ... definitely a bit controversial for me, but I'll worry about that later. I've found the systemd-coredumpctl util, and I can find the firefox core files inside of it:
% systemd-coredumpctl
TIME PID UID GID SIG EXE
[... snipped some lines ...]
Sun 2014-04-20 23:15:33 PDT 21858 1000 100 11 /usr/lib/firefox/firefox
Thu 2014-04-24 21:55:17 PDT 10059 1000 100 11 /usr/lib/firefox/firefox
Mon 2014-04-28 16:17:37 PDT 25162 1000 100 11 /usr/lib/firefox/firefox
Tue 2014-04-29 18:14:13 PDT 5607 1000 100 11 /usr/lib/firefox/firefox
Wed 2014-04-30 13:22:20 PDT 30645 1000 100 11 /usr/lib/firefox/firefox
Ok sweet, so it's there, let's try and use it..
% systemd-coredumpctl gdb
TIME PID UID GID SIG EXE
Wed 2014-04-30 13:22:20 PDT 30645 1000 100 11 /usr/lib/firefox/firefox
Failed to retrieve COREDUMP field: No such file or directory
This *works* for corefiles other than firefox. Just call systemd-coredumpctl gdb blah and it brings up the proper gdb session. Not so for any firefox core. My next thought was to get the core file out, as maybe the firefox binary was a shell script or something, and didn't really reference the object that gdb wanted to look for.
% systemd-coredumpctl dump
TIME PID UID GID SIG EXE
Wed 2014-04-30 13:22:20 PDT 30645 1000 100 11 /usr/lib/firefox/firefox
Refusing to dump core to tty
% systemd-coredumpctl dump > ~/firefox.core
TIME PID UID GID SIG EXE
Wed 2014-04-30 13:22:20 PDT 30645 1000 100 11 /usr/lib/firefox/firefox
Failed to retrieve COREDUMP field: No such file or directory
Ok so now I'm getting upset - let's look at the systemd-coredumpctl source code
From: https://github.com/systemd/systemd/blob … ctl.c#L402
r = sd_journal_get_data(j, "COREDUMP", (const void**) &data, &len);
if (r < 0) {
log_error("Failed to retrieve COREDUMP field: %s", strerror(-r));
return r;
Ok, so getting the data out of the journal is failing with an ENOENT it seems.. Let's look at sd_journal_get_data:
https://github.com/systemd/systemd/blob … al.c#L1956
_public_ int sd_journal_get_data(sd_journal *j, const char *field, const void **data, size_t *size) {
JournalFile *f;
uint64_t i, n;
size_t field_length;
int r;
Object *o;
assert_return(j, -EINVAL);
assert_return(!journal_pid_changed(j), -ECHILD);
assert_return(field, -EINVAL);
assert_return(data, -EINVAL);
assert_return(size, -EINVAL);
assert_return(field_is_valid(field), -EINVAL);
f = j->current_file;
if (!f)
return -EADDRNOTAVAIL;
if (f->current_offset <= 0)
return -EADDRNOTAVAIL;
r = journal_file_move_to_object(f, OBJECT_ENTRY, f->current_offset, &o);
if (r < 0)
return r;
field_length = strlen(field);
n = journal_file_entry_n_items(o);
for (i = 0; i < n; i++) {
uint64_t p, l;
le64_t le_hash;
size_t t;
p = le64toh(o->entry.items[i].object_offset);
le_hash = o->entry.items[i].hash;
r = journal_file_move_to_object(f, OBJECT_DATA, p, &o);
if (r < 0)
return r;
if (le_hash != o->data.hash)
return -EBADMSG;
l = le64toh(o->object.size) - offsetof(Object, data.payload);
if (o->object.flags & OBJECT_COMPRESSED) {
#ifdef HAVE_XZ
if (uncompress_startswith(o->data.payload, l,
&f->compress_buffer, &f->compress_buffer_size,
field, field_length, '=')) {
uint64_t rsize;
if (!uncompress_blob(o->data.payload, l,
&f->compress_buffer, &f->compress_buffer_size, &rsize,
j->data_threshold))
return -EBADMSG;
*data = f->compress_buffer;
*size = (size_t) rsize;
return 0;
#else
return -EPROTONOSUPPORT;
#endif
} else if (l >= field_length+1 &&
memcmp(o->data.payload, field, field_length) == 0 &&
o->data.payload[field_length] == '=') {
t = (size_t) l;
if ((uint64_t) t != l)
return -E2BIG;
*data = o->data.payload;
*size = t;
return 0;
r = journal_file_move_to_object(f, OBJECT_ENTRY, f->current_offset, &o);
if (r < 0)
return r;
return -ENOENT;
Ok - now I'm officially lost. I'm way too inexperienced with systemd source code to make decent progress this route.
Either journal_file_entry_n_items returned 0 items, which is confusing because it's part of the systemd-coredumpctl listing?, or one of these calls to journal_file_move_to_object is returning -ENOENT.  I can't find anywhere that this is actually true in it's call graph.. so I'm going to assume that journal_file_entry_n_items returned 0.
What does this mean? How do I fix this?
As an aside - I'd like to debug my larger firefox issue without changing how corefiles are handled in a default arch install, as that seems a bit much.. but if anyone knows how to disable the systemd corefile handling on any process not launched by systemd, but keep using it for daemons (I can totally see the need for better corefile handling with these auto-started processes) please let me know!
Last edited by codemac (2014-04-30 23:38:30)

Yep, looks like that's the problem. journalctl:
Jun 06 01:11:25 bspararch systemd-coredump[10820]: Core too large, core will not be stored.
Jun 06 01:11:25 bspararch systemd-coredump[10820]: Process 10814 (chrome) dumped core.
I don't know how I missed that before... Thanks for the tip
Now, how would I work to fix that? I've done a little research on my own, but I'll have to look into it more tomorrow - it's getting late over here. And I'm not too familiar with all of ulimit, but I'm still having problems with this configuration:
bspar@bspararch:/x/BITS/src/ > ulimit -a
-t: cpu time (seconds) unlimited
-f: file size (blocks) unlimited
-d: data seg size (kbytes) unlimited
-s: stack size (kbytes) unlimited
-c: core file size (blocks) unlimited
-m: resident set size (kbytes) unlimited
-u: processes 2000
-n: file descriptors 4096
-l: locked-in-memory size (kbytes) 64
-v: address space (kbytes) unlimited
-x: file locks unlimited
-i: pending signals 94126
-q: bytes in POSIX msg queues 819200
-e: max nice 20
-r: max rt priority 0
-N 15: unlimited

Similar Messages

  • Using systemd-coredumpctl as a regular user

    Hi,
    With systemd, core dumps are now stored in the journal.
    For now that's fine to me, except it seems I can't retrieve my core dumps as a regular user, only root seems to be able to get a useful use of systemd-coredumpctl.
    I did search the forum but only managed to find ways to stop systemd to store dumps in the journal (like here for example).
    What I am looking for is to make a proper use/configuration of systemd-coredumpctl that allows users to get access to the core they dump without root/sudoing.
    Is there such a configuration or is the only way to revert to the "before systemd" behavior and avoid storing dumps in the journal?
    I suspect if such a configuration exists it has to do with user right access to the journal, but I'm not sure about this (so have no idea how to do this :)
    Thank you very much for any help!
    Kévin

    Thank you WonderWoofy,
    I'm not that familiar with the sticky bit, although what you are talking about for the passwd command rather seems to have to do with the setuid/setgid thing, which I'm not very familiar with neither, or perhaps it's just the same thing?
    Anyway, I managed to retrieve my dumps as a regular user. As I thought access to the journal was the key, a look in /etc/group showed me that we now have a systemd-journal group.
    Simply adding my user to this group gave him access to the journal, and I'm now able to dump the core stored in the journal as a regular user.
    Could someone with a higher understanding of systemd than me confirm this is the way to go? (so I can mark the thread as solved)
    Thanks!
    Kévin
    Last edited by papadox (2013-06-02 04:55:56)

  • Why Mac Mountain Lion cannot use gdb to analzy kernel core dump??

    I'm trying to use gdb debug  a Core Dump after a Kernel Panic which I collected from two Macs,but when i use list command below i get some errs:
    then get "can't find symblos for ****

    Hi Linc Davis:
      thanks for your replay!
      And could you tell me which "debug kernel available" shall i need to run,because i have seached all of Apple Developer site but found nothing useful infomation to be set?!
      Below are the steps how i get  Mac Mountain Lion(10.8.3 Build:12D78) kernel core dump from Apple Developer site:
    1、Configuring the Server:
    1)Creating the core dump directory:
       server$ sudo mkdir /PanicDumps
       Password:********
       server$ sudo chown root:wheel /PanicDumps
       server$ sudo chmod 1777 /PanicDumps
    2)Activating the core dump server
       server$ sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.kdumpd.plist
       Password:********
    3)Verifying the core dump server is active
       server$ sudo launchctl list | grep kdump
       Password:********
        - 0     com.apple.kdumpd
    2、Configuring a Client
      client$ sudo nvram boot-args="debug=0xd44 _panicd_ip=10.***.***.***" (10.***.***.***
      Password: ********
    when i got client pc core dump,and use gdb analyze it ,i got some errs,eg,
    /Volumes/KernelDebugKit?kgmacros:342:Error in sourced command file:
    cannot access memory at address 0xffffff8000200004

  • I cannot use Microsoft Hotmail with Firefox 3.6.24 and Windows 7. I click on an email but nothing happens. I did not have this problem with Windows Vista. Any solutions would be greatly appreciated.

    The Windows 7 is on a new Dell Inspiron desktop. The Windows Vista is on a Dell Studio laptop that I have had for a while. The Hotmail also works fine on the new computer when I use IE9.

    Your above posted system details show outdated plugin(s) with known security and stability risks that you should update.
    # Shockwave Flash 10.2 r152
    # Java Plug-in 1.6.0_11 for Netscape Navigator (DLL Helper)
    *http://www.mozilla.com/plugincheck/
    Update the Flash plugin to the latest version.
    *https://support.mozilla.com/kb/Managing+the+Flash+plugin
    *http://kb.mozillazine.org/Flash
    *http://www.adobe.com/software/flash/about/
    Update the Java plugin to the latest version.
    *https://support.mozilla.com/kb/Using+the+Java+plugin+with+Firefox
    *http://kb.mozillazine.org/Java
    *http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)

  • Cannot use Live email in Firefox; will not send and the Attachment icon dissapears

    When I open Live Sign In in Firefox on this computer, it will not let me send email and the Attachment, Photo, etc icons disappear. You cannot attach anything or send email. The Live email works fine in Chrome on this computer. Any suggestions?

    See [/forum/1/725968]
    This issue can be caused by malware.

  • Cannot use shortcut keys on Firefox.

    I noticed it a week or so ago and thought it was just the website that I was working off of, but ever since then I have been unable to work using the "Ctrl+C" to copy or the "Ctrl+v" to paste. I don't understand what is going on, can anyone help?

    tnx but that didnt work, instead i took the AC out, ran the battery dead, removed battery, re-inserted it, plugged AC back in ,started it up n they all seem to work again now :)
    tnx again anyways

  • My back button and refresh button and my yahoo tool bar are dimmed a lot when I open up firefox. So as a result, I cannot use the back button nor my refresh button AND my yahoo toolbar disappears a lot. I have tried to get on your chat session but it is a

    <blockquote>Locked by Moderator as a duplicate/re-post.
    Please continue the discussion in this thread: [/forum/1/688252]
    Thanks - c</blockquote>
    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    My back button and refresh button and my yahoo tool bar are dimmed a lot when I open up firefox. So as a result, I cannot use the back button nor my refresh button AND my yahoo toolbar disappears a lot. I have tried to get on your chat session but it is always closed. I need one on one help. Please reply with resolution.
    == This happened
    ==
    Every time Firefox opened
    == two or three months ago
    ==
    == Firefox version
    ==
    3.6.3
    == Operating system
    ==
    Windows XP
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 (BT-canvas) Firefox/3.6.3 GTB7.0 (.NET CLR 3.5.30729)
    == Plugins installed
    ==
    *-npdnu
    *npdnupdater2
    *Coupons, Inc. Coupon Printer DLL
    *Coupons, Inc. Coupon Printer Plugin
    *The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
    *6.0.12.448
    *RealPlayer(tm) LiveConnect-Enabled Plug-In
    *RealJukebox Netscape Plugin
    *Default Plug-in
    *Adobe PDF Plug-In For Firefox and Netscape "9.3.2"
    *BrowserPlus -- Improve your browser! -- http://browserplus.yahoo.com/
    *Shockwave Flash 10.0 r45
    *Yahoo Application State Plugin version 1.0.0.7
    *3.0.50106.0
    *My Web Search Plugin Stub for 32-bit Windows
    *Google Updater pluginhttp://pack.google.com/
    *Google Update
    *Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers
    *Npdsplay dll

    * If the menu bar is hidden then press and hold the Alt key down, that should make the Menu bar appear (Firefox 3.6 on Windows) (see [[Menu bar is missing]]).
    * Make sure that you have the ''Navigation Toolbar'' and other toolbars visible: View > Toolbars .
    * If items are missing then see if you can find them in the View > Toolbars > Customize window.
    * If you see the item in the Customize window then drag it back from the Customize window to the Navigation toolbar.
    * If you do not see that item then click the Restore Default Set button in the View > Toolbars > Customize window.
    See also [[Back and forward or other toolbar buttons are missing]] and [[Navigation Toolbar items]]
    See http://kb.mozillazine.org/Toolbar_customization

  • I need to download a version of Firefox that is optimized for Yahoo! but I cannot use Firefox 4 for Yahoo! because it doesn't support Norton 360 as of yet. Any suggestions?

    If you do have any suggestions, where can I find it? The only place I know of is the http://www.mozilla.com/en-US/firefox/all-older.html web site and you can only get version 3.6.16 there and it's NOT optimized for Yahoo!. Please help!
    Yahoo! keeps sending me the following message in a box on my screen along with the links to Firefox 4 and IE : Attention: Please upgrade to the latest Yahoo! optimized browser to ensure the best Yahoo! experience. But, as I stated in the question above, I cannot use Firefox 4 yet because it does NOT support Norton 360. Plus, I don't trust IE8 to use Facebook!
    Thanks for any help you can give me! Your very prompt attention to this question is greatly appreciated as I am sort of at a standstill before moving on with my work.
    Regards,
    Christine
    (Running Windows Vista Service Pack 2)

    Symantec have released an update for Norton 360 to make it compatible with Firefox 4, for details see http://us.norton.com/support/kb/web_view.jsp?wv_type=public_web&docurl=20100720113635EN&ln=en_US

  • As of 2 months ago, I cannot fully access Facebook using either Safari or Firefox browsers. I have a Mac G5 running OSX 10.5.8, Safari 5.0.6 and Firefox 3.6.28. Does anyone have any sugesstions on how I can resolve this?

    As of 2 months ago, I cannot fully access Facebook using either Safari or Firefox browsers. I have a Mac G5 running OSX 10.5.8, Safari 5.0.6 and Firefox 3.6.28. Does anyone have any suggestions on how I can resolve this?

    Aha, a PPC Mac!
    The last really supported Flash for PPC was 10.1.102.64, but if it's for like Facebook or such, people have been fooling FB to think they have a later version installed.
    Texas Mac Man's Flash hack/post...
    https://discussions.apple.com/thread/3599648?tstart=0
    Flash player 11.1 hack on PowerPC - https://discussions.apple.com/message/16990862
    See in each Browser which version of Flash it thinks it has...
    http://kb2.adobe.com/cps/155/tn_15507.html

  • I downloaded the newest version of firefox today 8/16/11 and now I cannot use Evernote (nor does clipmarks work from before) this is unacceptable. How do I return to the earlier version of firefox? Thank You, Carol Roberts

    I downloaded the newest version of firefox today 8/16/11 and now I cannot use Evernote (nor does clipmarks work from before) this is unacceptable. How do I return to the earlier version of firefox? If there is no way to do this, then I will have to use internet explorer so I hope you can help me with this. Thank You, Carol Roberts

    Until Evernote updates their add-on to mark it compatible with Firefox 6, you can use the [https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/ Add-on Compatibility Reporter] to try re-enabling it yourself.
    You can also downgrade to a previous version of Firefox from [https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/ this archive], but please be warned that some old versions of Firefox have known security bugs that are fixed in later versions. See also: [[Installing a previous version of Firefox]]

  • When I tried to download the new version of firefox I get an error message that says "you computer must be restarted to complete an earlier upgrade" when I restart it says the same thing. I cannot use firefox at all at the moment.

    When I tried to download the new version of firefox I get an error message that says "your computer must be restarted to complete an earlier upgrade" when I restart it says the same thing. I cannot use firefox at all at the moment. When I try to uninstall in the control panel, the same message pops up.

    If you have problems with updating or with the permissions then easiest is to download the full version and trash the currently installed version to do a clean install of the new version.
    Download a new copy of the Firefox program and save the DMG file to the desktop
    * Firefox 5.0.x: http://www.mozilla.com/en-US/firefox/all.html
    * Trash the current Firefox application to do a clean (re-)install
    * Install the new version that you have downloaded
    Your profile data is stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder], so you won't lose your bookmarks and other personal data.

  • I cannot use a website I need to use, with Firefox 5.0. So, I need to uninstall and go back to 3.5 or 3.6. Please advise. Also, my control panel locks up since Windows Explorer has pbms. Which is why I am using Firefox instead. Thanks for any help!

    I cannot use a website I need to use, with Firefox 5.0. So, I need to uninstall and go back to 3.5 or 3.6. Please advise. Also, my control panel locks up since Windows Explorer has pbms. Which is why I am using Firefox instead. Thanks for any help!

    ''I figured it was going to be FAFSA causing your problem.''
    Install Portable Firefox 3.6.x to your hard drive for that one website. It won't affect your current Firefox installation at all. <br />
    http://portableapps.com/apps/internet/firefox_portable/localization#legacy36

  • I recently had an update to firefox and now cannot use it at all. Apparently a 'bad image' not valid Windows image. Help.

    I recently had an update to my Firefox account and since then cannot use it at all. When I try to a window opens which says the following:
    The application or DLL C:/Program Files/Mozilla/Firefox/xul.dll is not a valid Windows image. Please check your installation diskette.

    Please do the following.
    Go to [http://www.mozilla.com/en-US/firefox/all-older.html Download Firefox v3.6.17] and download it to the desktop.
    Then go to Add/Remove Programs, scroll down to '''Mozilla Firefox '''and remove it, choosing to keep your bookmarks, customizations etc., (''don't checkmark the box'').
    Then reboot and delete the folder called '''Mozilla Firefox '''at this location: ''C:\Program Files\Mozilla Firefox''
    Finally run the installation file you downloaded to the desktop earlier.
    Your bookmarks, customizations etc., are maintained in a different location and will become available to you again once you complete the installation.
    This is what's known as a 'clean install'. It will overwrite the corrupt files which are preventing Firefox from starting.

  • I cannot use Firefox for over a year now as I get a 404 error message. I have cleaned caches etc, deleted & reinstalled twice & it freezes on the Hulu site.

    I cannot use Firefox for over a year now as I get a 404 error message; it is frozen on the Hulu site.

    Are you using a bookmark or does this also happen if you type the address of the main (home) page of the website?
    Bookmarked pages can become invalid, so you may have to enter the main page and then navigate to the wanted page.
    Clear the cache and remove cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox > Preferences > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox > Preferences > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"

  • After foolishly loading a desktop feature for "PANDORA RADIO" I now cannot use fIREFOX. The screen only goes to "PANDORA" and is unusable......How do I get rid of "PANDORA"?

    Upon trying to open FIREFOX, the screen displays a blue PANDORA RADIO radio screen and does nothing else and I cannot use my FIREFOX. This the rusult of ADD-on for my google home page. I am assuming that this is some kind of virus or malware that came in with the "PANDORA" add-on...the result is that I can't use firefox anymore???????

    Hi Panamark,
    The problem has been resolved for me. I am a little fuzzy on how it got fixed.
    I only have 3G, so I think I went to the library to use wi-fi.
    I think I just deleted the stuck apps, and the downloaded them again. You do not have to pay again when you download a previously purchased app.
    It is now August, and fortunately I have not had any stuck apps lately.
    As you may already know, you cannot download an app over 20 MB via 3G.
    I have the Kindle app also. No new updates lately. I only bought one thing using Kindle. It was a guide to iPad that was only $1.99 or so, but it did not really have anything that cannot be found in normal free Apple guide.
    I have borrowed an ebook from the library using Overdrive app. You can choose the ebook version from Kindle.
    I don't have any weather apps.
    Let me know what happened when you get the chance.
    M

Maybe you are looking for