Comments (3)
I have fixed this problem. Sorry, I don't know how to generate a patch. Here's
the
diff output:
diff crush-2008-10{,_fix}/src/cutfield/cutfield.c
32c32
<
---
> FILE *in = stdin;
72,73c72,73
< fclose(stdin);
< stdin = nextfile(argc, argv, &optind, "r");
---
> fclose(in);
> in = nextfile(argc, argv, &optind, "r");
76c76
< while (stdin) {
---
> while (in) {
84c84
< while (getline(&in_buffer, &in_buffer_sz, stdin) > 0) {
---
> while (getline(&in_buffer, &in_buffer_sz, in) > 0) {
118c118
< stdin = nextfile(argc, argv, &optind, "r");
---
> in = nextfile(argc, argv, &optind, "r");
diff crush-2008-10{,_fix}/src/truncfield/truncfield.c
32c32
<
---
> FILE *in = stdin;
71,72c71,72
< fclose(stdin);
< stdin = nextfile(argc, argv, &optind, "r");
---
> fclose(in);
> in = nextfile(argc, argv, &optind, "r");
75c75
< while (stdin) {
---
> while (in) {
83c83
< while (getline(&in_buffer, &in_buffer_sz, stdin) > 0) {
---
> while (getline(&in_buffer, &in_buffer_sz, in) > 0) {
113c113
< stdin = nextfile(argc, argv, &optind, "r");
---
> in = nextfile(argc, argv, &optind, "r");
Original comment by [email protected]
on 9 Jan 2009 at 4:23
from crush-tools.
Thanks for reporting this and taking the time to investigate the cause. I'll
get my
hands on a Mac and verify the patch, and get it applied before the 2009-01
release.
Original comment by [email protected]
on 9 Jan 2009 at 6:39
from crush-tools.
Upon closer inspection, it looks like the problem was already eliminated in
trunk as
a side-effect of some new feature work.
A 2009-01 release candidate should be posted to the discussion group
(http://groups.google.com/group/crush-tools/) in a few days. When that's
available,
if you'd like to pull it down and verify that it builds on Mac OS 10.4, that
would be
great.
Original comment by [email protected]
on 9 Jan 2009 at 9:26
- Changed state: Fixed
from crush-tools.
Related Issues (20)
- compile error on MaxOSX HOT 4
- possible issue with m4, FreeBSD 7.0 and crush-2009-01 HOT 1
- 511 bytes is overly small field limit for reorder HOT 2
- funiq segfaults when receiving 0-byte input HOT 1
- cutfield segfaults when a field label specified by -F is not present in the header HOT 2
- convdate segmentation fault on FreeBSD 8.2-RELEASE HOT 2
- Test fails in 2010-03 on Mac OS X HOT 3
- Make check fails 3 tests out of 6 HOT 3
- Pivot HOT 1
- gzdog used in examples instead of zcat -- gzdog is not a crush-tools utility HOT 1
- hashjoin dies w/ tcmalloc errors when stdin is 0 bytes HOT 1
- Missing something HOT 1
- Summarise the tools in the README HOT 3
- CurlError: error:1407742E:SSL
- add hash-split option to fieldsplit HOT 1
- Add min/max to aggregate/aggregate2 HOT 2
- Test errors in reutils HOT 1
- Code review request of filterkeys HOT 1
- Skip reutils test when pcre is not present
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crush-tools.