--stack-trace-mode doesn’t seem to work

Bug #136439 reported by Johan Kiviniemi
2
Affects Status Importance Assigned to Milestone
gimp (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: gimp

I’m trying to prevent gimp from catching SIGSEGV in order to debug a crash properly.

‘gimp --stack-trace-mode never’ doesn’t seem to work.

ProblemType: Bug
Architecture: i386
Date: Fri Aug 31 20:32:18 2007
DistroRelease: Ubuntu 7.10
NonfreeKernelModules: nvidia
Package: gimp 2.3.18-1ubuntu2
PackageArchitecture: i386
SourcePackage: gimp
Uname: Linux luotain 2.6.22-10-generic #1 SMP Wed Aug 22 08:11:52 GMT 2007 i686 GNU/Linux

Tags: apport-bug
Revision history for this message
Johan Kiviniemi (ion) wrote :
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. that option helps you to debug gimp it doesnt prevent gimp to crash. you might want to read about https://wiki.ubuntu.com/DebuggingProgramCrash ; thanks.

Changed in gimp:
status: New → Invalid
Revision history for this message
Johan Kiviniemi (ion) wrote :

Gimp crashes. It catches the SEGV using its own handler, so apport and gdb don’t catch it. A parameter should prevent gimp from catching the signal. The parameter doesn’t work. How is this invalid?

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Did you read it the info i posted here?, it contains instructions on how to debug an application. If you want to debug gimp with their own tools you should run: gimp --debug-handlers --stack-trace-mode always

Revision history for this message
Johan Kiviniemi (ion) wrote :

‘--stack-trace-mode never’ doesn’t work, it’s as simple as that.

I don’t believe my debugging intentions or someone’s misunderstanding of them matters regarding the validity of this bug report.

This shouldn’t happen:

% gimp --stack-trace-mode never
This is a development version of GIMP. Debug messages may appear here.

*** glibc detected *** gimp: double free or corruption (out): 0x090d7850 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb76c8d75]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb76cc810]
/usr/lib/libglib-2.0.so.0(g_free+0x31)[0xb77f78c1]
and so on.

Changed in gimp:
status: Invalid → New
Revision history for this message
Basilio Kublik (sourcercito) wrote :

i don't see how it doesn't work for you Johan, it works pretty well here, i'm able to debug gimp with gdb and obtain all the needed info to get a good trace.

Changed in gimp:
status: New → Incomplete
Revision history for this message
Johan Kiviniemi (ion) wrote :

I investigated the problem a bit further. It isn’t a segmentation fault, but instead libc detects a problem, prints a stack trace and calls abort().

When using ‘--stack-trace-mode never’, gimp refrains from catching SIGBUS, SIGSEGV and SIGFPE, but it still catches SIGABRT, which isn’t then raised for apport to catch.

Revision history for this message
Sebastian Rode (sebastian-ro-deactivatedaccount) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. However, I am closing it because the bug has been fixed in the latest version of Ubuntu - the Hardy Heron.

Changed in gimp:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.