lsof under 8.99.2
Hi, I had to get rid of PSCctl / Pctl as follows: - --- dlsof.h.ORIG 2017-08-29 13:44:55.070622675 +0100 +++ dlsof.h 2017-08-29 13:46:11.574438523 +0100 @@ -373,7 +373,6 @@ #definePregs PFSregs #definePfile PFSfile #definePfpregs PFSfpregs -#definePctlPFSctl #definePstatus PFSstatus #definePnote PFSnote #definePnotepg PFSnotepg --- dnode.c.ORIG2017-08-29 13:45:03.910578312 +0100 +++ dnode.c 2017-08-29 13:46:52.170800142 +0100 @@ -1307,11 +1307,6 @@ (void) snpf(ep, sz, "/%d/fpregs", p.pfs_pid); ty = "PFPR"; break; - case Pctl: - ep = endnm(); - (void) snpf(ep, sz, "/%d/ctl", p.pfs_pid); - ty = "PCTL"; - break; case Pstatus: ep = endnm(); (void) snpf(ep, sz, "/%d/status", p.pfs_pid); - in order to compile/test lsof under 8.99.2 (amd64). I couldn't figure out (and I didn't try hard, to be honest) how to make the patches work, as the files in question are generated in the 'make configure' stage. Chavdar Ivanov
Re: gdb misbehaviour
On 28.08.2017 17:28, Patrick Welche wrote: > While trying to update pkgsrc glib-networking on -current/amd64, > I saw that gio-querymodules kept dumping core. I don't understand > the gdb output: > > quantz# gdb /usr/pkg/bin/gio-querymodules > GNU gdb (GDB) 7.12 > ... > (gdb) break main > Breakpoint 1 at 0x401438: file gio-querymodules.c, line 132. > (gdb) run /usr/pkg/lib/gio/modules > Starting program: /usr/pkg/bin/gio-querymodules /usr/pkg/lib/gio/modules > > Breakpoint 1, main (argc=2, argv=0x7f7fe7a0) at gio-querymodules.c:132 > 132 if (argc == 1) > (gdb) n > 139 setlocale (LC_ALL, ""); > (gdb) > 142 g_type_ensure (G_TYPE_OBJECT); > (gdb) > 144 for (i = 1; i < argc; i++) > (gdb) > 145 query_dir (argv[i]); > (gdb) > 144 for (i = 1; i < argc; i++) > (gdb) > 147 return 0; > (gdb) > 148 } > (gdb) > 0x0040101b in ___start () > (gdb) > Single stepping until exit from function ___start, > which has no line number information. > > Program received signal SIGSEGV, Segmentation fault. > 0x7f7ff4c0979f in ?? () > (gdb) > Cannot find bounds of current function > > > "return 0;" didn't? (This is a 20 August system) > > Cheers, > > Patrick > It works for me (NetBSD-current from Aug 26). (gdb) break main Breakpoint 1 at 0x401141: file gio-querymodules.c, line 132. (gdb) run /usr/pkg/lib/gio/modules Starting program: /usr/pkg/bin/gio-querymodules /usr/pkg/lib/gio/modules Breakpoint 1, main (argc=2, argv=0x7f7fff567eb0) at gio-querymodules.c:132 132 if (argc == 1) (gdb) n 139 setlocale (LC_ALL, ""); (gdb) 142 g_type_ensure (G_TYPE_OBJECT); (gdb) 144 for (i = 1; i < argc; i++) (gdb) 145 query_dir (argv[i]); (gdb) 144 for (i = 1; i < argc; i++) (gdb) 148 } (gdb) 0x0040104b in ___start () (gdb) Single stepping until exit from function ___start, which has no line number information. [Inferior 1 (LWP 0) exited normally] (gdb) The program is not being run. (gdb) My pkgsrc build is with options (mk.conf(5)): CFLAGS+=-Og -g -ggdb CXXFLAGS+= -Og -g -ggdb INSTALL_UNSTRIPPED= yes BUILDLINK_TRANSFORM+= rm:-s signature.asc Description: OpenPGP digital signature
Re: gdb misbehaviour
On Mon, Aug 28, 2017 at 01:10:59PM -0500, John D. Baker wrote: > When did you last build "glib2" and "gobject-introspection"? Was it with > a system before this change: > > http://mail-index.netbsd.org/source-changes/2017/07/19/msg086477.html > > or after? It has been my observation that packages built before the > above change will continue to have problems, notably 'gio-querymodules' > segfaulting during the de-install of a package being updated/replaced. I knew about this issue, hence mentioning 20 August system HOWEVER two of the modules installed were from before then. So, new NetBSD, glib2 and gobject-instrospection wasn't enough - I had to replace gio-fam and dconf as well. (Hadn't guessed as I was working on glib-networking.) Thanks, Patrick