delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/09/08/07:52:19

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_FL,TW_GL,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4E68AC5D.2080900@gmail.com>
Date: Thu, 08 Sep 2011 13:51:57 +0200
From: Marco atzeri <marco DOT atzeri AT gmail DOT com>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0.1) Gecko/20110830 Thunderbird/6.0.1
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: debugging SIGSEV on pclose
References: <4E64BE96 DOT 5020107 AT gmail DOT com> <j42imm$ecj$1 AT dough DOT gmane DOT org> <4E64D638 DOT 4030507 AT gmail DOT com> <j4934t$gv9$1 AT dough DOT gmane DOT org> <4E688FF0 DOT 7060307 AT gmail DOT com> <j4a4se$td3$1 AT dough DOT gmane DOT org>
In-Reply-To: <j4a4se$td3$1@dough.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 9/8/2011 12:20 PM, jojelino wrote:
> On 2011-09-08 PM 6:50, Marco atzeri wrote:
>> I am currently using debug version of cygwin-cvs, flkt-1.10 and octave;
>> but unfortunaltely the gdb backtrace is already corrupted/unclear at the
>> popen call, and I do not know if is real problem on a GDB issue :
>>
>> -------------------------------------------------------------------------------
>>
>>
> you need to do b _sigfe_popen, because the generated sigfe.s doesn't
> emit any sort of dwarf 2 cfi, which gdb needed to backtrace.
>

thanks,
very useful

Breakpoint 4, 0x610d0843 in _sigfe_pclose () from /usr/bin/cygwin1.dll
(gdb) bt
#0  0x610d0843 in _sigfe_pclose () from /usr/bin/cygwin1.dll
#1  0x61e041c5 in _fu14___ZNSs4_Rep20_S_empty_rep_storageE ()
     at ../../octave/src/DLD-FUNCTIONS/__init_fltk__.cc:166
#2  0x68441a03 in Fl_Gl_Window::flush (this=0x206bbf30) at 
Fl_Gl_Window.cxx:347
#3  0x0b68171f in flush (this=<optimized out>) at ../FL/x.H:126

and it matches the octave source code
----------------------------------------------
     if (print_mode)
       {
         FILE *fp = octave_popen (print_cmd.c_str (), "w");
         glps_renderer rend (fileno (fp), print_term);

         rend.draw (gh_manager::get_object (number));

         octave_pclose (fp);
         print_mode = false;
----------------------------------------------

regards
Marco

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019