Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Nov 1996 13:33:17 -0500
From:      Garrett Wollman <wollman@lcs.mit.edu>
To:        current@freebsd.org
Cc:        jdp@polstra.com
Subject:   Can anyone explain...?
Message-ID:  <9611191833.AA10264@halloran-eldar.lcs.mit.edu>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9611191833.AA10264>