| Summary: | [patch] math/xgraph - fix two Segmentation fault problems | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Ports & Packages | Reporter: | uratan <uratan> | ||||||
| Component: | Individual Port(s) | Assignee: | freebsd-ports-bugs (Nobody) <ports-bugs> | ||||||
| Status: | Closed FIXED | ||||||||
| Severity: | Affects Some People | CC: | arrowd, sanpei | ||||||
| Priority: | --- | Keywords: | patch | ||||||
| Version: | Latest | ||||||||
| Hardware: | amd64 | ||||||||
| OS: | Any | ||||||||
| Attachments: |
|
||||||||
|
Description
uratan
2016-01-02 10:55:20 UTC
I reproduced this issue. Uratan's suggested point was changed with previous commit(rev.376508). Now I handle this issue. Created attachment 167138 [details]
patch file for this issue
I created new patch for ports/math/xgraph/files/patch-xgraph.c.
please replace this one and could you check this patch uratan-san.
If this patch solve this issue, please let me know and I will commit this.
Sanpei-san As for my first comment, my patch is against for Revision 376508 (of Makefile), I think, is it really corrected ? MOCHIRON --- Of course, OTETSUDAI --- aid you, SIMASU, GA --- I will, but... I tested with old-current enviroment. So now I installed 10.2-RELEASE/amd64 and my patch has still issue. But if I test your patch(against for Revision 376508), I also have issue(segmentation fault). Do you have any suggestion? I've setup plain 10.2R machine for evaluation, too.
And confirmed the circumstances.
Now we have 3 patch files:
(0) patch-xgraph.c --- included in ports.txz of 10.2R,
placed in math/xgraph/files/.
(1) patchs --- posted by me, has fixes for problem-[1] and [2].
(2) patch-xgraph.c.sanpei-20141230 --- posted by sanpei-san.
Here, my (1) is incremental one after (0), and your (2) includes (0) maybe to replace it.
And (1) and (2) have a conflict about changes in main().
(The cause of problem-[1] had come by (0), the change is not included in (2))
So:
(a) xgraph-11.tar.Z --> (0) --> core dumped (this is 10.2R default condition)
+---------------------------------
|(gdb) backtrace
|#0 0x0000000000403350 in main ()
+---------------------------------
(b) xgraph-11.tar.Z --> (0) --> (1) ... works good at my environment
(c) xgraph-11.tar.Z --> (2) --> ... core dumped when [Hardcopy] button pressed
+---------------------------------
|(gdb) backtrace
|#0 0x000000000040fdba in xtb_fmt_setpos ()
+---------------------------------
(d) xgraph-11.tar.Z --> (2) --> (1:xtb.h only) ... works good at my environment
Would you please split my (1), discard about xgraph.c,
take only the fix for xtb.h ?
Maintainer reset. A commit references this bug: Author: arrowd Date: Wed Jul 31 19:58:34 UTC 2019 New revision: 507732 URL: https://svnweb.freebsd.org/changeset/ports/507732 Log: math/xgraph: Apply patches to fix crashes. PR: 205796 Changes: head/math/xgraph/Makefile head/math/xgraph/files/patch-xgraph.c head/math/xgraph/files/patch-xgraph.h head/math/xgraph/files/patch-xtb.h I have pulled in all patches found in this PR. |