pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/54348: pkgsrc net/fetch core dumps



The following reply was made to PR pkg/54348; it has been noted by GNATS.

From: Hiroshi Hakoyama <hiroshi-hakoyama%nagano.ac.jp@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: joerg%netbsd.org@localhost,
 gnats-admin%netbsd.org@localhost,
 pkgsrc-bugs%netbsd.org@localhost,
 coypu%sdf.org@localhost
Subject: Re: pkg/54348: pkgsrc net/fetch core dumps
Date: Tue, 16 Jul 2019 19:47:16 +0900

 Dear coypu,
 
 I found that OpenCSW provides gcc 5.5 for Solaris 10.=20
 I installed gcc 5.5 (csw) instead of gcc 4.9.4 (pkgsrc) as a pkgsrc =
 compiler; As I reported in previous reports, devel/gdb and lang/gcc5 in =
 pkgsrc fail to build on Solaris 10.=20
 I built libfetch and fetch with CFLAGS+=3D -g -O0 and =
 INSTALL_UNSTRIPPED=3Dyes in mk.conf.
 
 The /opt/csw/bin/gdb seems to be functional in this case. Please find =
 the following output.
 
 
 Hiroshi
 
 
 # /opt/csw/bin/gdb /usr/pkg2/bin/fetch
 GNU gdb (GDB) 7.7
 Copyright (C) 2014 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 "sparc-sun-solaris2.10".
 Type "show configuration" for configuration details.
 For bug reporting instructions, please see:
 <http://www.gnu.org/software/gdb/bugs/>.
 Find the GDB manual and other documentation resources online at:
 <http://www.gnu.org/software/gdb/documentation/>.
 For help, type "help".
 Type "apropos word" to search for commands related to "word"...
 Reading symbols from /usr/pkg2/bin/fetch=E2=80=A6done.
 
 (gdb) run https://ftp.netbsd.org/robots.txt
 Starting program: /usr/pkg2/bin/fetch https://ftp.netbsd.org/robots.txt
 [Thread debugging using libthread_db enabled]
 [New Thread 1 (LWP 1)]
 
 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 1 (LWP 1)]
 0x000164a8 in fetchXGet (URL=3D0x3a888, us=3D0xffbff794, =
 flags=3D0xffbff7b0 "")
     at fetch.c:85
 85                      us->size =3D -1;
 
 (gdb) info threads
   Id   Target Id         Frame=20
 * 2    Thread 1 (LWP 1)  0x000164a8 in fetchXGet (URL=3D0x3a888, =
 us=3D0xffbff794,=20
     flags=3D0xffbff7b0 "") at fetch.c:85
   1    LWP    1          0x000164a8 in fetchXGet (URL=3D0x3a888, =
 us=3D0xffbff794,=20
     flags=3D0xffbff7b0 "") at fetch.c:85
 
 (gdb) thread apply all backtrace
 
 Thread 2 (Thread 1 (LWP 1)):
 #0  0x000164a8 in fetchXGet (URL=3D0x3a888, us=3D0xffbff794, =
 flags=3D0xffbff7b0 "")
     at fetch.c:85
 #1  0x00014454 in fetch (URL=3D0xffbffbe0 =
 "https://ftp.netbsd.org/robots.txt",=20
     path=3D0xffbffbf7 "robots.txt") at fetch.c:534
 #2  0x0001616c in main (argc=3D1, argv=3D0xffbffac0) at fetch.c:1046
 
 Thread 1 (LWP    1        ):
 #0  0x000164a8 in fetchXGet (URL=3D0x3a888, us=3D0xffbff794, =
 flags=3D0xffbff7b0 "")
     at fetch.c:85
 #1  0x00014454 in fetch (URL=3D0xffbffbe0 =
 "https://ftp.netbsd.org/robots.txt",=20
     path=3D0xffbffbf7 "robots.txt") at fetch.c:534
 #2  0x0001616c in main (argc=3D1, argv=3D0xffbffac0) at fetch.c:1046
 
 (gdb) info registers
 g0             0x0      0
 g1             0xffbff794       -4196460
 g2             0xffffffff       -1
 g3             0xffffffff       -1
 g4             0x0      0
 g5             0x0      0
 g6             0x0      0
 g7             0xff342a00       -13358592
 o0             0x394c0  234688
 o1             0x0      0
 o2             0x0      0
 o3             0x0      0
 o4             0x0      0
 o5             0x0      0
 sp             0xffbff680       0xffbff680
 o7             0xff0a3cd0       -16106288
 l0             0x0      0
 l1             0x0      0
 l2             0x0      0
 l3             0x0      0
 l4             0x0      0
 l5             0x0      0
 l6             0x0      0
 ---Type <return> to continue, or q <return> to quit---=20
 l7             0x0      0
 i0             0x3a888  239752
 i1             0xffbff794       -4196460
 i2             0xffbff7b0       -4196432
 i3             0x73000000       1929379840
 i4             0x80808080       -2139062144
 i5             0x1010101        16843009
 fp             0xffbff6e0       0xffbff6e0
 i7             0x1444c  83020
 y              0x0      0
 psr            0xff000080       [ S #24 #25 #26 #27 #28 #29 #30 #31 ]
 wim            <unavailable>
 tbr            <unavailable>
 pc             0x164a8  0x164a8 <fetchXGet+44>
 npc            0x164ac  0x164ac <fetchXGet+48>
 fsr            0x0      [ ]
 csr            <unavailable>
 
 (gdb) continue
 Continuing.
 procfs: couldn't find pid -1 in procinfo list.
 
 (gdb) quit
 A debugging session is active.
 
         Inferior 1 [process 5792    ] will be killed.
 
 Quit anyway? (y or n) y
 
 
 
 
 
 > 2019/07/15 14:05=E3=80=81coypu%sdf.org@localhost=E3=81=AE=E3=83=A1=E3=83=BC=E3=83=AB=
 :
 >=20
 > The following reply was made to PR pkg/54348; it has been noted by =
 GNATS.
 >=20
 > From: coypu%sdf.org@localhost
 > To: gnats-bugs%netbsd.org@localhost
 > Cc:=20
 > Subject: Re: pkg/54348: pkgsrc net/fetch core dumps
 > Date: Mon, 15 Jul 2019 05:04:11 +0000
 >=20
 > pkgsrc will normally strip binaries, INSTALL_UNSTRIPPED=3Dyes disables =
 it.
 >=20
 


Home | Main Index | Thread Index | Old Index