Skip to content

Segmentation fault when cloning SoapServer #16237

Closed

Description

@YuanchengJiang

Description

The following code:

<?php
$server = new soapserver(null,array('uri'=>"http://testuri.org"));
$fusion = $server;
$ao2 = clone $fusion;

Resulted in this output:

/php-src/ext/soap/soap.c:4571:15: runtime error: member access within misaligned address 0x000000000123 for type 'struct _soapService', which requires 8 byte alignment
0x000000000123: note: pointer points here
<memory cannot be printed>
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /php-src/ext/soap/soap.c:4571:15

PHP Version

PHP 8.4.0-dev

Operating System

ubuntu 22.04

Activity

  1. ndossche commented on Oct 5, 2024

    @ndossche
    Member

    Bisect points to 94ee4f9, which is unsurprising as this is the second time I see this.
    Thing is that that commit only reveals the problem. Cloning this object shouldn't be possible in the first place.

  2. changed the title [-]Segmentation fault in ext/soap/soap.c:4571[/-] [+]Segmentation fault when cloning SoapServer[/+] on Oct 5, 2024
  3. added a commit that references this issue on Oct 5, 2024
    90bbdc0
  4. added 3 commits that reference this issue on Oct 5, 2024
    809a58b
    eb02ad0
    70203c7
  5. added a commit that references this issue on Oct 5, 2024
    3d3c192
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions