Bug #798
closedPressing Esc segfaults, after calling WDialog::rejectWhenEscapePressed()
0%
Description
Steps to reproduce:
- Download the attached main.cpp file
- Run g main.cpp -lwt -lwthttp -o main
- Run ./main ---docroot=/usr/share/wt/ ---http-address 0.0.0.0 ---http-port 8080
- Browse to localhost:8080 and click the button (a dialog will open).
- Close the dialog (either press Esc or click the Abort button)
- Press Esc
Result: Wt segfaults.
You may have to replace the "/usr/share/wt/" above with a directory that contains the Wt's resources/ directory.
This happens on a 64 bit PC running Linux (openSUSE 11.4), with:
- gcc 4.5.1
- Wt 3.1.8
- boost-devel 1.44.0
See the valgrind log attached.
I ran valgrind as "valgrind ---log-file=valgrind.log ./main ---docroot=/usr/share/wt/ ---http-address 0.0.0.0 ---http-port 8081".
I can provide other information if needed, this is 100% reproducible on my PC.
Files
Updated by Koen Deforche over 13 years ago
- Status changed from New to InProgress
- Assignee set to Pieter Libin
Pieter,
can you try to reproduce this ?
Regards,
koen
Updated by Pieter Libin over 13 years ago
Dear Marco,
we tried to reproduce this problem on 2 different ubuntu systems,
but we did not succeed.
When looking at the valgrind log, we think the problem is related to Wt rather than to your build toolchain.
To investigate the issue further, can you please tell us:
- which browser you used to reproduce this problem (I used Firefox 3.6.16)?
- is the problem solved when using wt-3.1.9?
- did you make some changes to your wt-config.xml?
kind regards,
Pieter
Updated by Marco Poletti over 13 years ago
Pieter Libin wrote:
Dear Marco,
we tried to reproduce this problem on 2 different ubuntu systems,
but we did not succeed.
When looking at the valgrind log, we think the problem is related to Wt rather than to your build toolchain.
To investigate the issue further, can you please tell us:
- which browser you used to reproduce this problem (I used Firefox 3.6.16)?
I can reproduce this bug with:
- Firefox 4.0
- Chromium 12.0.731.0 (0)
But I can't reproduce it with:
- Konqueror 4.6.00 (4.6.0)
I think that Konqueror works because it seems to ignore Esc keypresses, you can't close the dialog by pressing Esc.
- is the problem solved when using wt-3.1.9?
I'll try 3.1.9 and post the results.
- did you make some changes to your wt-config.xml?
No. I am also the packager of Wt for openSUSE, so I am sure the installed wt-config.xml is the default one, it is not changed by the RPM spec file.
Updated by Marco Poletti over 13 years ago
- File valgrind.log valgrind.log added
I have tried with 3.1.9 and got the same results (problems in Firefox and Chromium, ok in Konqueror).
I attach the valgrind log for 3.1.9.
Updated by Pieter Libin over 13 years ago
Dear,
I've been able to reproduce the problem on an opensuse virtual machine I've set up,
I'll investigate the problem next week.
greetings,
Pieter
Updated by Pieter Libin over 13 years ago
- Status changed from InProgress to Feedback
This problem is only reproducible when we use the boost opensuse package,
when building our own boost from source, this problem does not occur.
Probably something is wrong with the boost package in this version opensuse?
Updated by Marco Poletti over 13 years ago
Pieter Libin wrote:
This problem is only reproducible when we use the boost opensuse package,
when building our own boost from source, this problem does not occur.
Probably something is wrong with the boost package in this version opensuse?
The boost package of openSUSE 11.4 is 1.44.0. The sources and the patches applied before building are available here:
https://build.opensuse.org/package/files?package=boost&project=openSUSE%3A11.4
I am not an expert in boost, I don't know whether this version has particular problems and/or whether the patches introduce additional ones.
I wonder if the problem will be in the next version of openSUSE, too.
I have not mush time to test it right now. If nobody else does this, I'll do it in a month or so.
This is the link to the "One-click installer" for the boost-devel in devel:libraries:c_c (i.e. the package that will be in the next version of openSUSE), built for openSUSE 11.4.
http://software.opensuse.org/main/ymp_without_arch_and_version?base=openSUSE%3A11.4&package=boost-devel&project=devel%3Alibraries%3Ac_c%2B%2B&query=boost-devel&repository=openSUSE_11.4
During the installation you should tick the "Keep repositories after installation" checkbox. When it completes, you should run "sudo zypper dup" so that other boost packages (and other stuff) get upgraded to the newer versions found in the devel:libraries:c_c repository.
This is not exactly the same as installing the beta version of openSUSE 12.1, but it should suffice if boost (and not its dependencies) is the issue here.
Updated by Koen Deforche over 11 years ago
- Status changed from Feedback to Closed