You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@age.apache.org by GitBox <gi...@apache.org> on 2022/12/16 15:40:35 UTC
[GitHub] [age] sep2 opened a new issue, #395: Segmentation fault when executing query
sep2 opened a new issue, #395:
URL: https://github.com/apache/age/issues/395
**Describe the bug**
A segmentation fault is occured when query.
**How are you accessing AGE (Command line, driver, etc.)?**
JDBC
**What data setup do we need to do?**
```pgsql
select create_graph('graph');
select *
from cypher('graph', $$
create (n:Project {name: 'Project A'}),
(m:Project {name: 'Project B'}),
(a:Task {name: 'Task A', size: 10}),
(b:Task {name: 'Task B', size: 5}),
(c:Task {name: 'Task C', size: 7}),
(x:Person {name: 'John', age: 55}),
(y:Person {name: 'Bob', age: 43}),
(z:Person {name: 'Alice', age: 33}),
(n)-[:Has]->(a),
(n)-[:Has]->(b),
(m)-[:Has]->(c),
(a)-[:AssignedTo]->(x),
(b)-[:AssignedTo]->(y),
(c)-[:AssignedTo]->(y)
$$) as (n agtype);
```
**What is the command that caused the error?**
```pgsql
SELECT * FROM ag_catalog.cypher('graph', $$
match (p:Project)-[:Has]->(t:Task)-[:AssignedTo]->(u:Person)
with distinct t, {tn: t.name, user: collect(u)} as task
with distinct p, {pn: p.name, task: collect(task)} as project
return project
$$) as (p agtype);
```
```
LOG: server process (PID 224) was terminated by signal 11: Segmentation fault
```
**Expected behavior**
Should not terminate the server.
**Environment (please complete the following information):**
- Version: [e.g. 1.1.0]
**Additional context**
None.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@age.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [age] jrgemignani commented on issue #395: Segmentation fault when executing query
Posted by "jrgemignani (via GitHub)" <gi...@apache.org>.
jrgemignani commented on issue #395:
URL: https://github.com/apache/age/issues/395#issuecomment-1636493357
I found part of the issue and am looking at the best way to address it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@age.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [age] jrgemignani commented on issue #395: Segmentation fault when executing query
Posted by "jrgemignani (via GitHub)" <gi...@apache.org>.
jrgemignani commented on issue #395:
URL: https://github.com/apache/age/issues/395#issuecomment-1636566137
I have created PR #1039 to address this issue.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@age.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [age] jrgemignani commented on issue #395: Segmentation fault when executing query
Posted by "jrgemignani (via GitHub)" <gi...@apache.org>.
jrgemignani commented on issue #395:
URL: https://github.com/apache/age/issues/395#issuecomment-1636369498
There may be an issue with the collect aggregate function. That is where it throws the error.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@age.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [age] MuhammadTahaNaveed closed issue #395: Segmentation fault when executing query
Posted by "MuhammadTahaNaveed (via GitHub)" <gi...@apache.org>.
MuhammadTahaNaveed closed issue #395: Segmentation fault when executing query
URL: https://github.com/apache/age/issues/395
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@age.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [age] Hunaid2000 commented on issue #395: Segmentation fault when executing query
Posted by GitBox <gi...@apache.org>.
Hunaid2000 commented on issue #395:
URL: https://github.com/apache/age/issues/395#issuecomment-1355512944
Hi @sep2. I believe this issue is related to #351 and #238
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@age.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [age] MuhammadTahaNaveed commented on issue #395: Segmentation fault when executing query
Posted by "MuhammadTahaNaveed (via GitHub)" <gi...@apache.org>.
MuhammadTahaNaveed commented on issue #395:
URL: https://github.com/apache/age/issues/395#issuecomment-1635742117
> This another query did not terminate the process:
> ```
> SELECT * FROM ag_catalog.cypher('graph', $$
> match (p:Project)-[:Has]->(t:Task)-[:AssignedTo]->(u:Person)
> with p, t, collect(u) as users
> with p, {tn: t.name, users: users} as task
> with p, collect(task) as tasks
> with {pn: p.name, tasks:tasks} as project
> return project
> $$) as (p agtype);
> ```
>
> but return error message: `ERROR: container is not an agtype array`. The query runs fine in neo4j.
>
@jrgemignani Your pr #1036 may solve this issue as well.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@age.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [age] jrgemignani commented on issue #395: Segmentation fault when executing query
Posted by "jrgemignani (via GitHub)" <gi...@apache.org>.
jrgemignani commented on issue #395:
URL: https://github.com/apache/age/issues/395#issuecomment-1636587787
This issue is now resolved in the **master** (PostgreSQL version 13) branch.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@age.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [age] jrgemignani commented on issue #395: Segmentation fault when executing query
Posted by "jrgemignani (via GitHub)" <gi...@apache.org>.
jrgemignani commented on issue #395:
URL: https://github.com/apache/age/issues/395#issuecomment-1636505103
I am working on a PR to fix this now.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@age.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [age] sep2 commented on issue #395: Segmentation fault when executing query
Posted by GitBox <gi...@apache.org>.
sep2 commented on issue #395:
URL: https://github.com/apache/age/issues/395#issuecomment-1355161860
This another query did not terminate the process:
```
SELECT * FROM ag_catalog.cypher('graph', $$
match (p:Project)-[:Has]->(t:Task)-[:AssignedTo]->(u:Person)
with p, t, collect(u) as users
with p, {tn: t.name, users: users} as task
with p, collect(task) as tasks
with {pn: p.name, tasks:tasks} as project
return project
$$) as (p agtype);
```
but return error message: `ERROR: container is not an agtype array`. The query runs fine in neo4j.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@age.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org