Displaying 20 results from an estimated 100 matches similar to: "mysql_adapter.rb:576: [BUG] Segmentation fault"
2008 Jun 03
11
rake db:migrate not working
When I run the rake db:migrate command, I get this:
C:\testror\depot>rake db:migrate --trace
(in C:/testror/depot)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
rake aborted!
182: Le systÞme d''exploitation ne peut pas exÚcuter %1. - c:/ruby/
lib/ruby/gem
2009 Mar 05
0
ROR - Random [BUG] Segmentation faults
I''m new to ruby and webdev in general and am having a really hard time
getting my first project kickin. I can install and get the initial
server page up and running. I''ve updated the gems and installed the
mysql one along with mongrel.
But once I setup my controller and view, I begin getting the error
below. It''ll occur after I load it 4 or 5 times. If I include
2004 Dec 24
1
Tutorial Steps Two & Three
Hey-
I ran into to some problems when trying to follow "A tutorial by
Rails'' users." When I reached Step Three and executed the controller
script as follows:
ruby script/generate controller Friends list display new edit
I got this error message:
C:\Inetpub\wwwroot\rails>ruby script/generate controller Friends list display ne
w edit
2008 Jan 17
6
Problems with sqlserver 2000 and ActiveRecord
Hi,
I''m getting some trouble in connecting to a sql server 2000
database with ActiveRecord-2.0.1 and ruby 186-26, from
win XP.
Using the next conenction config:
ActiveRecord::Base.establish_connection(
:adapter => "sqlserver",
:database => "nombre_bd",
:username => "usu",
:password => "contra"
)
I have the next error:
2004 Feb 20
1
NGROUPS_MAX on Linux
Linux has just raised the NGROUPS_MAX limit from 32 to 64k. In doing an
audit of various tools, openssh turned up as having incorrect groups
handling. Almost no user-space apps really care about NGROUPS_MAX.
A proposed patch (untested, since the CVS build won't compile on my RH box..
:-/) :
What think?
Index: uidswap.c
===================================================================
2010 Jun 11
0
nested form & habtm
so i am trying to save to a join table in a habtm relationship, but i am
having problems.
from my view, i pass in a group id with:
= link_to "Create New User", new_user_url(:group => 1)
User model (user.rb)
class User < ActiveRecord::Base
has_and_belongs_to_many :user_groups
accepts_nested_attributes_for :user_groups
end
UserGroups model (user_groups.rb)
class UserGroup <
2006 Apr 17
3
model.models.models or model.models.find(:first).models
I the following three models which all have has_and_belongs_to_many
# User <-> UserGroup <-> Permissions
class UserGroup < ActiveRecord::Base
has_and_belongs_to_many :users, :join_table => "user_usergroup_join"
has_and_belongs_to_many :permissions, :join_table =>
"usergroup_permission_join", :uniq => true
end
I can do this:
permissions =
2001 Apr 25
0
NeXT // Broken _POSIX_SAVED_ID patch
Ok, for those running NeXT and other platforms with broken/missing
_POSIX_SAVED_ID please try this patch, and anyone that has spent any
amount of time dealing with this problem.
I believe it's right.
BTW, this patch is no where near as big as it looks. The patch was
done against an earily version of the tree which had an issue with
white space.
- Ben
--- ../openssh/uidswap.c Sun Apr 22
2008 Jun 06
2
joining tables
Hi
I have 3 tables as
1) user_groups
id | contact_id | group_id | group_user_type_id
2) contact
id | name_first | name_last |
3)contact_email_addresses
contact_id | contact_email_address_type_id | emailaddress
Now I have group_id sa for example 68
What I want is from contact_email_addresses table get all the
emailaddress with contact_email_address_type_id=2 for the contacts
2013 May 07
0
Some potential bugs in Openssh-6.2p1
Hi,
I'm a developer of a static analysis tool canalyze.
Recently I applied it to Openssh-6.2p1.
It seems some reports are real after by manually checking:
1. Use undefined value
file: dispatch.c
function: dispatch_run
At line 93: type = packet_read_poll_seqnr(&seqnr);
seqnr may not be override at
file: packet.c
function: packet_read_poll_seqnr
line 1442
where compat20 is 0.
2. Null
2015 Jun 20
3
[PATCH] Fix potential use after free in uidswap.c (portable)
Fixes a potential (but probably rather unlikely) use after free bug in
function temporarily_use_uid(), file uidswap.c.
--- a/uidswap.c
+++ b/uidswap.c
@@ -113,8 +113,9 @@ temporarily_use_uid(struct passwd *pw)
}
}
/* Set the effective uid to the given (unprivileged) uid. */
- if (setgroups(user_groupslen, user_groups) < 0)
-
2002 Sep 25
1
NGROUPS_MAX
Currently openssh (3.4p1) relies on the NGROUPS_MAX define. This makes
the number of allowed simultaneous (per-user) secondary groups a
compile-time decision.
$ find . -name \*.c | xargs grep NGROUPS_MAX
./groupaccess.c:static char *groups_byname[NGROUPS_MAX + 1]; /* +1 for base/primary group */
./groupaccess.c: gid_t groups_bygid[NGROUPS_MAX + 1];
./uidswap.c:static gid_t
2006 Jul 26
3
Polymorphic Association with Single Table Inheritance?
Hello,
is it possible to setup a model/table schema like this:
Groupable --> Membership <-- Group
^ ^
| |
User UserGroup
I tried the following but failed:
Groupable (table with ''type'' column)
has_many :memberships, :as => :groupable
has_many :groups, :through => :memberships
2007 Dec 28
1
validation of acts_as_list in the model of the base class?
Lets say I have 3 models, user, user_group and user_group_nodes. A
normal user has one user_group_id as a foreign key and a special user
has multiple user_groups which are defined in the user_group_nodes.
The user_group_nodes is a "acts_as_list" for user and contains a list
of group_ids.
When I build a form to get user input and I want to save it, is there
a way to validate the
2001 Oct 08
1
Ported OpenSSH 2.9.9p2 to Dynix
Hello Porters,
I've finally (thanks to Wendy Palm of Cray) ported OpenSSH to
Dynix v4.4.4. I had to make sure that "UseLogin" was set to "no" in the
sshd_config file. Also, here are the old-style contextual diffs (obtained
with 'diff -c' on the Dynix box) of the two files I had to change:
*** configure Sat Jun 16 17:09:50 2001
--- configure.new Mon Oct 8
2002 Jun 07
4
openssh for UWIN
I am enclosing a context diff of the changes that I made to get
openssh working on UWIN. UWIN is a UNIX operating system layer
that runs on Win32 systems. For more information on UWIN
go to http://www.research.att.com/sw/tools/uwin/.
I also ran configure using -with-cppflags=-D_BSDCOMP=2. I don't
know where that information would go with the source code.
Let me know if you need more
2006 Feb 20
0
Securing the Model
Hello,
I have a security schema for all kinds of items in my application
(pages, logs, links, ...). Basically it works as follows :
readable_by can be either ''a'' (all) ''g'' (group) or ''u'' (owner). If it
is group then rgroup_id is set.
writable_by can be either ''a'', ''g'' or ''u''. If it is
2006 Jul 04
1
mysql_adapter.rb help please
I am an experienced systems programmer (20+ years) trying to get RoR
working on a Centos server with WHM, Cpanel, etc. Everything seems OK
and I am able to run the hello world apps however I am having major
problems when I enable some database access ala the cookbook tutorials.
Whether I run mongrel or webrick I am getting seg faults and/or traps in
mysql_adapter.rb when I submit a form of
2006 Mar 13
2
Help with mysql_adapter.rb?
Hello all! I''m a newbie to Rails and I''m trying to get things working on
an old RH9 box. I was wondering if someone could help me troubleshoot a
mysql_adapter.rb error?
I set everything up and created a simple test app and then generated a
scaffold for it. When I try to go to the main controller and list the
data, I get the following error:
ArgumentError...
NULL pointer
2010 Jan 26
1
Mongrels Hanging in mysql_adapter.rb
Hi everyone,
I have been trying to solve this problem for quite some time now and I
really don''t have any further clue to investigate.
I am running a mongrel_cluster 1.0.5-2 (mongrel verison : 1.1.5-5) on
a ubuntu box with apache2 2.2.12-1ubuntu2.1
I have 4 different apps on the same box and each app has two mongrel
instances.
After a short period of time ( < 2 hours ) some of the