indeed. i had some older version of Wt in my /usr/local/include directory. after removing those files everything works.
thanks a lot, johannes. Am Donnerstag, den 28.07.2011, 17:46 +0200 schrieb Wim Dumon: > The crash on that line doesn't make sense at all. My guess is that it > is a miscompilation of some sort (headerfiles mixed up? boost versions > mismatch somehow?) > > What does the 'bt' (=prints stack trace) command show in gdb at the > moment of the crash, and what does 'print root()' show? > > Wim. > > 2011/7/28 Thomas Suckow <[email protected]>: > > My best guess is root() is returning a bad pointer (Anything else would > > be more bizarre). > > But I have no idea what would cause that, maybe one of the dev's has an > > idea? > > > > -- > > Thomas > > > > On 07/27/2011 11:21 PM, jhig wrote: > >> hi, > >> > >> gdb says: > >> > >> Starting program: /root/download/wt-test/hello/hello --gdb --docroot . > >> --http-port 8088 --http-address 192.168.42.201 > >> [Thread debugging using libthread_db enabled] > >> Reading: /etc/wt/wt_config.xml > >> [2011-Jul-28 08:16:37.461992] 24393 - [notice] "Wt: initializing > >> built-in httpd" > >> [2011-Jul-28 08:16:37.462135] 24393 - [notice] "Reading Wt config > >> file: /etc/wt/wt_config.xml (location = > >> '/root/download/wt-test/hello/hello')" > >> [2011-Jul-28 08:16:37.463681] 24393 - [notice] "Started server: > >> http://192.168.42.201:8088" > >> [New Thread 0xb6e2db70 (LWP 24396)] > >> [New Thread 0xb662cb70 (LWP 24397)] > >> [New Thread 0xb5e2bb70 (LWP 24398)] > >> [New Thread 0xb562ab70 (LWP 24399)] > >> [New Thread 0xb4e29b70 (LWP 24400)] > >> [New Thread 0xb4628b70 (LWP 24401)] > >> [New Thread 0xb3e27b70 (LWP 24402)] > >> [New Thread 0xb3626b70 (LWP 24403)] > >> [New Thread 0xb2e25b70 (LWP 24404)] > >> [New Thread 0xb2624b70 (LWP 24405)] > >> [2011-Jul-28 08:16:44.634353] 24393 [/ 2x3phJIlF0Eso40S] [notice] > >> "Session created (#sessions = 1)" > >> Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0 > >> 192.168.42.112 - - [2011-Jul-28 08:16:44.635740] "GET / HTTP/1.1" 200 > >> 1894 > >> > >> Program received signal SIGSEGV, Segmentation fault. > >> [Switching to Thread 0xb2624b70 (LWP 24405)] > >> 0x0804b0bb in HelloApplication::HelloApplication (this=0x8071498, > >> env=...) at hello.C:46 > >> 46 root()->addWidget(new WText("Your name, please ? ")); // show some > >> text > >> > >> thx, > >> johannes. > >> > >> Am Mittwoch, den 27.07.2011, 08:40 -0700 schrieb Thomas Suckow: > >>> Could you run it under gdb and provide a back trace? > >>> > >>> $gdb --args hello --gdb --docroot . --http-address 0.0.0.0 --http-port > >>> 8088 > >>> > >>> > >>> On 07/27/2011 02:29 AM, jhig wrote: > >>>> hello, > >>>> > >>>> i just installed Wt (version 3.1.7) on my gentoo system via portage > >>>> tree. > >>>> then i compiled the hello example outside the Wt-tree as follows: > >>>> > >>>> g++ hello.C -lwt -lwthttp -o hello > >>>> > >>>> then i started the application: > >>>> > >>>> ./hello --docroot . --http-address 0.0.0.0 --http-port 8088 > >>>> > >>>> when i browse to the page > >>>> > >>>> http://127.0.0.1:8088 > >>>> > >>>> i get a segmentation fault: > >>>> > >>>> ./hello --docroot . --http-port 8088 --http-address 192.168.42.201 > >>>> Reading: /etc/wt/wt_config.xml > >>>> [2011-Jul-27 11:25:50.568197] 13577 - [notice] "Wt: initializing > >>>> built-in httpd" > >>>> [2011-Jul-27 11:25:50.568337] 13577 - [notice] "Reading Wt config > >>>> file: /etc/wt/wt_config.xml (location = './hello')" > >>>> [2011-Jul-27 11:25:50.569820] 13577 - [notice] "Started server: > >>>> http://192.168.42.201:8088" > >>>> [2011-Jul-27 11:25:53.261231] 13577 [/ 6LPzx5MppaW4ss2O] [notice] > >>>> "Session created (#sessions = 1)" > >>>> Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0 > >>>> 192.168.42.112 - - [2011-Jul-27 11:25:53.262672] "GET / HTTP/1.1" 200 > >>>> 1897 > >>>> Speicherzugriffsfehler > >>>> > >>>> it's the same with other example programs. > >>>> does anyone experience a similar behaviour? > >>>> > >>>> thx, > >>>> johannes. > >>>> > >>>> > >>>> ------------------------------------------------------------------------------ > >>>> Got Input? Slashdot Needs You. > >>>> Take our quick survey online. Come on, we don't ask for help often. > >>>> Plus, you'll get a chance to win $100 to spend on ThinkGeek. > >>>> http://p.sf.net/sfu/slashdot-survey > >>>> _______________________________________________ > >>>> witty-interest mailing list > >>>> [email protected] > >>>> https://lists.sourceforge.net/lists/listinfo/witty-interest > >>> ------------------------------------------------------------------------------ > >>> Got Input? Slashdot Needs You. > >>> Take our quick survey online. Come on, we don't ask for help often. > >>> Plus, you'll get a chance to win $100 to spend on ThinkGeek. > >>> http://p.sf.net/sfu/slashdot-survey > >>> _______________________________________________ > >>> witty-interest mailing list > >>> [email protected] > >>> https://lists.sourceforge.net/lists/listinfo/witty-interest > >> > >> > >> ------------------------------------------------------------------------------ > >> Got Input? Slashdot Needs You. > >> Take our quick survey online. Come on, we don't ask for help often. > >> Plus, you'll get a chance to win $100 to spend on ThinkGeek. > >> http://p.sf.net/sfu/slashdot-survey > >> _______________________________________________ > >> witty-interest mailing list > >> [email protected] > >> https://lists.sourceforge.net/lists/listinfo/witty-interest > > > > ------------------------------------------------------------------------------ > > Got Input? Slashdot Needs You. > > Take our quick survey online. Come on, we don't ask for help often. > > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > > http://p.sf.net/sfu/slashdot-survey > > _______________________________________________ > > witty-interest mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/witty-interest > > > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > witty-interest mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/witty-interest ------------------------------------------------------------------------------ Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
