[Bug 160999] Re: Apport doesn't overwrite existing core files

2020-02-18 Thread Michi Henning
And nearly 13 years later, we are still here.

If I have a core file in the Current directory and another run of the
program encounters a fault, the old core (possibly months old) prevents
the current core file from being written. Outstanding!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/160999

Title:
  Apport doesn't overwrite existing core files

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/160999/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 160999] Re: Apport doesn't overwrite existing core files

2018-08-17 Thread Vasilis
Same problem here!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/160999

Title:
  Apport doesn't overwrite existing core files

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/160999/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 160999] Re: Apport doesn't overwrite existing core files

2017-01-10 Thread Tjd
** Changed in: apport (Ubuntu)
   Status: Triaged => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/160999

Title:
  Apport doesn't overwrite existing core files

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/160999/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 160999] Re: Apport doesn't overwrite existing core files

2017-01-09 Thread Tjd
@k04jg02, as noted in comment #7, this bug has no effect on the Ubuntu
Error Reporting process for software that is distributed through normal
channels.

Instead, for software that comes from any other source, apport seems to
make a 'best-efforts' approach to dump a core file, roughly following
some of the conventions of the usual core dump procedure. However,
there's nothing in core(5) that says that any downstream program
receiving a core dump (in this case apport) must do anything specific
with it.

That said, for developers, and in particular newbies trying to get into
coding, apport's behavior is fairly insidious and confusing. Here are a
few suggestions and possible workarounds for consideration:

-[partial workaround] If you set the `kernel.core_uses_pid` sysctl to 1,
apport respects this and always generates core.PID files. This doesn't
solve the broken default behavior, and also doesn't guarantee a new
file, since PIDs can be reused, but it helps. (`sysclt
kernel.core_uses_pid=1`, or edit /etc/sysctl.conf)

-[questionable workaround] Use apport to capture crashes for unpackaged 
software, by adding the lines 
```[main]
unpackaged=true```
to ~/.config/apport/settings. Now your program crashes will be handled like 
those of any Ubuntu-provided software: They will generate a .crash file in 
/var/crash (which can be unpacked with apport-unpack to access the core dump); 
they will generate an apport crash dialog box, and will even be uploaded to 
errors.ubuntu.com by whoopsie if you check the 'Send error report' box, (which 
is almost certainly a bad idea).

-[upstream solution] kernel could support both writing out a core file
(according the rules in core(5) , and passing the core to an external
program. This would be ideal, since it would not require apport to try
to duplicate and track kernel core dump behavior.

-[mitigation] Patch apport to just make the default behavior a little
more sane, even if not perfectly copying the usual behavior.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/160999

Title:
  Apport doesn't overwrite existing core files

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/160999/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 160999] Re: Apport doesn't overwrite existing core files

2016-06-13 Thread Joseph Garvin
9 years later and still broken! Can confirm still exists in 16.04. Does
no one develop on Ubuntu or has every developer in the last nine years
manually removed apport?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/160999

Title:
  Apport doesn't overwrite existing core files

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/160999/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 160999] Re: Apport doesn't overwrite existing core files

2013-11-12 Thread Eivind Tagseth
Here's how to disable apport and get the core handling necessary for
development:

http://askubuntu.com/questions/93457/how-do-i-enable-or-disable-apport

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/160999

Title:
  Apport doesn't overwrite existing core files

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/160999/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 160999] Re: Apport doesn't overwrite existing core files

2012-11-27 Thread Timo Sirainen
What, 5 years with no fix? I finally got annoyed enough at this and
started looking into why Ubuntu is doing this and how to change it. I
assumed it was intentional, but now I see it's a bug. Highly annoying
for developing software under Ubuntu.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/160999

Title:
  Apport doesn't overwrite existing core files

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/160999/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 160999] Re: Apport doesn't overwrite existing core files

2012-10-02 Thread Joseph Garvin
Can confirm is still in 12.04.

Perhaps I misunderstand the scope of this bug, but AFAICT this makes
every core file submitted by every user to help developers debugging
every issue in Ubuntu potentially a red herring, because when a user
submits a core it will be from the first crash that occurred rather than
the most recent one. Is the main way that people debug their software on
Linux being broken really of 'Low' importance? How the heck has every
developer put up with this for the last 4 years? :P

In particular this is nasty for development because it means after you
fix a bug in your source and rebuild, if your program still crashes but
for a different reason than before it will appear as if you didn't fix
the bug because the core will be the same. Thankfully gdb warns when the
executable is newer than the core or I wouldn't have caught this...

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/160999

Title:
  Apport doesn't overwrite existing core files

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/160999/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 160999] Re: Apport doesn't overwrite existing core files

2012-04-02 Thread Martin Pitt
** Changed in: apport (Ubuntu)
 Assignee: Martin Pitt (pitti) => (unassigned)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/160999

Title:
  Apport doesn't overwrite existing core files

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/160999/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 160999] Re: Apport doesn't overwrite existing core files

2012-01-19 Thread Martin Pool
** Summary changed:

- Apport doesn't conform to core(5)
+ Apport doesn't overwrite existing core files

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/160999

Title:
  Apport doesn't overwrite existing core files

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/160999/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs