View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000853 | Xdebug | Uncategorized | public | 2012-06-15 21:54 | 2012-06-25 18:00 |
| Reporter | fidian | Assigned To | |||
| Priority | normal | Severity | crash | Reproducibility | always |
| Status | resolved | Resolution | unable to reproduce | ||
| Platform | Linux | OS | Ubuntu | OS Version | Various |
| Product Version | 2.2.0 | ||||
| Summary | 0000853: Segmentation fault when running phpunit | ||||
| Description | I have tried versions 2.1.0 and 2.2.0. The newer version gives either a "Segmentation fault" or "Illegal instruction" when running a set of tests for my software, which is closed source. Running just that test or the suite of tests doesn't create the problem; only when I run all of the tests in the directory at once, so I know that there's something more complex going on here. Currently I am seeing the problems in our Amazon instances - c1.medium amd64 Ubuntu natty. They use PHP 5.3.6 (Ubuntu's package) as well as 5.3.13 (team-mayhem/ppa - my updated version). The xdebug from Ubuntu (2.1.0) works and team-mayhem/ppa's (2.2.0) fails. Without changing anything else on the system, just switching xdebug packages caused the problem to happen or to go away. I've bisected your git repository and narrowed this down to commit 72e60fdc5960cf89e2e4fd5c6477b83600d5b8b2 (SVN Rev: 3391) where you fix bug 0000654 by bringing back three lines of code. I can't really give you our codebase for you to diagnose the problem. I also don't have the problem narrowed down to a simple, repeatable test script that I could hand over. The ickiest solution for me would be to replicate everything we do, chopping out parts, and then hopefully whittling down the code to whatever combination triggers the problem. A far better solution would be to seek your assistance and add debugging information in the right spots so you can find out why things are breaking. Would you have any idea why those three lines of code would force segmentation faults? | ||||
| Tags | No tags attached. | ||||
| Operating System | Ubuntu | ||||
| PHP Version | 5.3.13 | ||||
|
|
Can you run phpunit through GDB? You run that with: export USE_ZEND_ALLOC=0 On the GDB prompt: |
|
|
This is with xdebug compiled at commit 72e60fdc5960cf89e2e4fd5c6477b83600d5b8b2. If you need it at master's HEAD, let me know. See attachment gdb.txt |
|
|
This trace shows it is not actually crashing in Xdebug st all, but in normal PHP. I would think that if you would disable Xdebug with the USE_ZEND_ALLOC=0 still active or will crash as well. Perhaps you can try running it without Xdebug like that? |
|
|
I rebooted the machine, then ran the following commands: echo "$USE_ZEND_ALLOC" Passexport USE_ZEND_ALLOC=0 Failexport USE_ZEND_ALLOC= FailSee log.txt for further information. Again, the weird part is that one line of code in xdebug - if I comment it out, no more segmentation faults. I'll work on whittling down the tests to see exactly what's causing it. It might take a while. Do you have any other ideas for things I can try? |
|
|
I'm running tests again and am unable to get consistent results. I am no longer certain that changing xdebug really affects anything. I suspect that the combination of PHP and xdebug do trigger an effect sometimes, but until I can nail this down I won't waste your time. Please close this bug. If I can narrow things down and figure out where the breakage starts, I may open another bug (but it is really looking like PHP at the moment). Sorry to waste your time. |
|
|
No worries, and feel free to reopen this if you have more info and/or can reproduce it. |