Menu

#2 gcx 1.1 stack smashing detected

open
nobody
None
5
2009-07-26
2009-07-26
Anonymous
No

I used gcx for a quite a while on my Kubuntu 8.04 and never faced a problem. Now I freshly installed Kubuntu 9.04 and compiled gcx 1.1 which is now unusable.

Starting gcx and loading a FITS file crashes the app:

klaus@sirius:~/packages/gcx-1.1-test/gcx-1.1/src$ ./gcx -D 4

Gtk-WARNING **: Failed to load module "libcanberra-gtk-module.so": libcanberra-gtk-module.so: cannot open shared object file: No such file or directory
menubar: 0x95b5920
add average to stak method menu
add median to stak method menu
add kappa_sigma to stak method menu
add mean_median to stak method menu
calling gtk_main, no frame
opening fits file: /home/klaus/astronomie/images/BOO/ZBOO/20090522_bearbeitet/ZBOO-60V.fits
Reading FITS file: /home/klaus/astronomie/images/BOO/ZBOO/20090522_bearbeitet/ZBOO-60V.fits 765 x 510 x 16
wcs status is: 0
*** stack smashing detected ***: ./gcx terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb7d1bda8]
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x0)[0xb7d1bd60]
./gcx[0x80d823d]
./gcx(fits_get_int+0x1f)[0x80d825f]
./gcx(rescan_fits_exp+0x37)[0x8091a77]
./gcx[0x80611f2]
/usr/lib/libgtk-1.2.so.0(gtk_marshal_NONE__NONE+0x16)[0xb7fbcb06]
/usr/lib/libgtk-1.2.so.0[0xb7ff10a2]
/usr/lib/libgtk-1.2.so.0[0xb7ff373f]
/usr/lib/libgtk-1.2.so.0(gtk_signal_emit+0xed)[0xb7ff3d5d]
/usr/lib/libgtk-1.2.so.0(gtk_button_clicked+0x73)[0xb7f49b93]
/usr/lib/libgtk-1.2.so.0[0xb7f4a505]
/usr/lib/libgtk-1.2.so.0(gtk_marshal_NONE__NONE+0x16)[0xb7fbcb06]
/usr/lib/libgtk-1.2.so.0[0xb7ff3616]
/usr/lib/libgtk-1.2.so.0(gtk_signal_emit+0xed)[0xb7ff3d5d]
/usr/lib/libgtk-1.2.so.0(gtk_button_released+0x73)[0xb7f49c83]
/usr/lib/libgtk-1.2.so.0[0xb7f4aab5]
/usr/lib/libgtk-1.2.so.0(gtk_marshal_BOOL__POINTER+0x24)[0xb7fbc754]
/usr/lib/libgtk-1.2.so.0[0xb7ff368d]
/usr/lib/libgtk-1.2.so.0(gtk_signal_emit+0xed)[0xb7ff3d5d]
/usr/lib/libgtk-1.2.so.0(gtk_widget_event+0x1d1)[0xb802f691]
/usr/lib/libgtk-1.2.so.0(gtk_propagate_event+0xa2)[0xb7fba8a2]
/usr/lib/libgtk-1.2.so.0(gtk_main_do_event+0x26f)[0xb7fbb8af]
/usr/lib/libgdk-1.2.so.0[0xb7ef895b]
/usr/lib/libglib-1.2.so.0[0xb7ec7bfd]
/usr/lib/libglib-1.2.so.0[0xb7ec845f]
/usr/lib/libglib-1.2.so.0(g_main_run+0x3f)[0xb7ec85df]
/usr/lib/libgtk-1.2.so.0(gtk_main+0xbf)[0xb7fbbe0f]
./gcx(main+0x16f1)[0x80647e1]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb7c34775]
./gcx[0x8056c81]
======= Memory map: ========
08048000-080f9000 r-xp 00000000 08:07 7643617 /home/klaus/packages/gcx-1.1-test/gcx-1.1/src/gcx
080f9000-080fa000 r--p 000b0000 08:07 7643617 /home/klaus/packages/gcx-1.1-test/gcx-1.1/src/gcx
080fa000-08100000 rw-p 000b1000 08:07 7643617 /home/klaus/packages/gcx-1.1-test/gcx-1.1/src/gcx
08100000-08104000 rw-p 08100000 00:00 0
09534000-095da000 rw-p 09534000 00:00 0 [heap]
b793a000-b7947000 r-xp 00000000 08:06 1050641 /lib/libgcc_s.so.1
b7947000-b7948000 r--p 0000c000 08:06 1050641 /lib/libgcc_s.so.1
b7948000-b7949000 rw-p 0000d000 08:06 1050641 /lib/libgcc_s.so.1
b7949000-b7b48000 rw-p b7949000 00:00 0
b7b48000-b7b4c000 r-xp 00000000 08:06 50322 /usr/lib/libXfixes.so.3.1.0
b7b4c000-b7b4d000 rw-p 00003000 08:06 50322 /usr/lib/libXfixes.so.3.1.0
b7b4d000-b7b55000 r-xp 00000000 08:06 50342 /usr/lib/libXrender.so.1.3.0
b7b55000-b7b56000 r--p 00007000 08:06 50342 /usr/lib/libXrender.so.1.3.0
b7b56000-b7b57000 rw-p 00008000 08:06 50342 /usr/lib/libXrender.so.1.3.0
b7b57000-b7b5f000 r-xp 00000000 08:06 50314 /usr/lib/libXcursor.so.1.0.2
b7b5f000-b7b60000 rw-p 00007000 08:06 50314 /usr/lib/libXcursor.so.1.0.2
b7b60000-b7bc0000 rw-s 00000000 00:09 4259845 /SYSV00000000 (deleted)
b7bc0000-b7bca000 r-xp 00000000 08:06 1068110 /lib/tls/i686/cmov/libnss_files-2.9.so
b7bca000-b7bcb000 r--p 00009000 08:06 1068110 /lib/tls/i686/cmov/libnss_files-2.9.so
b7bcb000-b7bcc000 rw-p 0000a000 08:06 1068110 /lib/tls/i686/cmov/libnss_files-2.9.so
b7bcc000-b7bd5000 r-xp 00000000 08:06 1068114 /lib/tls/i686/cmov/libnss_nis-2.9.so
b7bd5000-b7bd6000 r--p 00008000 08:06 1068114 /lib/tls/i686/cmov/libnss_nis-2.9.so
b7bd6000-b7bd7000 rw-p 00009000 08:06 1068114 /lib/tls/i686/cmov/libnss_nis-2.9.so
b7bd7000-b7bec000 r-xp 00000000 08:06 1068104 /lib/tls/i686/cmov/libnsl-2.9.so
b7bec000-b7bed000 r--p 00014000 08:06 1068104 /lib/tls/i686/cmov/libnsl-2.9.so
b7bed000-b7bee000 rw-p 00015000 08:06 1068104 /lib/tls/i686/cmov/libnsl-2.9.so
b7bee000-b7bf0000 rw-p b7bee000 00:00 0
b7bf0000-b7bf7000 r-xp 00000000 08:06 1068106 /lib/tls/i686/cmov/libnss_compat-2.9.so
b7bf7000-b7bf8000 r--p 00006000 08:06 1068106 /lib/tls/i686/cmov/libnss_compat-2.9.so
b7bf8000-b7bf9000 rw-p 00007000 08:06 1068106 /lib/tls/i686/cmov/libnss_compa
Aborted

During compilation I saw some wanrings never seen before:

In Funktion »snprintf«,
eingefügt von »parse_cat_line_gsc2« bei query.c:313,
eingefügt von »parse_cat_line« bei query.c:518,
eingefügt von »query_catalog« bei query.c:674:
/usr/include/bits/stdio2.h:65: Warnung: Aufruf von __builtin___snprintf_chk wird den Zielpuffer immer überlaufen lassen

In English: Warning: Calling __builtin___snprintf_chk always will flood the targetbuffer

query.c:369: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert

In English: Warning: Result value of »asprintf«, which has been declared with the attribute warn_unused_result, is ignored

Well. Does anyone has gcx running and functioning on Kubuntu 9.04?

klaus
astromax@web.de

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.