public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: Built perl 5.6.2 on Cygwin 1.7.11, but get SIGABRT from resulting perl.exe
@ 2012-07-16 19:53 Nicholas DiPiazza
  2012-07-17  3:25 ` jojelino
  0 siblings, 1 reply; 11+ messages in thread
From: Nicholas DiPiazza @ 2012-07-16 19:53 UTC (permalink / raw)
  To: cygwin

Hi jojelino,

You asked: 

> what is result of
> gdb --args perl
> b abort
> r
> bt (when breakpoint is hit.)

Here it is:

nick@nick-PC ~/perl-5.6.2
$ gdb --args perl
GNU gdb (GDB) 7.3.50.20111026-cvs (cygwin-special)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-cygwin".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/nick/perl-5.6.2/perl...done.
(gdb) b abort
Function "abort" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y

Breakpoint 1 (abort) pending.
(gdb) r
Starting program: /home/nick/perl-5.6.2/perl
[New Thread 3916.0xe18]
[New Thread 3916.0xae4]

Breakpoint 1, abort ()
    at
/home/corinna/src/cygwin/cygwin-1.7.15/cygwin-1.7.15-1/src/cygwin-1.7.15/   
    winsup/cygwin/signal.cc:374
374    
/home/corinna/src/cygwin/cygwin-1.7.15/cygwin-1.7.15-1/src/cygwin-1.7.15    
   /winsup/cygwin/signal.cc: No such file or directory.
        in
/home/corinna/src/cygwin/cygwin-1.7.15/cygwin-1.7.15-1/src/cygwin-1.7      
.15/winsup/cygwin/signal.cc
(gdb) bt
#0  abort ()
    at
/home/corinna/src/cygwin/cygwin-1.7.15/cygwin-1.7.15-1/src/cygwin-1.7.15/   
    winsup/cygwin/signal.cc:374
#1  0x6110f305 in dlfree (mem=<optimized out>)
    at
/home/corinna/src/cygwin/cygwin-1.7.15/cygwin-1.7.15-1/src/cygwin-1.7.15/   
    winsup/cygwin/malloc.cc:4242
#2  0x610831b0 in free (p=0x20000010)
    at
/home/corinna/src/cygwin/cygwin-1.7.15/cygwin-1.7.15-1/src/cygwin-1.7.15/   
    winsup/cygwin/malloc_wrapper.cc:49
#3  0x610d50f5 in _sigfe () from /cygdrive/c/cygwin/bin/cygwin1.dll
#4  0x00000000 in ?? ()
(gdb)

Let me know if you would like to see anything else. 


-----

Hi Reini Urban,

Thanks for this and sorry for my delay in response. '
I tried switching to a 32-bit system before doing the build, rebaseall,
perlrebase, patchperl, and perlall. Each of these still result in the Abort
signal being thrown.

$ ldd perl.exe
         ntdll.dll => /cygdrive/c/Windows/SYSTEM32/ntdll.dll (0x771e0000)
         kernel32.dll => /cygdrive/c/Windows/system32/kernel32.dll
(0x75cf0000)
         KERNELBASE.dll => /cygdrive/c/Windows/system32/KERNELBASE.dll
(0x75560000)
         libperl5_6_2.dll => /home/nick/perl-5.6.2/libperl5_6_2.dll
(0x66140000)
         cygcrypt-0.dll => /usr/bin/cygcrypt-0.dll (0x681a0000)
         cygwin1.dll => /usr/bin/cygwin1.dll (0x61000000)
         cyggcc_s-1.dll => /usr/bin/cyggcc_s-1.dll (0x67680000)

Important note: The perl5.6.2 did not build on Cygwin without changing

static_ext = lib/auto/Win32CORE/Win32CORE$(LIB_EXT)

to this

static_ext =

Is that why I am having the problem?

-Nicholas
Looks like a failing rebase on an incredibly low address 0xa70000.
Try rebaseall.

And then maybe a
$ perlrebase 5.6.2
But it rather looks like a system dll. libz.dll maybe.
Note: The argument 5.6.2 to find your right executable suffix

From my experience only lib/File/Find.pm from a newer perl is required
(I  took 5.8.1), otherwise you not be able to installe other modules
because the are not found.

I usually install old stuff with App::perlall and/or Devel::PatchPerl
--
Reini Urban
http://cpanel.net/ ? http://www.perl-compiler.org/

--
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

References:
Built perl 5.6.2 on Cygwin 1.7.11, but get SIGABRT from resulting
perl.exe
From: Nicholas DiPiazza

-----Original Message-----
From: Nicholas DiPiazza [mailto:nicholas.dipiazza at gmail.com]
Sent: Thursday, June 21, 2012 12:46 PM
To: cygwin at cygwin.com
Subject: Built perl 5.6.2 on Cygwin 1.7.11, but get SIGABRT from resulting
perl.exe

From: Nicholas DiPiazza [mailto:nicholas.dipiazza at gmail.com]
Sent: Thursday, June 21, 2012 12:41 PM
To: cygwn at cygwin.com
Subject: Built perl 5.6.2 on Cygwin 1.7.11, but get SIGABRT from resulting
perl.exe

Dear Cygwin Users,
I'm getting a SIGABRT when running a perl 5.6.2 that i built on cygwin
1.7.11.

See ldd from a working perl 5.10 http://pastebin.com/ytjVYg4F versus my
broken perl 5.6.2 http://pastebin.com/YXZ29NG6.

I turned on -DDEBUGGING on the ./Configure script. Here is the gdb backtrace
I have:

http://paste.scsys.co.uk/201064

Are there libraries missing? What's going on here?
-Nicholas DiPiazza
Openlogic Support




--
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

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: Built perl 5.6.2 on Cygwin 1.7.11, but get SIGABRT from resulting perl.exe
@ 2012-07-18 17:46 Nicholas DiPiazza
  2012-07-19  2:01 ` jojelino
  0 siblings, 1 reply; 11+ messages in thread
