View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002006 | Xdebug | Step Debugging | public | 2021-08-07 17:08 | 2022-04-04 11:32 |
| Reporter | Zobo | Assigned To | derick | ||
| Priority | normal | Severity | crash | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 3.0.4 | ||||
| Fixed in Version | 3.1.4 | ||||
| Summary | 0002006: Removing second call breakpoint with same function name | ||||
| Description | I added two call breakpoints with same name. Removing both caused a segfault. Could reproduce on 7.2.24/2.6.0 and 8.0/3.0.4. The function does not need to exist, only the name must be the same on both calls to breakpoint_set. | ||||
| Steps To Reproduce |
Waiting for debug server to connect on port 9003. (cmd) breakpoint_set -t call -m a (cmd) breakpoint_remove -d 100040001 (cmd) breakpoint_remove -d 100040002 | ||||
| Additional Information | This GDB is from 7.2.24/2.6.0 and without debug symbols, but just for an idea where to start... (gdb) r -dxdebug.remote_enable=1 -dxdebug.remote_port=9003 test3.php Program received signal SIGSEGV, Segmentation fault. | ||||
| Tags | No tags attached. | ||||
| Operating System | |||||
| PHP Version | 8.0.0-8.0.4 | ||||
|
|
Hi, sorry, I missed this showing up in the queue! I can reproduce this, and know what the problem is. There are two ways of fixing it:
The spec says:
The first option means I will have to check and return error "200" although I suppose this technically could be considered a BC break. The second one means I will have to make things more complicated and keep track of some internal structures. I am currently leaning towards option 1, but would love to hear your opinion too. cheers, |
|
|
|
|
|
Fixed for 3.1.4. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2021-08-07 17:08 | Zobo | New Issue | |
| 2022-03-29 16:30 | derick | Assigned To | => derick |
| 2022-03-29 16:30 | derick | Status | new => confirmed |
| 2022-03-29 16:30 | derick | Note Added: 0006262 | |
| 2022-03-29 16:30 | derick | Status | confirmed => feedback |
| 2022-03-30 17:45 | derick | Note Added: 0006263 | |
| 2022-03-31 08:56 | derick | Status | feedback => closed |
| 2022-03-31 08:56 | derick | Resolution | open => fixed |
| 2022-03-31 08:56 | derick | Fixed in Version | => 3.1dev |
| 2022-03-31 08:56 | derick | Note Added: 0006264 | |
| 2022-04-04 11:32 | derick | Fixed in Version | 3.1dev => 3.1.4 |