Tim, Darrell, All, tdelibs is the package that causes the kwrite/kate/etc.. crash when built on gcc 47. The backtrace is good this time and points to: at (i=<optimized out>, this=<optimized out>) at /opt/tqt3/include/ntqstring.h:641 641 { return i < d->len ? d->unicode[i] : TQChar::null; }
That is valuable information! This is also not an issue of ignoring build warnings, as there are none which relate to the failing code.
If you can, please try the attached patch. It will probably do nothing, but there is half a chance that gcc 4.7 did not inline the functions where gcc 4.6 did, *potentially* causing a crash due to misuse of parameters passed by reference.
Tim
On 05/04/2012 01:42 PM, Timothy Pearson wrote:
That is valuable information! This is also not an issue of ignoring build warnings, as there are none which relate to the failing code.
If you can, please try the attached patch. It will probably do nothing, but there is half a chance that gcc 4.7 did not inline the functions where gcc 4.6 did, *potentially* causing a crash due to misuse of parameters passed by reference.
Tim
I figured part of that was sour grapes from the OP, but I thought I would pass it along in case there was a 'nugget' in there - couldn't tell either way.
I'm on the patch/rebuild and will report back :)
On 05/04/2012 02:04 PM, David C. Rankin wrote:
On 05/04/2012 01:42 PM, Timothy Pearson wrote:
That is valuable information! This is also not an issue of ignoring build warnings, as there are none which relate to the failing code.
If you can, please try the attached patch. It will probably do nothing, but there is half a chance that gcc 4.7 did not inline the functions where gcc 4.6 did, *potentially* causing a crash due to misuse of parameters passed by reference.
Tim
I figured part of that was sour grapes from the OP, but I thought I would pass it along in case there was a 'nugget' in there - couldn't tell either way.
I'm on the patch/rebuild and will report back :)
Err.. Umm.. Tim,
Want to take another crack at it??? FTBFS:
[ 79%] Building CXX object kate/part/CMakeFiles/kate-static.dir/katerenderer.cpp.o cd /build/src/build/kate/part && /usr/bin/c++ -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT -include tqt.h -g -I/opt/tqt3/include -I/usr/include/tqt -I/build/src/build/kate/part -I/build/src/build -I/build/src/build/kjs -I/build/src/tdelibs/kate/part -I/build/src/build/tdecore -I/build/src/tdelibs -I/build/src/tdelibs/dcop -I/build/src/tdelibs/tdefx -I/build/src/tdelibs/tdecore -I/build/src/tdelibs/tdeui -I/build/src/tdelibs/kio -I/build/src/tdelibs/kio/kio -I/build/src/tdelibs/kio/kfile -I/build/src/tdelibs/kjs -I/build/src/tdelibs/kutils -I/build/src/tdelibs/tdeprint -I/build/src/tdelibs/interfaces -I/build/src/tdelibs/interfaces/kregexpeditor -fPIC -o CMakeFiles/kate-static.dir/katerenderer.cpp.o -c /build/src/tdelibs/kate/part/katerenderer.cpp /build/src/tdelibs/kate/part/katerenderer.cpp: In member function 'void KateRenderer::paintTextLine(TQPainter&, const KateLineRange*, int, int, const KateTextCursor*, const KateBracketRange*)': /build/src/tdelibs/kate/part/katerenderer.cpp:344:51: error: taking address of temporary [-fpermissive] /build/src/tdelibs/kate/part/katerenderer.cpp:459:56: error: taking address of temporary [-fpermissive] /build/src/tdelibs/kate/part/katerenderer.cpp:459:80: error: taking address of temporary [-fpermissive] /build/src/tdelibs/kate/part/katerenderer.cpp:663:43: error: taking address of temporary [-fpermissive] /build/src/tdelibs/kate/part/katerenderer.cpp:712:39: error: taking address of temporary [-fpermissive] make[2]: *** [kate/part/CMakeFiles/kate-static.dir/katerenderer.cpp.o] Error 1 make[2]: Leaving directory `/build/src/build' make[1]: *** [kate/part/CMakeFiles/kate-static.dir/all] Error 2 make[1]: Leaving directory `/build/src/build' make: *** [all] Error 2
On 05/04/2012 02:04 PM, David C. Rankin wrote:
On 05/04/2012 01:42 PM, Timothy Pearson wrote:
That is valuable information! This is also not an issue of ignoring build warnings, as there are none which relate to the failing code.
If you can, please try the attached patch. It will probably do nothing, but there is half a chance that gcc 4.7 did not inline the functions where gcc 4.6 did, *potentially* causing a crash due to misuse of parameters passed by reference.
Tim
I figured part of that was sour grapes from the OP, but I thought I would pass it along in case there was a 'nugget' in there - couldn't tell either way.
I'm on the patch/rebuild and will report back :)
Err.. Umm.. Tim,
Want to take another crack at it??? FTBFS:
[ 79%] Building CXX object kate/part/CMakeFiles/kate-static.dir/katerenderer.cpp.o cd /build/src/build/kate/part && /usr/bin/c++ -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT -include tqt.h -g -I/opt/tqt3/include -I/usr/include/tqt -I/build/src/build/kate/part -I/build/src/build -I/build/src/build/kjs -I/build/src/tdelibs/kate/part -I/build/src/build/tdecore -I/build/src/tdelibs -I/build/src/tdelibs/dcop -I/build/src/tdelibs/tdefx -I/build/src/tdelibs/tdecore -I/build/src/tdelibs/tdeui -I/build/src/tdelibs/kio -I/build/src/tdelibs/kio/kio -I/build/src/tdelibs/kio/kfile -I/build/src/tdelibs/kjs -I/build/src/tdelibs/kutils -I/build/src/tdelibs/tdeprint -I/build/src/tdelibs/interfaces -I/build/src/tdelibs/interfaces/kregexpeditor -fPIC -o CMakeFiles/kate-static.dir/katerenderer.cpp.o -c /build/src/tdelibs/kate/part/katerenderer.cpp /build/src/tdelibs/kate/part/katerenderer.cpp: In member function 'void KateRenderer::paintTextLine(TQPainter&, const KateLineRange*, int, int, const KateTextCursor*, const KateBracketRange*)': /build/src/tdelibs/kate/part/katerenderer.cpp:344:51: error: taking address of temporary [-fpermissive] /build/src/tdelibs/kate/part/katerenderer.cpp:459:56: error: taking address of temporary [-fpermissive] /build/src/tdelibs/kate/part/katerenderer.cpp:459:80: error: taking address of temporary [-fpermissive] /build/src/tdelibs/kate/part/katerenderer.cpp:663:43: error: taking address of temporary [-fpermissive] /build/src/tdelibs/kate/part/katerenderer.cpp:712:39: error: taking address of temporary [-fpermissive] make[2]: *** [kate/part/CMakeFiles/kate-static.dir/katerenderer.cpp.o] Error 1 make[2]: Leaving directory `/build/src/build' make[1]: *** [kate/part/CMakeFiles/kate-static.dir/all] Error 2 make[1]: Leaving directory `/build/src/build' make: *** [all] Error 2
Darn. I was running out the door when I wrote that; I'll try to get something better to you later.
All of these crashes appear to be the result of a TQString passed by reference from katerenderer.cpp that is disappearing before it is fully processed.
Tim
Darn. I was running out the door when I wrote that; I'll try to get something better to you later.
All of these crashes appear to be the result of a TQString passed by reference from katerenderer.cpp that is disappearing before it is fully processed.
just a guess: could it be that that TQString is created and destroyed in a different thread than that which uses it (and consequently crashes)?
nik
Darn. I was running out the door when I wrote that; I'll try to get something better to you later.
All of these crashes appear to be the result of a TQString passed by reference from katerenderer.cpp that is disappearing before it is fully processed.
just a guess: could it be that that TQString is created and destroyed in a different thread than that which uses it (and consequently crashes)?
nik
It is possible, that is why I am allowing gcc to handle any passing by reference with the patch I posted. It is possible that gcc was inlining the functions (and masking the potential crash) prior to gcc 4.7.
This is all just a shot in the dark until I can reproduce the bug here. ;-)
Tim
On 05/04/2012 07:36 PM, Timothy Pearson wrote:
Darn. I was running out the door when I wrote that; I'll try to get something better to you later.
All of these crashes appear to be the result of a TQString passed by reference from katerenderer.cpp that is disappearing before it is fully processed.
just a guess: could it be that that TQString is created and destroyed in a different thread than that which uses it (and consequently crashes)?
nik
It is possible, that is why I am allowing gcc to handle any passing by reference with the patch I posted. It is possible that gcc was inlining the functions (and masking the potential crash) prior to gcc 4.7.
This is all just a shot in the dark until I can reproduce the bug here. ;-)
Tim
To unsubscribe, e-mail: trinity-devel-unsubscribe@lists.pearsoncomputing.net For additional commands, e-mail: trinity-devel-help@lists.pearsoncomputing.net Read list messages on the web archive: http://trinity-devel.pearsoncomputing.net/ Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
Ooh! Tim, kwrite really, really hates your patch! It opened OK, but the first character I tried to type cause it to explode:
*** glibc detected *** kwrite: double free or corruption (!prev): 0x00000000009f3ff0 *** ======= Backtrace: ========= /lib/libc.so.6(+0x78a56)[0x7fec91162a56] /opt/trinity/lib/trinity/libkatepart.so(_ZN15KateFontMetricsD2Ev+0x1f)[0x7fec8734a69f] /opt/trinity/lib/trinity/libkatepart.so(_ZN14KateFontStructD1Ev+0x36)[0x7fec8734a7c6] /opt/trinity/lib/trinity/libkatepart.so(_ZN12KateRenderer9textWidthERK10KSharedPtrI12KateTextLineEjjPbPi+0x144)[0x7fec87351474] /opt/trinity/lib/trinity/libkatepart.so(_ZN16KateViewInternal5rangeEiPK13KateLineRange+0x294)[0x7fec873326c4] /opt/trinity/lib/trinity/libkatepart.so(_ZN16KateViewInternal5rangeERK14KateTextCursor+0x26)[0x7fec87334106] /opt/trinity/lib/trinity/libkatepart.so(_ZN16KateViewInternal10updateViewEbi+0xe68)[0x7fec87336708] /opt/trinity/lib/trinity/libkatepart.so(_ZN16KateViewInternal7editEndEiib+0x15f)[0x7fec8733d58f] /opt/trinity/lib/trinity/libkatepart.so(_ZN12KateDocument7editEndEv+0xe0)[0x7fec872d9f40] /opt/trinity/lib/trinity/libkatepart.so(_ZN12KateDocument9typeCharsEP8KateViewRK8TQString+0x472)[0x7fec872d25d2] /opt/trinity/lib/trinity/libkatepart.so(_ZN16KateViewInternal13keyPressEventEP10TQKeyEvent+0x955)[0x7fec8733a3b5] /opt/trinity/lib/trinity/libkatepart.so(_ZN16KateViewInternal11eventFilterEP8TQObjectP7TQEvent+0xec)[0x7fec873377cc] /opt/tqt3/lib/libtqt-mt.so.3(_ZN8TQObject16activate_filtersEP7TQEvent+0x76)[0x7fec8d1c77cc] /opt/tqt3/lib/libtqt-mt.so.3(_ZN8TQObject5eventEP7TQEvent+0x48)[0x7fec8d1c7626] /opt/tqt3/lib/libtqt-mt.so.3(_ZN8TQWidget5eventEP7TQEvent+0x33)[0x7fec8d1fefa7] /opt/tqt3/lib/libtqt-mt.so.3(_ZN13TQApplication14internalNotifyEP8TQObjectP7TQEvent+0x295)[0x7fec8d169f9d] /opt/tqt3/lib/libtqt-mt.so.3(_ZN13TQApplication6notifyEP8TQObjectP7TQEvent+0x3e3)[0x7fec8d16942f] /opt/trinity/lib/libtdecore.so.4(_ZN12KApplication6notifyEP8TQObjectP7TQEvent+0x1b4)[0x7fec8e12b894] /opt/tqt3/lib/libtqt-mt.so.3(_ZN13TQApplication20sendSpontaneousEventEP8TQObjectP7TQEvent+0x65)[0x7fec8d0fce59] /opt/tqt3/lib/libtqt-mt.so.3(_ZN10TQETWidget17translateKeyEventEPK7_XEventb+0x989)[0x7fec8d0f8c7f] /opt/tqt3/lib/libtqt-mt.so.3(_ZN13TQApplication15x11ProcessEventEP7_XEvent+0xad3)[0x7fec8d0f40bb] /opt/tqt3/lib/libtqt-mt.so.3(_ZN11TQEventLoop13processEventsEj+0x130)[0x7fec8d10f2c8] /opt/tqt3/lib/libtqt-mt.so.3(_ZN11TQEventLoop9enterLoopEv+0x76)[0x7fec8d17d118] /opt/tqt3/lib/libtqt-mt.so.3(_ZN11TQEventLoop4execEv+0x35)[0x7fec8d17cfe9] /opt/tqt3/lib/libtqt-mt.so.3(_ZN13TQApplication4execEv+0x23)[0x7fec8d16a0cd] /opt/trinity/lib/libtdeinit_kwrite.so(kdemain+0xf3d)[0x7fec914a5448] kwrite(main+0x20)[0x4007a4] /lib/libc.so.6(__libc_start_main+0xf5)[0x7fec9110b455] kwrite[0x4006c9] ======= Memory map: ======== 00400000-00401000 r-xp 00000000 08:03 264497 /opt/trinity/bin/kwrite 00600000-00601000 r--p 00000000 08:03 264497 /opt/trinity/bin/kwrite 00601000-00602000 rw-p 00001000 08:03 264497 /opt/trinity/bin/kwrite 009b9000-00df1000 rw-p 00000000 00:00 0 [heap] 7fec85f6e000-7fec85f7a000 r-xp 00000000 08:03 415378 /lib/libnss_files-2.15.so 7fec85f7a000-7fec86179000 ---p 0000c000 08:03 415378 /lib/libnss_files-2.15.so 7fec86179000-7fec8617a000 r--p 0000b000 08:03 415378 /lib/libnss_files-2.15.so 7fec8617a000-7fec8617b000 rw-p 0000c000 08:03 415378 /lib/libnss_files-2.15.so 7fec8617b000-7fec8618a000 r-xp 00000000 08:03 244332 /opt/tqt3/plugins/inputmethods/libqxim.so 7fec8618a000-7fec8638a000 ---p 0000f000 08:03 244332 /opt/tqt3/plugins/inputmethods/libqxim.so 7fec8638a000-7fec8638b000 rw-p 0000f000 08:03 244332 /opt/tqt3/plugins/inputmethods/libqxim.so 7fec8638b000-7fec863b2000 r-xp 00000000 08:03 244333 /opt/tqt3/plugins/inputmethods/libqsimple.so 7fec863b2000-7fec865b1000 ---p 00027000 08:03 244333 /opt/tqt3/plugins/inputmethods/libqsimple.so 7fec865b1000-7fec865b2000 rw-p 00026000 08:03 244333 /opt/tqt3/plugins/inputmethods/libqsimple.so 7fec865b2000-7fec865b7000 r-xp 00000000 08:03 244330 /opt/tqt3/plugins/inputmethods/libqimsw-none.so 7fec865b7000-7fec867b7000 ---p 00005000 08:03 244330 /opt/tqt3/plugins/inputmethods/libqimsw-none.so 7fec867b7000-7fec867b8000 rw-p 00005000 08:03 244330 /opt/tqt3/plugins/inputmethods/libqimsw-none.so 7fec867b8000-7fec867c5000 r-xp 00000000 08:03 244331 /opt/tqt3/plugins/inputmethods/libqimsw-multi.so 7fec867c5000-7fec869c4000 ---p 0000d000 08:03 244331 /opt/tqt3/plugins/inputmethods/libqimsw-multi.so 7fec869c4000-7fec869c5000 rw-p 0000c000 08:03 244331 /opt/tqt3/plugins/inputmethods/libqimsw-multi.so 7fec869c5000-7fec86a1e000 r-xp 00000000 08:03 175954 /usr/lib/libpcre.so.1.0.0 7fec86a1e000-7fec86c1d000 ---p 00059000 08:03 175954 /usr/lib/libpcre.so.1.0.0 7fec86c1d000-7fec86c1e000 r--p 00058000 08:03 175954 /usr/lib/libpcre.so.1.0.0 7fec86c1e000-7fec86c1f000 rw-p 00059000 08:03 175954 /usr/lib/libpcre.so.1.0.0 7fec86c1f000-7fec86d18000 r-xp 00000000 08:03 264004 /opt/trinity/lib/libtdeprint.so.4.2.0 7fec86d18000-7fec86f18000 ---p 000f9000 08:03 264004 /opt/trinity/lib/libtdeprint.so.4.2.0 7fec86f18000-7fec86f28000 rw-p 000f9000 08:03 264004 /opt/trinity/lib/libtdeprint.so.4.2.0 7fec86f28000-7fec86fcb000 r-xp 00000000 08:03 264147 /opt/trinity/lib/libkjs.so.1.2.0 7fec86fcb000-7fec871cb000 ---p 000a3000 08:03 264147 /opt/trinity/lib/libkjs.so.1.2.0 7fec871cb000-7fec871d4000 rw-p 000a3000 08:03 264147 /opt/trinity/lib/libkjs.so.1.2.0 7fec871d4000-7fec871d6000 rw-p 00000000 00:00 0 7fec871d6000-7fec873d2000 r-xp 00000000 08:03 264329 /opt/trinity/lib/trinity/libkatepart.so 7fec873d2000-7fec875d1000 ---p 001fc000 08:03 264329 /opt/trinity/lib/trinity/libkatepart.so 7fec875d1000-7fec875f6000 rw-p 001fb000 08:03 264329 /opt/trinity/lib/trinity/libkatepart.so 7fec875f6000-7fec87622000 r-xp 00000000 08:03 177279 /usr/lib/libpng15.so.15.10.0 7fec87622000-7fec87821000 ---p 0002c000 08:03 177279 /usr/lib/libpng15.so.15.10.0 7fec87821000-7fec87822000 r--p 0002b000 08:03 177279 /usr/lib/libpng15.so.15.10.0 7fec87822000-7fec87823000 rw-p 0002c000 08:03 177279 /usr/lib/libpng15.so.15.10.0 7fec87823000-7fec87831000 r-xp 00000000 08:03 244345 /opt/tqt3/plugins/imageformats/libqpng.so 7fec87831000-7fec87a31000 ---p 0000e000 08:03 244345 /opt/tqt3/plugins/imageformats/libqpng.so 7fec87a31000-7fec87a32000 rw-p 0000e000 08:03 244345 /opt/tqt3/plugins/imageformats/libqpng.so 7fec87a32000-7fec87aa0000 r-xp 00000000 08:03 77555 /usr/lib/libmng.so.1.0.0 7fec87aa0000-7fec87ca0000 ---p 0006e000 08:03 77555 /usr/lib/libmng.so.1.0.0 7fec87ca0000-7fec87ca3000 r--p 0006e000 08:03 77555 /usr/lib/libmng.so.1.0.0 7fec87ca3000-7fec87ca5000 rw-p 00071000 08:03 77555 /usr/lib/libmng.so.1.0.0 7fec87ca5000-7fec87cac000 r-xp 00000000 08:03 244346 /opt/tqt3/plugins/imageformats/libqmng.so 7fec87cac000-7fec87eac000 ---p 00007000 08:03 244346 /opt/tqt3/plugins/imageformats/libqmng.so 7fec87eac000-7fec87ead000 rw-p 00007000 08:03 244346 /opt/tqt3/plugins/imageformats/libqmng.so 7fec87ead000-7fec87eeb000 r-xp 00000000 08:03 73645 /usr/lib/libjpeg.so.8.0.2 7fec87eeb000-7fec880eb000 ---p 0003e000 08:03 73645 /usr/lib/libjpeg.so.8.0.2 7fec880eb000-7fec880ec000 r--p 0003e000 08:03 73645 /usr/lib/libjpeg.so.8.0.2 7fec880ec000-7fec880ed000 rw-p 0003f000 08:03 73645 /usr/lib/libjpeg.so.8.0.2 7fec880ed000-7fec880fd000 rw-p 00000000 00:00 0 7fec880fd000-7fec88105000 r-xp 00000000 08:03 244344 /opt/tqt3/plugins/imageformats/libqjpeg.so 7fec88105000-7fec88305000 ---p 00008000 08:03 244344 /opt/tqt3/plugins/imageformats/libqjpeg.so 7fec88305000-7fec88306000 rw-p 00008000 08:03 244344 /opt/tqt3/plugins/imageformats/libqjpeg.so 7fec88306000-7fec88324000 r-xp 00000000 08:03 269024 /opt/trinity/lib/trinity/plugins/styles/plastik.so 7fec88324000-7fec88524000 ---p 0001e000 08:03 269024 /opt/trinity/lib/trinity/plugins/styles/plastik.so 7fec88524000-7fec88526000 rw-p 0001e000 08:03 269024 /opt/trinity/lib/trinity/plugins/styles/plastik.so 7fec88526000-7fec8852b000 r-xp 00000000 08:03 73340 /usr/lib/libXdmcp.so.6.0.0 7fec8852b000-7fec8872a000 ---p 00005000 08:03 73340 /usr/lib/libXdmcp.so.6.0.0 7fec8872a000-7fec8872b000 r--p 00004000 08:03 73340 /usr/lib/libXdmcp.so.6.0.0 7fec8872b000-7fec8872c000 rw-p 00005000 08:03 73340 /usr/lib/libXdmcp.so.6.0.0 7fec8872c000-7fec8872e000 r-xp 00000000 08:03 73343 /usr/lib/libXau.so.6.0.0 7fec8872e000-7fec8892e000 ---p 00002000 08:03 73343 /usr/lib/libXau.so.6.0.0 7fec8892e000-7fec8892f000 r--p 00002000 08:03 73343 /usr/lib/libXau.so.6.0.0 7fec8892f000-7fec88930000 rw-p 00003000 08:03 73343 /usr/lib/libXau.so.6.0.0 7fec88930000-7fec88935000 r-xp 00000000 08:03 73586 /usr/lib/libXfixes.so.3.1.0 7fec88935000-7fec88b35000 ---p 00005000 08:03 73586 /usr/lib/libXfixes.so.3.1.0 7fec88b35000-7fec88b36000 r--p 00005000 08:03 73586 /usr/lib/libXfixes.so.3.1.0 7fec88b36000-7fec88b37000 rw-p 00006000 08:03 73586 /usr/lib/libXfixes.so.3.1.0 7fec88b37000-7fec88d17000 r-xp 00000000 08:03 174962 /usr/lib/libcrypto.so.1.0.0 7fec88d17000-7fec88f16000 ---p 001e0000 08:03 174962 /usr/lib/libcrypto.so.1.0.0 7fec88f16000-7fec88f31000 r--p 001df000 08:03 174962 /usr/lib/libcrypto.so.1.0.0 7fec88f31000-7fec88f3c000 rw-p 001fa000 08:03 174962 /usr/lib/libcrypto.so.1.0.0 7fec88f3c000-7fec88f40000 rw-p 00000000 00:00 0 7fec88f40000-7fec88fa0000 r-xp 00000000 08:03 174961 /usr/lib/libssl.so.1.0.0 7fec88fa0000-7fec8919f000 ---p 00060000 08:03 174961 /usr/lib/libssl.so.1.0.0 7fec8919f000-7fec891a3000 r--p 0005f000 08:03 174961 /usr/lib/libssl.so.1.0.0 7fec891a3000-7fec891a9000 rw-p 00063000 08:03 174961 /usr/lib/libssl.so.1.0.0 7fec891a9000-7fec891aa000 rw-p 00000000 00:00 0 7fec891aa000-7fec891b1000 r-xp 00000000 08:03 415350 /lib/librt-2.15.so 7fec891b1000-7fec893b0000 ---p 00007000 08:03 415350 /lib/librt-2.15.so 7fec893b0000-7fec893b1000 r--p 00006000 08:03 415350 /lib/librt-2.15.so 7fec893b1000-7fec893b2000 rw-p 00007000 08:03 415350 /lib/librt-2.15.so 7fec893b2000-7fec893b6000 r-xp 00000000 08:03 174984 /usr/lib/libuuid.so.1.3.0 7fec893b6000-7fec895b5000 ---p 00004000 08:03 174984 /usr/lib/libuuid.so.1.3.0 7fec895b5000-7fec895b6000 r--p 00003000 08:03 174984 /usr/lib/libuuid.so.1.3.0 7fec895b6000-7fec895b7000 rw-p 00004000 08:03 174984 /usr/lib/libuuid.so.1.3.0 7fec895b7000-7fec895d4000 r-xp 00000000 08:03 73373 /usr/lib/libxcb.so.1.1.0 7fec895d4000-7fec897d4000 ---p 0001d000 08:03 73373 /usr/lib/libxcb.so.1.1.0 7fec897d4000-7fec897d5000 rw-p 0001d000 08:03 73373 /usr/lib/libxcb.so.1.1.0 7fec897d5000-7fec897ec000 r-xp 00000000 08:03 415347 /lib/libpthread-2.15.so 7fec897ec000-7fec899eb000 ---p 00017000 08:03 415347 /lib/libpthread-2.15.so 7fec899eb000-7fec899ec000 r--p 00016000 08:03 415347 /lib/libpthread-2.15.so 7fec899ec000-7fec899ed000 rw-p 00017000 08:03 415347 /lib/libpthread-2.15.so 7fec899ed000-7fec899f1000 rw-p 00000000 00:00 0 7fec899f1000-7fec89a03000 r-xp 00000000 08:03 73590 /usr/lib/libXext.so.6.4.0 7fec89a03000-7fec89c02000 ---p 00012000 08:03 73590 /usr/lib/libXext.so.6.4.0 7fec89c02000-7fec89c03000 r--p 00011000 08:03 73590 /usr/lib/libXext.so.6.4.0 7fec89c03000-7fec89c04000 rw-p 00012000 08:03 73590 /usr/lib/libXext.so.6.4.0 7fec89c04000-7fec89c18000 r-xp 00000000 08:03 73428 /usr/lib/libXft.so.2.3.0 7fec89c18000-7fec89e17000 ---p 00014000 08:03 73428 /usr/lib/libXft.so.2.3.0 7fec89e17000-7fec89e18000 r--p 00013000 08:03 73428 /usr/lib/libXft.so.2.3.0 7fec89e18000-7fec89e19000 rw-p 00014000 08:03 73428 /usr/lib/libXft.so.2.3.0 7fec89e19000-7fec89e1b000 r-xp 00000000 08:03 73594 /usr/lib/libXinerama.so.1.0.0 7fec89e1b000-7fec8a01a000 ---p 00002000 08:03 73594 /usr/lib/libXinerama.so.1.0.0 7fec8a01a000-7fec8a01b000 r--p 00001000 08:03 73594 /usr/lib/libXinerama.so.1.0.0 7fec8a01b000-7fec8a01c000 rw-p 00002000 08:03 73594 /usr/lib/libXinerama.so.1.0.0 7fec8a01c000-7fec8a025000 r-xp 00000000 08:03 73588 /usr/lib/libXcursor.so.1.0.2 7fec8a025000-7fec8a224000 ---p 00009000 08:03 73588 /usr/lib/libXcursor.so.1.0.2 7fec8a224000-7fec8a225000 r--p 00008000 08:03 73588 /usr/lib/libXcursor.so.1.0.2 7fec8a225000-7fec8a226000 rw-p 00009000 08:03 73588 /usr/lib/libXcursor.so.1.0.2e[kcrash] KCrash: crashing... crashRecursionCounter = 2 [kcrash] KCrash: Application Name = kwrite path = <unknown> pid = 1317
On 05/04/2012 07:36 PM, Timothy Pearson wrote:
Darn. I was running out the door when I wrote that; I'll try to get something better to you later.
All of these crashes appear to be the result of a TQString passed by reference from katerenderer.cpp that is disappearing before it is fully processed.
just a guess: could it be that that TQString is created and destroyed in a different thread than that which uses it (and consequently crashes)?
nik
It is possible, that is why I am allowing gcc to handle any passing by reference with the patch I posted. It is possible that gcc was inlining the functions (and masking the potential crash) prior to gcc 4.7.
This is all just a shot in the dark until I can reproduce the bug here. ;-)
Tim
To unsubscribe, e-mail: trinity-devel-unsubscribe@lists.pearsoncomputing.net For additional commands, e-mail: trinity-devel-help@lists.pearsoncomputing.net Read list messages on the web archive: http://trinity-devel.pearsoncomputing.net/ Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
Ooh! Tim, kwrite really, really hates your patch! It opened OK, but the first character I tried to type cause it to explode:
OK, this will have to wait until I can get a gcc 4.7 system up and running.
Tim
On 05/04/2012 10:54 PM, Timothy Pearson wrote:
OK, this will have to wait until I can get a gcc 4.7 system up and running.
Tim
No kidding - Arch on virtualbox - about a 15-20 minute install. Really, really simple, just create a new VM (it already has defaults for Archlinux, so if you give your VM the name 'Arch x86_64' for example, it fills in the remainder of the settings with Archlinux named as the distro.
Then just download the 'net install' either i686, x86_64, or 'dual' for both and boot your VM from it.
http://www.archlinux.org/download/
Then it is a simple matter of following the text prompt to type arch/setup, accept the defaults and select both the 'base' and 'base-devel' sets of packages and your done -> you have the most current (based on official software releases - not betas) distro going. Arch is rarely more than 3 days behind upstream. Get lost, just ask or:
https://wiki.archlinux.org/index.php/Official_Arch_Linux_Install_Guide
On 05/04/2012 10:54 PM, Timothy Pearson wrote:
OK, this will have to wait until I can get a gcc 4.7 system up and running.
Tim
Tim, all,
Just drop a line back to the list when anyone has more information on this issue. I am somewhat stuck building/debugging further on gcc 4.7 until we know what we are dealing with here. I have had no other response/confirmations from the suse folks on whether they have stumbled across this issue yet or not. I was hoping to at least have a confirmation and be able to get more eyes on this issue, but I doubt they have waded into the issue yet. If they have, they haven't put it on the front-burner. I know Ilya has been test building on gcc47, but I have heard anything back on whether they can reproduce it or not.
Since tdelibs is central to everything that happens in tde, it's hard to know whether any new or existing issues seen are related/not related to whatever is going on here. Can anybody think of any other tests I can run that might narrow this down? Thanks.
On 05/08/2012 06:03 PM, David C. Rankin wrote:
On 05/04/2012 10:54 PM, Timothy Pearson wrote:
OK, this will have to wait until I can get a gcc 4.7 system up and running.
Tim
Tim, all,
Just drop a line back to the list when anyone has more information on this issue. I am somewhat stuck building/debugging further on gcc 4.7 until we know what we are dealing with here. I have had no other response/confirmations from the suse folks on whether they have stumbled across this issue yet or not. I was hoping to at least have a confirmation and be able to get more eyes on this issue, but I doubt they have waded into the issue yet. If they have, they haven't put it on the front-burner. I know Ilya has been test building on gcc47, but I have heard anything back on whether they can reproduce it or not.
Since tdelibs is central to everything that happens in tde, it's hard to know whether any new or existing issues seen are related/not related to whatever is going on here. Can anybody think of any other tests I can run that might narrow this down? Thanks.
There was a new release of gcc 4.7.0-6 on Arch so I rebuilt everything (tqt3->tdebase) and tried again. Same result :( However, the file not found error looks strange. What gives with that error? - just do to the random nature of this error or has a 't' 'q' bug been introduced??
Here is the backtrace:
0x00007ffeeb43fa77 in TQFontMetrics::charWidth (this=0x17b6870, str=..., pos=81) at kernel/qfont_x11.cpp:704 704 kernel/qfont_x11.cpp: No such file or directory. (gdb) bt #0 0x00007ffeeb43fa77 in TQFontMetrics::charWidth (this=0x17b6870, str=..., pos=81) at kernel/qfont_x11.cpp:704 #1 0x00007ffee56ac1ba in width (tabWidth=<optimized out>, italic=<optimized out>, bold=<optimized out>, col=81, text=..., this=0x17b6850) at /build/src/tdelibs/kate/part/katefont.h:76 #2 width (tabWidth=<optimized out>, col=81, text=..., fs=..., this=<optimized out>) at /build/src/tdelibs/kate/part/kateattribute.h:55 #3 KateRenderer::textWidth (this=0x18de640, textLine=..., startcol=0, maxwidth=753, needWrap=0x7fffef2d6ec8, endX=0x7fffef2d6ebc) at /build/src/tdelibs/kate/part/katerenderer.cpp:797 #4 0x00007ffee568d674 in KateViewInternal::range (this=this@entry=0x18a03e0, realLine=realLine@entry=0, previous=previous@entry=0x0) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1331 #5 0x00007ffee568eb32 in KateViewInternal::range (this=this@entry=0x18a03e0, realLine=0, viewLine=viewLine@entry=1) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1418 #6 0x00007ffee56904c9 in KateViewInternal::viewLineOffset (this=this@entry=0x18a03e0, virtualCursor=..., offset=0, keepX=keepX@entry=false) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1578 #7 0x00007ffee5693d25 in KateViewInternal::makeVisible (this=this@entry=0x18a03e0, c=..., endCol=114, force=force@entry=false, center=center@entry=false, calledExternally=calledExternally@entry=false) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:781 #8 0x00007ffee5694352 in KateViewInternal::updateCursor (this=this@entry=0x18a03e0, newCursor=..., force=force@entry=true, center=center@entry=false, calledExternally=calledExternally@entry=false) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:2204 #9 0x00007ffee56984c0 in KateViewInternal::editEnd (this=0x18a03e0, editTagLineStart=0, editTagLineEnd=<optimized out>, tagFrom=<optimized out>) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:3385 #10 0x00007ffee5634ef0 in KateDocument::editEnd (this=0x17d5560) at /build/src/tdelibs/kate/part/katedocument.cpp:1032 #11 0x00007ffee562ef5b in KateDocument::paste (this=0x17d5560, view=0x18a7fd0) at /build/src/tdelibs/kate/part/katedocument.cpp:3249 #12 0x00007ffee5666a53 in KateView::paste (this=0x18a7fd0) at /build/src/tdelibs/kate/part/kateview.cpp:1597 #13 0x00007ffee5696102 in KateViewInternal::mouseReleaseEvent (this=0x18a03e0, e=0x7fffef2d77d0) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:2965 #14 0x00007ffeeb52e343 in TQWidget::event (this=0x18a03e0, e=0x7fffef2d77d0) at kernel/qwidget.cpp:4725 #15 0x00007ffeeb498559 in TQApplication::internalNotify (this=0x7fffef2d8030, receiver= 0x18a03e0, e=0x7fffef2d77d0) at kernel/qapplication.cpp:2638 #16 0x00007ffeeb497be3 in TQApplication::notify (this=0x7fffef2d8030, receiver=0x18a03e0, e=0x7fffef2d77d0) at kernel/qapplication.cpp:2424 #17 0x00007ffeec461894 in KApplication::notify (this=0x7fffef2d8030, receiver=0x18a03e0, event=0x7fffef2d77d0) at /build/src/tdelibs/tdecore/kapplication.cpp:583 #18 0x00007ffeeb42a6b3 in TQApplication::sendSpontaneousEvent (receiver=0x18a03e0, event=0x7fffef2d77d0) at kernel/ntqapplication.h:526 #19 0x00007ffeeb423f53 in TQETWidget::translateMouseEvent (this=0x18a03e0, event=0x7fffef2d7ce0) at kernel/qapplication_x11.cpp:4380 #20 0x00007ffeeb421871 in TQApplication::x11ProcessEvent (this=0x7fffef2d8030, event=0x7fffef2d7ce0) at kernel/qapplication_x11.cpp:3557 #21 0x00007ffeeb43cc44 in TQEventLoop::processEvents (this=0x1718f90, flags=4) at kernel/qeventloop_x11.cpp:195 #22 0x00007ffeeb4ab818 in TQEventLoop::enterLoop (this=0x1718f90) at kernel/qeventloop.cpp:201 #23 0x00007ffeeb4ab6e9 in TQEventLoop::exec (this=0x1718f90) at kernel/qeventloop.cpp:148 #24 0x00007ffeeb498689 in TQApplication::exec (this=0x7fffef2d8030) at kernel/qapplication.cpp:2761 #25 0x00007ffeef7d43a8 in kdemain (argc=1, argv=0x7fffef2d8608) at /build/src/tdebase/kate/app/kwritemain.cpp:692 #26 0x000000000040082c in main (argc=1, argv=0x7fffef2d8608) at /build/src/build/kate/app/kwrite_tdeinit_executable.cpp:2
On Sun, 13 May 2012 22:41:06 -0500 "David C. Rankin" drankinatty@suddenlinkmail.com wrote:
On 05/08/2012 06:03 PM, David C. Rankin wrote:
On 05/04/2012 10:54 PM, Timothy Pearson wrote:
OK, this will have to wait until I can get a gcc 4.7 system up and running.
Tim
Tim, all,
Just drop a line back to the list when anyone has more information on this issue. I am somewhat stuck building/debugging further on gcc 4.7 until we know what we are dealing with here. I have had no other response/confirmations from the suse folks on whether they have stumbled across this issue yet or not. I was hoping to at least have a confirmation and be able to get more eyes on this issue, but I doubt they have waded into the issue yet. If they have, they haven't put it on the front-burner. I know Ilya has been test building on gcc47, but I have heard anything back on whether they can reproduce it or not.
Since tdelibs is central to everything that happens in tde, it's hard to know whether any new or existing issues seen are related/not related to whatever is going on here. Can anybody think of any other tests I can run that might narrow this down? Thanks.
There was a new release of gcc 4.7.0-6 on Arch so I rebuilt everything (tqt3->tdebase) and tried again. Same result :( However, the file not found error looks strange. What gives with that error? - just do to the random nature of this error or has a 't' 'q' bug been introduced??
The "No such file or directory" error is because gdb tries to open the concerned file (kernel/qfont_x11.cpp, from TQt3 sources) to show the line of code that program was executing.
Here is the backtrace:
0x00007ffeeb43fa77 in TQFontMetrics::charWidth (this=0x17b6870, str=..., pos=81) at kernel/qfont_x11.cpp:704 704 kernel/qfont_x11.cpp: No such file or directory. (gdb) bt #0 0x00007ffeeb43fa77 in TQFontMetrics::charWidth (this=0x17b6870, str=..., pos=81) at kernel/qfont_x11.cpp:704 #1 0x00007ffee56ac1ba in width (tabWidth=<optimized out>, italic=<optimized out>, bold=<optimized out>, col=81, text=..., this=0x17b6850) at /build/src/tdelibs/kate/part/katefont.h:76 #2 width (tabWidth=<optimized out>, col=81, text=..., fs=..., this=<optimized out>) at /build/src/tdelibs/kate/part/kateattribute.h:55 #3 KateRenderer::textWidth (this=0x18de640, textLine=..., startcol=0, maxwidth=753, needWrap=0x7fffef2d6ec8, endX=0x7fffef2d6ebc) at /build/src/tdelibs/kate/part/katerenderer.cpp:797 #4 0x00007ffee568d674 in KateViewInternal::range (this=this@entry=0x18a03e0, realLine=realLine@entry=0, previous=previous@entry=0x0) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1331 #5 0x00007ffee568eb32 in KateViewInternal::range (this=this@entry=0x18a03e0, realLine=0, viewLine=viewLine@entry=1) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1418 #6 0x00007ffee56904c9 in KateViewInternal::viewLineOffset (this=this@entry=0x18a03e0, virtualCursor=..., offset=0, keepX=keepX@entry=false) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:1578 #7 0x00007ffee5693d25 in KateViewInternal::makeVisible (this=this@entry=0x18a03e0, c=..., endCol=114, force=force@entry=false, center=center@entry=false, calledExternally=calledExternally@entry=false) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:781 #8 0x00007ffee5694352 in KateViewInternal::updateCursor (this=this@entry=0x18a03e0, newCursor=..., force=force@entry=true, center=center@entry=false, calledExternally=calledExternally@entry=false) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:2204 #9 0x00007ffee56984c0 in KateViewInternal::editEnd (this=0x18a03e0, editTagLineStart=0, editTagLineEnd=<optimized out>, tagFrom=<optimized out>) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:3385 #10 0x00007ffee5634ef0 in KateDocument::editEnd (this=0x17d5560) at /build/src/tdelibs/kate/part/katedocument.cpp:1032 #11 0x00007ffee562ef5b in KateDocument::paste (this=0x17d5560, view=0x18a7fd0) at /build/src/tdelibs/kate/part/katedocument.cpp:3249 #12 0x00007ffee5666a53 in KateView::paste (this=0x18a7fd0) at /build/src/tdelibs/kate/part/kateview.cpp:1597 #13 0x00007ffee5696102 in KateViewInternal::mouseReleaseEvent (this=0x18a03e0, e=0x7fffef2d77d0) at /build/src/tdelibs/kate/part/kateviewinternal.cpp:2965 #14 0x00007ffeeb52e343 in TQWidget::event (this=0x18a03e0, e=0x7fffef2d77d0) at kernel/qwidget.cpp:4725 #15 0x00007ffeeb498559 in TQApplication::internalNotify (this=0x7fffef2d8030, receiver= 0x18a03e0, e=0x7fffef2d77d0) at kernel/qapplication.cpp:2638 #16 0x00007ffeeb497be3 in TQApplication::notify (this=0x7fffef2d8030, receiver=0x18a03e0, e=0x7fffef2d77d0) at kernel/qapplication.cpp:2424 #17 0x00007ffeec461894 in KApplication::notify (this=0x7fffef2d8030, receiver=0x18a03e0, event=0x7fffef2d77d0) at /build/src/tdelibs/tdecore/kapplication.cpp:583 #18 0x00007ffeeb42a6b3 in TQApplication::sendSpontaneousEvent (receiver=0x18a03e0, event=0x7fffef2d77d0) at kernel/ntqapplication.h:526 #19 0x00007ffeeb423f53 in TQETWidget::translateMouseEvent (this=0x18a03e0, event=0x7fffef2d7ce0) at kernel/qapplication_x11.cpp:4380 #20 0x00007ffeeb421871 in TQApplication::x11ProcessEvent (this=0x7fffef2d8030, event=0x7fffef2d7ce0) at kernel/qapplication_x11.cpp:3557 #21 0x00007ffeeb43cc44 in TQEventLoop::processEvents (this=0x1718f90, flags=4) at kernel/qeventloop_x11.cpp:195 #22 0x00007ffeeb4ab818 in TQEventLoop::enterLoop (this=0x1718f90) at kernel/qeventloop.cpp:201 #23 0x00007ffeeb4ab6e9 in TQEventLoop::exec (this=0x1718f90) at kernel/qeventloop.cpp:148 #24 0x00007ffeeb498689 in TQApplication::exec (this=0x7fffef2d8030) at kernel/qapplication.cpp:2761 #25 0x00007ffeef7d43a8 in kdemain (argc=1, argv=0x7fffef2d8608) at /build/src/tdebase/kate/app/kwritemain.cpp:692 #26 0x000000000040082c in main (argc=1, argv=0x7fffef2d8608) at /build/src/build/kate/app/kwrite_tdeinit_executable.cpp:2
On 05/13/2012 10:43 PM, /dev/ammo42 wrote:
The "No such file or directory" error is because gdb tries to open the concerned file (kernel/qfont_x11.cpp, from TQt3 sources) to show the line of code that program was executing.
Ahh - learn something new every day :) Would it do any good to install the tqt3 source so it could find the file -- or is it just the infinite loop stray crash where the source wouldn't help?
On Sun, 13 May 2012 23:10:00 -0500 "David C. Rankin" drankinatty@suddenlinkmail.com wrote:
On 05/13/2012 10:43 PM, /dev/ammo42 wrote:
The "No such file or directory" error is because gdb tries to open the concerned file (kernel/qfont_x11.cpp, from TQt3 sources) to show the line of code that program was executing.
Ahh - learn something new every day :) Would it do any good to install the tqt3 source so it could find the file -- or is it just the infinite loop stray crash where the source wouldn't help?
The backtrace still contains the same KateRenderer::textWidth() function in it, so it's consistent with it being the same infinite loop as before. Moreover gdb tells you the line number even if it can't open the file, so you can look at the code yourself ;)