Re: xview applikation crashed

From: Matti Lindstroem <matti.lindstroem(at)gmx.net>
Date: Sat, 2 Jun 2007 08:46:19 +0200

Hab' den Rat von Olli befolgt. Zunächst 6.2 standard installiert. Xview, olvwm und xview-clients aus den ports bzw. als binary installiert. OLVWM läuft unsauber und xview applikationen crashen mit core dump. Das gleiche unter der Standard-Neuinstallation mit 6.1. Beide Systeme wurde komplett neu installiert. Getetet mit Testprogramm s.u.

Ausgabe von make:
$ ls
Makefile default_size.c default_text.c
Makefile~ default_size.core

$ make
gcc -I/usr/X11R6/include -L/usr/X11R6/lib -L/usr/openwin/lib -lX11 -lxview -lolgx -o default_size default_size.c
/usr/X11R6/lib/libxview.so: warning: warning: mktemp() possibly used unsafely; consider using mkstemp()
gcc -I/usr/X11R6/include -L/usr/X11R6/lib -L/usr/openwin/lib -lX11 -lxview -lolgx -o default_text default_text.c
default_text.c: In function `main':
default_text.c:19: warning: passing arg 1 of `xv_create' makes integer from pointer without a cast
/usr/X11R6/lib/libxview.so: warning: warning: mktemp() possibly used unsafely; consider using mkstemp()
$ ./default_size
Segmentation fault (core dumped)
$

Testprogramm:
#include <xview/xview.h>
#include <xview/font.h>
#include <xview/defaults.h>
#include <xview/textsw.h>

Defaults_pairs size_pairs[] = {
    "small", WIN_SCALE_SMALL,
    "medium", WIN_SCALE_MEDIUM,
    "large", WIN_SCALE_LARGE,
    "extralarge", WIN_SCALE_EXTRALARGE,
    /* the NULL entry is the default if Resource not found */
    NULL, WIN_SCALE_MEDIUM,
};

main(argc, argv)
char *argv[];
{
    Frame frame;
    Xv_Font font;
    int scale;

    xv_init(XV_INIT_ARGC_PTR_ARGV, &argc, argv, NULL);

    frame = (Frame)xv_create((int)NULL, FRAME, NULL);

    scale = defaults_get_enum("font.scale", "Font.Scale", size_pairs);
    /* get the default font for the frame, scaled to resource */
    font = xv_find(frame, FONT,
        FONT_RESCALE_OF, xv_find(frame, FONT, NULL), scale,
        NULL);

    xv_create(frame, TEXTSW,
        XV_FONT, font,
        WIN_COLUMNS, 80,
        WIN_ROWS, 10,
        NULL);

    window_fit(frame);
    xv_main_loop(frame);
}
Wie kann es sein, dass bei einem frisch installiertem System ohne zusätzliches Pakete dieses Programm crashed?
Vielleicht hat jemand noch eine Idee?
Danke!

On Fri, Jun 01, 2007 at 01:01:14PM +0200, Oliver Fromme wrote:
> matti.lindstroem(at)gmx.net wrote:
> > Ich such einfach mal weiter. Als erstes gibt's ne freie Partition
> > und eine Grundinstallation von FBSD 6.1 und X11, dann teste ich's
> > nochmal.
>
> Warum nicht gleich 6.2 anstatt eine veraltete Version?
>
> Ich an Deiner Stelle w?rde sogar gleich RELENG_6 nehmen.
> Wenn Du eine Bin?rinstallation machen musst (oder m?ch-
> test), kannst Du den aktuellen Mai-Snapshot per FTP von
> einem der Mirror herunterladen. (Den Juni-Snapshot gibt's
> wohl erst in ein paar Tagen.)
>
> Und dann nat?rlich gleich die aktuelle Ports-Collection
> nehmen. Meine Empfehlung ist, X11 bzw. Xorg als Bin?r-
> Package zu installieren; das selbst zu bauen macht nicht
> wirklich Freude.
>
> Gru?
> Olli
>
> --
> Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
> Handelsregister: Registergericht Muenchen, HRA 74606, Gesch?ftsfuehrung:
> secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht M?n-
> chen, HRB 125758, Gesch?ftsf?hrer: Maik Bachmann, Olaf Erb, Ralf Gebhart
>
> FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd
>
> "If you aim the gun at your foot and pull the trigger, it's
> UNIX's job to ensure reliable delivery of the bullet to
> where you aimed the gun (in this case, Mr. Foot)."
> -- Terry Lambert, FreeBSD-hackers mailing list.
>
>
> To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
> with "unsubscribe de-bsd-questions" in the body of the message
>

To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Sat 02 Jun 2007 - 08:55:34 CEST

search this site