Displaying 20 results from an estimated 125 matches for "croak".
2019 Jan 16
1
[hivex PATCH] perl: fix format of croak for RLenValue
When calling croak on failure in the Perl code for RLenValue, add the
%s placeholder for the strerror result. This makes the croak call just
like all the others.
Fixes commit 87e1be8ff3431ac81d721d5f647fc85d02e045dc.
---
generator/generator.ml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gen...
2005 Apr 12
7
Max filesize for rsync?
What the maximum filesize rsync can transfer?
I'm trying to rsync one of my servers to another but the rsync is
croaking on a file that's barely 1GB.
Tips, hints, suggestions?
rsync server is AIX 4.3.3 ML11 - rsync 2.6.3
rsync client is AIX 5.3 ML1 - rsync 2.6.4
Thanks
-Jeff
--
Jeff Schoby
Unix/Network Admin
City of Columbia, Missouri
573.874.6320
2011 Jun 28
2
minor Hivex.xs leaks
...l)
void
node_set_values (h, node, values)
hive_h *h;
int node;
pl_set_values values = unpack_pl_set_values (ST(2));
PREINIT:
int r;
PPCODE:
r = hivex_node_set_values (h, node, values.nr_values, values.values, 0);
free (values.values);
if (r == -1)
croak ("%s: %s", "node_set_values", strerror (errno));
void
node_set_value (h, node, val)
hive_h *h;
int node;
hive_set_value *val = unpack_set_value (ST(2));
PREINIT:
int r;
PPCODE:
r = hivex_node_set_value (h, node, val, 0);
free (val);
if...
2012 May 05
1
samba-3.5.15 croaks linking pam_winbind
Samba is throwing this when trying to build version 3.5.15:
===================================================
Compiling ../nsswitch/pam_winbind.c
../nsswitch/pam_winbind.c: In function ?_pam_parse?:
../nsswitch/pam_winbind.c:440:76: warning: comparison between pointer
and integer
../nsswitch/pam_winbind.c:445:7: warning: comparison between pointer and integer
../nsswitch/pam_winbind.c:447:7:
2006 Nov 23
1
Script to restart webrick
Enjoy this little script to restart webrick:
#!/bin/sh
pid=$(ps -o pid,command | grep ''\<ruby script/server\>'' | awk ''{print
$1}'')
kill -9 $pid
ruby script/server
Run on prompt by entering: sh scriptname.sh
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2007 Oct 18
4
Mocking models provided in Rails plugins
...39;t recognize Session.
NameError in ''SessionsController handling GET /sessions/new should be
successful''
uninitialized constant Session
An example of my usage:
before do
@session = mock_model(Session)
Session.stub!(:new).and_return(@session)
end
Thanks!
Dan Croak
http://thoughtbot.com
organic brains. digital solutions.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071018/14456927/attachment-0001.html
2006 Jun 01
5
History plugin
Hello,
I felt annoyed enough when having to redirect user back to their
previous location in a hackish way that I wrote this plugin.
It avoids storing POST and Ajax request. It also has a facility to
specify actions not to store in the history.
If you are interested, it''s there:
http://blog.cosinux.org/pages/rails-history
See you all,
Damien
--
Damien MERENNE
2016 May 06
1
[PATCH] perl: use INT2PTR macro for casting back to guestfs_h * (RHBZ#1150298)
...*, SvIV (*svp));
_close_handle (g);
}
diff --git a/perl/typemap b/perl/typemap
index 508e378..0a92e53 100644
--- a/perl/typemap
+++ b/perl/typemap
@@ -14,7 +14,7 @@ O_OBJECT_guestfs_h
SV **svp = hv_fetch (hv, \"_g\", 2, 0);
if (svp == NULL)
croak (\"${Package}::$func_name(): called on a closed handle\");
- $var = ($type) SvIV (*svp);
+ $var = INT2PTR ($type, SvIV (*svp));
} else {
croak (\"${Package}::$func_name(): $var is not a blessed HV reference\");
}
--
2.5.5
2011 Mar 11
2
int to string TypeError annoyance
...TypeError in method 'WritableDatabase_set_metadata', argument 3 of type
'std::string const &'
It looks like this is thrown by the SWIG
std::string typemap. Does someone with better SWIG skills than me know how
to fix SWIG such that it converts the int to a string rather than croaking?
(And besides that it's a very unhelpful error as it has no calling line
#)
--
All the best,
Tim.
2006 Sep 13
7
German Phrase
Hi German users,
Can one of you guys give me a German Phrase that I can use to
demonstrate tokenizing non-ascii text. Preferably something about 40
bytes long with lots of umlauts and perhaps a ?.
Cheers,
Dave
2010 Jul 07
1
[PATCH] hivex: add hivex_set_value api call and ocaml/perl bindings, tests
...;
+ | ASetValue -> pr "$val"
) args;
pr ")"
@@ -2243,6 +2279,39 @@ unpack_pl_set_values (SV *sv)
return ret;
}
+static hive_set_value *
+unpack_set_value (SV *sv)
+{
+ hive_set_value *ret;
+
+ if (!sv || !SvROK (sv) || SvTYPE (SvRV (sv)) != SVt_PVHV)
+ croak (\"not a hash ref\");
+
+ ret = malloc (sizeof (hive_set_value));
+ if (ret == NULL)
+ croak (\"malloc failed\");
+
+ HV *hv = (HV *)SvRV(sv);
+
+ SV **svp;
+ svp = hv_fetch (hv, \"key\", 3, 0);
+ if (!svp || !*svp)
+ croak (\"missing 'key' in...
2020 Nov 20
2
Can't create users?
...mdb.py",
line 458, in newuser
??? dnsdomain = ldb.Dn(self,
self.domain_dn()).canonical_str().replace("/", "")
How do I fix this? Everthing is using the default path
(/usr/local/samba). The only paramater I passed to configure was
--enable-fhs since I remember that it croaks without that. So I just did:
./configure --enable-fhs
make && make install
I tried looking for this online, but while I've seen this error online,
it's always something that doesn't list the fix. Either they say "oh,
never mind, I got it" or it's not answered a...
2001 Mar 10
3
fatal signal 11
I downloaded the latest wine from the cvs site and ran its
./tools/wineinstall. It ran for quite a while and croaked on
/wine/server/semaphore.c. Basically, gcc says "Internal compiler error:
program cc1 bog fatal signal 11". The compiler is 2.91.66 (aka egcs-1.1.2
release) and compiles other programs including 2.4.1 & 2.4.2 Linux kernels
just fine. I am puzzled what 'fatal signal 11' may...
2006 Apr 03
16
Dealing with Application error (Rails) in production
Hi all,
Week 2 working with Ruby on Rails... I have a working app in development
that is now throwing a generic, "Application error (Rails)" message in
production.
How do I deal with this so I can find more information about why the
error is being thrown in production, but not in development?
Thanks!
--
Posted via http://www.ruby-forum.com/.
2011 Apr 26
7
[PATCH 1/7] Push $desc creation into Sys::VirtConvert::Converter->convert
...object.
-=item desc
+=item root
-The OS description (see virt-v2v.pl:inspect_guest).
+The root device of the os to be converted.
=item meta
@@ -81,18 +81,37 @@ sub convert
{
my $class = shift;
- my ($g, $config, $desc, $meta) = @_;
+ my ($g, $config, $root, $meta) = @_;
croak("convert called without g argument") unless defined($g);
croak("convert called without config argument") unless defined($config);
- croak("convert called without desc argument") unless defined($desc);
+ croak("convert called without root argument")...
2018 Aug 10
2
[PATCH] Change wording from "twice" to "more than once" in error messages
...md, this_arg);\n";
pr " goto out;\n";
pr " }\n";
diff --git a/generator/perl.ml b/generator/perl.ml
index 5fa00a92d..cd0595640 100644
--- a/generator/perl.ml
+++ b/generator/perl.ml
@@ -496,7 +496,7 @@ PREINIT:
) optargs;
pr "croak (\"unknown optional argument '%%s'\", this_arg);\n";
pr " if (optargs_s.bitmask & this_mask)\n";
- pr " croak (\"optional argument '%%s' given twice\",\n";
+ pr " croak (\"opti...
2006 Jun 20
3
WEBrick just decided to take a hiatus on me
...ey 1.7.1
pdf-writer 1.1.2
rake 0.7.1
RedCloth 3.0.4
SimpleSearch 0.5.0
source 0.0.1
transaction-simple 1.3.0
Plugins
active_rbac
dialog_helper
dollars_and_cents
engines
flash_helper
query_trace
Does anyone have any idea why all of a sudden that things would just croak
on my box?
Thanks in advance,
--
~d
www.razorpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060620/8784298c/attachment.html
2004 Jul 08
0
[LLVMdev] Visual C++ Toolkit
...ometime soon. Google can
> > probably tell you :)
>
> Chris, I think you're wrong. The above link is GUI-less version of VC7.1, and
> it's template support has being hugely improved since VC7.
I have not tried the above link, but I have tried the official VC7.1
product. It croaked on the first partial specialization of a template it
saw in an LLVM header file. :(
-Chris
--
http://llvm.cs.uiuc.edu/
http://www.nondot.org/~sabre/Projects/
2010 Jul 03
1
[PATCH] hivex: add hivex_set_value api call and perl bindings, tests
...;
+ | ASetValue -> pr "$val"
) args;
pr ")"
@@ -2243,6 +2262,39 @@ unpack_pl_set_values (SV *sv)
return ret;
}
+static hive_set_value *
+unpack_set_value (SV *sv)
+{
+ hive_set_value *ret;
+
+ if (!sv || !SvROK (sv) || SvTYPE (SvRV (sv)) != SVt_PVHV)
+ croak (\"not a hash ref\");
+
+ ret = malloc (sizeof (hive_set_value));
+ if (ret == NULL)
+ croak (\"malloc failed\");
+
+ HV *hv = (HV *)SvRV(sv);
+
+ SV **svp;
+ svp = hv_fetch (hv, \"key\", 3, 0);
+ if (!svp || !*svp)
+ croak (\"missing 'key' in...
2014 Aug 04
6
[hivex] Segfault for an integer value to node_set_value
Hi,
When an integer argument is passed as value, node_set_value
segfaults. Reproducer is at the end of this message
The backtrace points at hivex-py.c, function get_value. While obj
is non-NULL, `bytes = PyUnicode_AsUTF8String (obj);` returns NULL.
Kind regards,
Peter
https://lekensteyn.nl
#!/usr/bin/env python3
import hivex, sys
h = hivex.Hivex(sys.argv[1])
print(h)
val = {