From: Nicholas DiPiazza @ 2012-07-18 17:46 UTC (permalink / raw)
  To: cygwin

Jojelino asked: 

   "What was the result of
    gdb --args perl
    symbol cygwin1.dll
    define btc
    bt
    c
    end
    # "Function "_sigfe_free" not defined." shouldn't be seen. if it does,
please use latest snapshot including debug symbol.
    b _sigfe_free
    disp *((unsigned*)$esp+1)
    r
    btc
    #and just press enter until sigabrt is hit. ?"

Here is the result. 

$ gdb --args perl
GNU gdb (GDB) 7.3.50.20111026-cvs (cygwin-special)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-cygwin".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/windows7-vm/perl-5.6.2/perl...done.
(gdb) symbol cygwin1.dll
Load new symbol table from "/usr/bin/cygwin1.dll"? (y or n) y
Reading symbols from /usr/bin/cygwin1.dll...(no debugging symbols
found)...done.
(gdb) define btc
Type commands for definition of "btc".
End with a line saying just "end".
>bt
>c
>end
(gdb) b _sigfe_free
Breakpoint 1 at 0x610d420a
(gdb) disp *((unsigned*)$esp+1)
(gdb) r
Starting program: /home/windows7-vm/perl-5.6.2/perl
[New Thread 2184.0xec0]
[New Thread 2184.0xef0]

Breakpoint 1, 0x610d420a in _sigfe_free ()
   from /cygdrive/c/cygwin/bin/cygwin1.dll
1: *((unsigned*)$esp+1) = 2147483664
(gdb) btc
#0  0x610d420a in _sigfe_free () from /cygdrive/c/cygwin/bin/cygwin1.dll
#1  0x61082119 in malloc_init() () from /cygdrive/c/cygwin/bin/cygwin1.dll
#2  0x00000000 in ?? ()

Program received signal SIGABRT, Aborted.
0x7718f8b1 in ntdll!RtlUpdateClonedSRWLock ()
   from /cygdrive/c/Windows/system32/ntdll.dll
