Bertfried Fauser wrote:
> 
> Hi,
> 
>   this is non critical as I was able to compile FriCAS on my new machine so=
>  far,
> only when I want to produce the graphics for the hypertext I get an
> error which I have
> never seen before.
> 
> I have checked that I have installed all the libraries which seem to
> be needed for
> ubuntu 11.10 (oeneric ocelot)
> 
> After `>make gphts' (see output below) the graphs start to be
> produced, but then
> the process stops and I have to kill it with ctrl-z
> 
> I can live without the graphs in the hypertext, but if there is a
> solution I would
> appreciate any hint.

AFAICS on your machine you have some special tool intended to
catch security bugs.  This tools stops execution of view2D
program claiming it found buffer overflow.  I am not sure
if this tool is standard Ubuntu tool (and on by default) or
something extra installed on your machine, but ATM I was
unable to reproduce the problem on machines I have (alas,
Ubuntu install I have lacks X headers so I can not test
there).

> *** buffer overflow detected ***:
> /home/fauser/fricas-svn/build-dir/target/x86_64-unknown-linux/lib/view3D
> terminated
> ======= Backtrace: =========
> /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x2b6fed0d57f7]
> /lib/x86_64-linux-gnu/libc.so.6(+0xf7710)[0x2b6fed0d4710]
> /lib/x86_64-linux-gnu/libc.so.6(+0xf6b79)[0x2b6fed0d3b79]
> /lib/x86_64-linux-gnu/libc.so.6(_IO_default_xsputn+0xdd)[0x2b6fed052e7d]
> /lib/x86_64-linux-gnu/libc.so.6(_IO_vfprintf+0x1b92)[0x2b6fed026082]
> /lib/x86_64-linux-gnu/libc.so.6(__vsprintf_chk+0x94)[0x2b6fed0d3c14]
> /lib/x86_64-linux-gnu/libc.so.6(__sprintf_chk+0x7d)[0x2b6fed0d3b5d]
> /home/fauser/fricas-svn/build-dir/target/x86_64-unknown-linux/lib/view3D[0x421f98]
> /home/fauser/fricas-svn/build-dir/target/x86_64-unknown-linux/lib/view3D[0x4036c9]

Could you try

addr2line -e 
/home/fauser/fricas-svn/build-dir/target/x86_64-unknown-linux/lib/view3D 
0x421f98 0x4036c9

and tell me the result.  Of course the numbers should be from failing
run (they denote locations in the binary, addr2line should print
corresponding line numbers).
> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x2b6fecffe30d]
> /home/fauser/fricas-svn/build-dir/target/x86_64-unknown-linux/lib/view3D[0x=
> 40417d]
> =3D=3D=3D=3D=3D=3D=3D Memory map: =3D=3D=3D=3D=3D=3D=3D=3D
> 00400000-0042c000 r-xp 00000000 08:07 5114389
>   /home/fauser/fricas-svn/build-dir/target/x86_64-unknown-linux/lib/view3D
> 0062b000-0062c000 r--p 0002b000 08:07 5114389
>   /home/fauser/fricas-svn/build-dir/target/x86_64-unknown-linux/lib/view3D
> 0062c000-0062d000 rw-p 0002c000 08:07 5114389
>   /home/fauser/fricas-svn/build-dir/target/x86_64-unknown-linux/lib/view3D
> 0062d000-00636000 rw-p 00000000 00:00 0
> 021d9000-021fb000 rw-p 00000000 00:00 0                                  [h=
> eap]
> 2b6fec5ec000-2b6fec60d000 r-xp 00000000 08:06 135355
>   /lib/x86_64-linux-gnu/ld-2.13.so
> 2b6fec60d000-2b6fec60f000 rw-p 00000000 00:00 0
> 2b6fec80c000-2b6fec80d000 r--p 00020000 08:06 135355
>   /lib/x86_64-linux-gnu/ld-2.13.so
> 2b6fec80d000-2b6fec80f000 rw-p 00021000 08:06 135355
>   /lib/x86_64-linux-gnu/ld-2.13.so
> 2b6fec80f000-2b6fec81f000 r-xp 00000000 08:06 1447400
>   /usr/lib/libXpm.so.4.11.0
> 2b6fec81f000-2b6feca1e000 ---p 00010000 08:06 1447400
>   /usr/lib/libXpm.so.4.11.0
> 2b6feca1e000-2b6feca1f000 r--p 0000f000 08:06 1447400
>   /usr/lib/libXpm.so.4.11.0
> 2b6feca1f000-2b6feca20000 rw-p 00010000 08:06 1447400
>   /usr/lib/libXpm.so.4.11.0
> 2b6feca20000-2b6fecb53000 r-xp 00000000 08:06 1453704
>   /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
> 2b6fecb53000-2b6fecd53000 ---p 00133000 08:06 1453704
>   /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
> 2b6fecd53000-2b6fecd54000 r--p 00133000 08:06 1453704
>   /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
> 2b6fecd54000-2b6fecd58000 rw-p 00134000 08:06 1453704
>   /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
> 2b6fecd58000-2b6fecd59000 rw-p 00000000 00:00 0
> 2b6fecd59000-2b6fecddc000 r-xp 00000000 08:06 135398
>   /lib/x86_64-linux-gnu/libm-2.13.so
> 2b6fecddc000-2b6fecfdb000 ---p 00083000 08:06 135398
>   /lib/x86_64-linux-gnu/libm-2.13.so
> 2b6fecfdb000-2b6fecfdc000 r--p 00082000 08:06 135398
>   /lib/x86_64-linux-gnu/libm-2.13.so
> 2b6fecfdc000-2b6fecfdd000 rw-p 00083000 08:06 135398
>   /lib/x86_64-linux-gnu/libm-2.13.so
> 2b6fecfdd000-2b6fed172000 r-xp 00000000 08:06 135368
>   /lib/x86_64-linux-gnu/libc-2.13.so
> 2b6fed172000-2b6fed371000 ---p 00195000 08:06 135368
>   /lib/x86_64-linux-gnu/libc-2.13.so
> 2b6fed371000-2b6fed375000 r--p 00194000 08:06 135368
>   /lib/x86_64-linux-gnu/libc-2.13.so
> 2b6fed375000-2b6fed376000 rw-p 00198000 08:06 135368
>   /lib/x86_64-linux-gnu/libc-2.13.so
> 2b6fed376000-2b6fed37c000 rw-p 00000000 00:00 0
> 2b6fed37c000-2b6fed397000 r-xp 00000000 08:06 1454002
>   /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
> 2b6fed397000-2b6fed596000 ---p 0001b000 08:06 1454002
>   /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
> 2b6fed596000-2b6fed597000 r--p 0001a000 08:06 1454002
>   /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
> 2b6fed597000-2b6fed598000 rw-p 0001b000 08:06 1454002
>   /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
> 2b6fed598000-2b6fed599000 rw-p 00000000 00:00 0
> 2b6fed599000-2b6fed59b000 r-xp 00000000 08:06 135379
>   /lib/x86_64-linux-gnu/libdl-2.13.so
> 2b6fed59b000-2b6fed79b000 ---p 00002000 08:06 135379
>   /lib/x86_64-linux-gnu/libdl-2.13.so
> 2b6fed79b000-2b6fed79c000 r--p 00002000 08:06 135379
>   /lib/x86_64-linux-gnu/libdl-2.13.so
> 2b6fed79c000-2b6fed79d000 rw-p 00003000 08:06 135379
>   /lib/x86_64-linux-gnu/libdl-2.13.so
> 2b6fed79d000-2b6fed79f000 r-xp 00000000 08:06 1453706
>   /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
> 2b6fed79f000-2b6fed99e000 ---p 00002000 08:06 1453706
>   /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
> 2b6fed99e000-2b6fed99f000 r--p 00001000 08:06 1453706
>   /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
> 2b6fed99f000-2b6fed9a0000 rw-p 00002000 08:06 1453706
>   /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
> 2b6fed9a0000-2b6fed9a5000 r-xp 00000000 08:06 1453714
>   /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
> 2b6fed9a5000-2b6fedba4000 ---p 00005000 08:06 1453714
>   /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
> 2b6fedba4000-2b6fedba5000 r--p 00004000 08:06 1453714
>   /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
> 2b6fedba5000-2b6fedba6000 rw-p 00005000 08:06 1453714
>   /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
> 2b6fedba6000-2b6fedba9000 rw-p 00000000 00:00 0
> 2b6fedba9000-2b6fedbb2000 r-xp 00000000 08:06 1453710
>   /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
> 2b6fedbb2000-2b6feddb1000 ---p 00009000 08:06 1453710
>   /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
> 2b6feddb1000-2b6feddb2000 r--p 00008000 08:06 1453710
>   /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
> 2b6feddb2000-2b6feddb3000 rw-p 00009000 08:06 1453710
>   /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
> 2b6feddb3000-2b6feddbc000 r-xp 00000000 08:06 1453728
>   /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
> 2b6feddbc000-2b6fedfbc000 ---p 00009000 08:06 1453728
>   /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
> 2b6fedfbc000-2b6fedfbd000 r--p 00009000 08:06 1453728
>   /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
> 2b6fedfbd000-2b6fedfbe000 rw-p 0000a000 08:06 1453728
>   /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
> 2b6fedfbe000-2b6fedfc3000 r-xp 00000000 08:06 1453718
>   /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
> 2b6fedfc3000-2b6fee1c2000 ---p 00005000 08:06 1453718
>   /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
> 2b6fee1c2000-2b6fee1c3000 r--p 00004000 08:06 1453718
>   /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
> 2b6fee1c3000-2b6fee1c4000 rw-p 00005000 08:06 1453718
>   /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
> 2b6fee1c4000-2b6fee1d9000 r-xp 00000000 08:06 135389
>   /lib/x86_64-linux-gnu/libgcc_s.so.1
> 2b6fee1d9000-2b6fee3d8000 ---p 00015000 08:06 135389
>   /lib/x86_64-linux-gnu/libgcc_s.so.1
> 2b6fee3d8000-2b6fee3d9000 r--p 00014000 08:06 135389
>   /lib/x86_64-linux-gnu/libgcc_s.so.1
> 2b6fee3d9000-2b6fee3da000 rw-p 00015000 08:06 135389
>   /lib/x86_64-linux-gnu/libgcc_s.so.1
> 7fff126ad000-7fff126ce000 rw-p 00000000 00:00 0                          [s=
> tack]
> 7fff127ff000-7fff12800000 r-xp 00000000 00:00 0                          [v=
> dso]
> ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0
>   [vsyscall]
> The viewport manager could not read from a 3D viewport window
> code=3D-1
> ack=3D0
> 
> --=20
> You received this message because you are subscribed to the Google Groups "=
> FriCAS - computer algebra system" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to fricas-devel+unsubscribe@goog=
> legroups.com.
> For more options, visit this group at http://groups.google.com/group/fricas=
> -devel?hl=3Den.
> 
> 


-- 
                              Waldek Hebisch
[email protected] 

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/fricas-devel?hl=en.

Reply via email to