From owner-freebsd-current Tue Nov 19 10:33:24 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA22751 for current-outgoing; Tue, 19 Nov 1996 10:33:24 -0800 (PST) Received: from halloran-eldar.lcs.mit.edu (halloran-eldar.lcs.mit.edu [18.26.0.159]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id KAA22740 for ; Tue, 19 Nov 1996 10:33:18 -0800 (PST) Received: by halloran-eldar.lcs.mit.edu; (5.65v3.2/1.1.8.2/19Aug95-0530PM) id AA10264; Tue, 19 Nov 1996 13:33:17 -0500 Date: Tue, 19 Nov 1996 13:33:17 -0500 From: Garrett Wollman Message-Id: <9611191833.AA10264@halloran-eldar.lcs.mit.edu> To: current@freebsd.org Cc: jdp@polstra.com Subject: Can anyone explain...? Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk The new tzsetup(8) program I just committed does not work on my system when compiled shared. If I fiddle around with GDB in the right way, it tells me the earthshakingly useful fact that the segfault occurs inside a library: #0 0x802284e in dialog_menu (title=0x2821 "", prompt=0x2811 "", height=17, width=37, menu_height=10, cnt=-10, it=0x4208, result=0x0, ch=0xefbfd890, sc=0xefbfd88c) at /usr/wd1/src/gnu/lib/libdialog/menubox.c:163 163 print_item(menu, items[(scroll+i)*2], items[(scroll+i)*2 + 1], i, i == choice, DREF(ditems, scroll + i)); (My libdialog has debugging symbols in it (finally!).) If I link static, there is no problem at all and the program works precisely as intended. If anyone wants to debug this, I'll happily send along a copy of the zone.tab file which you'll need in order to run the program. -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, ANA, or NSA| - Susan Aglukark and Chad Irschick