1: *((unsigned*)$esp+1) = 1987840657
(gdb)
#0  0x7718f8b1 in ntdll!RtlUpdateClonedSRWLock ()
   from /cygdrive/c/Windows/system32/ntdll.dll
#1  0x7718f8b1 in ntdll!RtlUpdateClonedSRWLock ()
   from /cygdrive/c/Windows/system32/ntdll.dll
#2  0x767c0a91 in WaitForSingleObjectEx ()
   from /cygdrive/c/Windows/syswow64/KERNELBASE.dll
#3  0x000000a8 in ?? ()
#4  0x00000000 in ?? ()





--
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

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: Built perl 5.6.2 on Cygwin 1.7.11, but get SIGABRT from resulting perl.exe
@ 2012-07-17 19:56 Nicholas DiPiazza
  2012-07-18  2:51 ` jojelino
  0 siblings, 1 reply; 11+ messages in thread
From: Nicholas DiPiazza @ 2012-07-17 19:56 UTC (permalink / raw)
  To: cygwin

Jojelino asked:

  "and then, what was the result of
  gdb --args perl
  b _sigfe_free if *((unsigned*)$esp+1)==0x20000010 #which i am interested in to see what the backtrace was. 
  disp *((unsigned*)$esp+1)
  r
  bt #when breakpoint is hit"


Here is the result: 

$ gdb --args perl
GNU gdb (GDB) 7.3.50.20111026-cvs (cygwin-special)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-cygwin".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/windows7-vm/perl-5.6.2/perl...done.
(gdb) b _sigfe_free if *((unsigned*)$esp+1)==0x20000010
Function "_sigfe_free" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y

Breakpoint 1 (_sigfe_free if *((unsigned*)$esp+1)==0x20000010) pending.
(gdb) disp *((unsigned*)$esp+1)
(gdb) r
Starting program: /home/windows7-vm/perl-5.6.2/perl
[New Thread 2320.0xc08]
[New Thread 2320.0xdac]

Program received signal SIGABRT, Aborted.
0x7718f8b1 in ntdll!RtlUpdateClonedSRWLock ()
   from /cygdrive/c/Windows/system32/ntdll.dll
1: *((unsigned*)$esp+1) = 1987840657
(gdb) bt
#0  0x7718f8b1 in ntdll!RtlUpdateClonedSRWLock ()
   from /cygdrive/c/Windows/system32/ntdll.dll
#1  0x7718f8b1 in ntdll!RtlUpdateClonedSRWLock ()
   from /cygdrive/c/Windows/system32/ntdll.dll
#2  0x767c0a91 in WaitForSingleObjectEx ()
   from /cygdrive/c/Windows/syswow64/KERNELBASE.dll
#3  0x000000a8 in ?? ()
#4  0x00000000 in ?? ()


--
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

^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <014d01cd4fd5$0125df60$03719e20$@gmail.com>]

end of thread, other threads:[~2012-07-19  2:01 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-16 19:53 Built perl 5.6.2 on Cygwin 1.7.11, but get SIGABRT from resulting perl.exe Nicholas DiPiazza
2012-07-17  3:25 ` jojelino
  -- strict thread matches above, loose matches on Subject: below --
2012-07-18 17:46 Nicholas DiPiazza
2012-07-19  2:01 ` jojelino
2012-07-17 19:56 Nicholas DiPiazza
2012-07-18  2:51 ` jojelino
     [not found] <014d01cd4fd5$0125df60$03719e20$@gmail.com>
2012-06-21 17:46 ` Nicholas DiPiazza
2012-06-23 15:25   ` Reini Urban
     [not found]   ` <010701cd637e$d3693910$7a3bab30$@gmail.com>
     [not found]     ` <011301cd637f$62ebf640$28c3e2c0$@gmail.com>
2012-07-16 18:35       ` Nicholas DiPiazza
2012-07-16 19:01         ` jojelino
2012-07-16 19:30         ` Nicholas DiPiazza

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).