Package: rosegarden2
Version: 2.1pl4-2
Severity: important

If I start rosegarden, and click either Notate or Sequence, I get

Rosegarden Editor: Segmentation Violation: this shouldn't happen, sorry.
Rosegarden Sequencer: Segmentation Violation: this shouldn't happen, sorry.

A debug build returned

Program received signal SIGSEGV, Segmentation fault.
0x00002aaaab1c3ec3 in _XtCountVaList () from /usr/X11R6/lib/libXt.so.6
(gdb) bt
#0  0x00002aaaab1c3ec3 in _XtCountVaList () from /usr/X11R6/lib/libXt.so.6
#1  0x00002aaaab1c2bda in XtVaSetValues () from /usr/X11R6/lib/libXt.so.6
#2  0x000000000044894f in CreateApplicationWidgets () at Widgets.c:189
#3  0x000000000041e889 in main (argc=1, argv=0x7fffffa91bb8, 
envp=0x7fffffa91bc8) at Main.c:488

which pointed to the reason: The calls to the XtVa... functions freely
mix int-sized (4) objects like 0 and pointer-sized (8) objects, and
terminate the arglists with a four byte NULL value (which will only
accitentally work in some cases).

I changed my lines 189ff in editor/src/Widget.c to
  XtVaSetValues(topBox,
                XtNleft,   (XtPointer) XawChainLeft,
                XtNright,  (XtPointer) XawChainRight,
                XtNtop,    (XtPointer) XawChainTop,
                XtNbottom, (XtPointer) XawChainTop,
                XtNhorizDistance, (XtPointer) 0,
                XtNvertDistance, (XtPointer) 0,
                XtNborderWidth, (XtPointer) 0,
                (XtPointer) NULL);
and now the editor starts. Of course, that is just an accident until the
other XtVa... calls are fixed, but I will not do that at 3 in the
morning.

Oh, and there is a build-dependecy on xaw3dg-dev missing.

Yours, Florian Hars.

-- System Information:
Debian Release: 3.1
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.12.4
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to